-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathsimple.php
More file actions
executable file
·56 lines (48 loc) · 948 Bytes
/
simple.php
File metadata and controls
executable file
·56 lines (48 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
declare(strict_types=1);
/**
* This file is part of PHP-Compiler, a PHP CFG Compiler for PHP code
*
* @copyright 2015 Anthony Ferrara. All rights reserved
* @license MIT See LICENSE at the root of the project for more info
*/
function simple(): void
{
$a = 0;
for ($i = 0; $i < 1000000; ++$i) {
++$a;
}
$thisisanotherlongname = 0;
for ($thisisalongname = 0; $thisisalongname < 1000000; ++$thisisalongname) {
++$thisisanotherlongname;
}
}
function simplecall(): void
{
for ($i = 0; $i < 1000000; ++$i) {
strlen('hallo');
}
}
function hallo(string $a): void
{
}
function simpleucall(): void
{
for ($i = 0; $i < 1000000; ++$i) {
hallo('hallo');
}
}
function simpleudcall(): void
{
for ($i = 0; $i < 1000000; ++$i) {
hallo2('hallo');
}
}
function hallo2(string $a): void
{
}
simple();
simplecall();
simpleucall();
simpleudcall();
echo "Done\n";