PageRenderTime 11ms CodeModel.GetById 9ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/extension/tests/xhprof_004_require.php

http://github.com/preinheimer/xhprof
PHP | 28 lines | 9 code | 13 blank | 6 comment | 0 complexity | 2cae986a8f2b7aa2d93085dc2fb55122 MD5 | raw file
 1<?php
 2
 3// This file is part of xhprof_004.phpt test.
 4
 5function bar() {
 6  echo "I am in bar()...\n";
 7}
 8
 9// run some top-level code in this file.
10
11// The profiler should mark functions called from here as
12// children of the pseudo-function "run_init::<this_file_name>"
13// which represents the initialization block of a file.
14//
15
16$result1 = explode(" ", "abc def ghi");
17
18$result2 = implode(",", $result1);
19
20$result3 = strlen($result2);
21
22echo $result3 . "\n";
23
24bar();
25
26
27
28