3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { public function method() { } } $obj = new Test; $ref = new ReflectionMethod($obj, 'method'); echo "Starting loop..."; $start = microtime(true); for ($i=0; $i<1e6; $i++) { $ref->invokeArgs($obj, array()); } echo "Took ", number_format((microtime(true)-$start)*1e3, 3), " ms";
Output for 7.1.0
Starting loop...Took 158.836 ms
Output for 7.0.14
Starting loop...Took -6.188 ms
Output for 7.0.10
Starting loop...Took 145.312 ms
Output for 7.0.9
Starting loop...Took 147.382 ms
Output for 7.0.8
Starting loop...Took 170.372 ms
Output for 7.0.7
Starting loop...Took 145.459 ms
Output for 7.0.6
Starting loop...Took 147.079 ms
Output for 7.0.5
Starting loop...Took 208.061 ms
Output for 7.0.4
Starting loop...Took 135.943 ms
Output for 7.0.3
Starting loop...Took 152.207 ms
Output for 7.0.2
Starting loop...Took 142.798 ms
Output for 7.0.1
Starting loop...Took 168.989 ms
Output for 7.0.0
Starting loop...Took 163.488 ms
Output for 5.6.28
Starting loop...Took 146.927 ms
Output for 5.6.25
Starting loop...Took 339.654 ms
Output for 5.6.24
Starting loop...Took 334.986 ms
Output for 5.6.23
Starting loop...Took 346.069 ms
Output for 5.6.22
Starting loop...Took 338.514 ms
Output for 5.6.21
Starting loop...Took 343.617 ms
Output for 5.6.20
Starting loop...Took 363.408 ms
Output for 5.6.19
Starting loop...Took 332.171 ms
Output for 5.6.18
Starting loop...Took 329.311 ms
Output for 5.6.17
Starting loop...Took 384.047 ms
Output for 5.6.16
Starting loop...Took 335.663 ms
Output for 5.6.15
Starting loop...Took 316.021 ms
Output for 5.6.14
Starting loop...Took 325.653 ms
Output for 5.6.13
Starting loop...Took 330.356 ms
Output for 5.6.12
Starting loop...Took 352.111 ms
Output for 5.6.11
Starting loop...Took 335.592 ms
Output for 5.6.10
Starting loop...Took 416.578 ms
Output for 5.6.9
Starting loop...Took 341.534 ms
Output for 5.6.8
Starting loop...Took 346.916 ms
Output for 5.6.7
Starting loop...Took 336.648 ms
Output for 5.6.6
Starting loop...Took 350.442 ms
Output for 5.6.5
Starting loop...Took 342.299 ms
Output for 5.6.4
Starting loop...Took 329.465 ms
Output for 5.6.3
Starting loop...Took 375.362 ms
Output for 5.6.2
Starting loop...Took 337.510 ms
Output for 5.6.1
Starting loop...Took 349.131 ms
Output for 5.6.0
Starting loop...Took 353.587 ms
Output for 5.5.38
Starting loop...Took 336.288 ms
Output for 5.5.37
Starting loop...Took 322.307 ms
Output for 5.5.36
Starting loop...Took 329.236 ms
Output for 5.5.35
Starting loop...Took 326.765 ms
Output for 5.5.34
Starting loop...Took 322.745 ms
Output for 5.5.33
Starting loop...Took 316.907 ms
Output for 5.5.32
Starting loop...Took 348.239 ms
Output for 5.5.31
Starting loop...Took 320.087 ms
Output for 5.5.30
Starting loop...Took 316.601 ms
Output for 5.5.29
Starting loop...Took 324.105 ms
Output for 5.5.28
Starting loop...Took 346.537 ms
Output for 5.5.27
Starting loop...Took 323.751 ms
Output for 5.5.26
Starting loop...Took 329.582 ms
Output for 5.5.25
Starting loop...Took 344.448 ms
Output for 5.5.24
Starting loop...Took 346.095 ms
Output for 5.5.23
Starting loop...Took 328.074 ms
Output for 5.5.22
Starting loop...Took 336.187 ms
Output for 5.5.21
Starting loop...Took 330.560 ms
Output for 5.5.20
Starting loop...Took 339.525 ms
Output for 5.5.19
Starting loop...Took 341.465 ms
Output for 5.5.18
Starting loop...Took 319.463 ms
Output for 5.5.16
Starting loop...Took 329.158 ms
Output for 5.5.15
Starting loop...Took 336.311 ms
Output for 5.5.14
Starting loop...Took 324.959 ms
Output for 5.5.13
Starting loop...Took 321.565 ms
Output for 5.5.12
Starting loop...Took 313.131 ms
Output for 5.5.11
Starting loop...Took 298.914 ms
Output for 5.5.10
Starting loop...Took 343.041 ms
Output for 5.5.9
Starting loop...Took 327.518 ms
Output for 5.5.8
Starting loop...Took 305.369 ms
Output for 5.5.7
Starting loop...Took 323.742 ms
Output for 5.5.6
Starting loop...Took 319.210 ms
Output for 5.5.5
Starting loop...Took 514.459 ms
Output for 5.5.4
Starting loop...Took 332.542 ms
Output for 5.5.3
Starting loop...Took 330.035 ms
Output for 5.5.2
Starting loop...Took 317.175 ms
Output for 5.5.1
Starting loop...Took 348.941 ms
Output for 5.5.0
Starting loop...Took 332.625 ms
Output for 5.4.45
Starting loop...Took 310.114 ms
Output for 5.4.44
Starting loop...Took 319.180 ms
Output for 5.4.43
Starting loop...Took 319.936 ms
Output for 5.4.42
Starting loop...Took 335.938 ms
Output for 5.4.41
Starting loop...Took 331.200 ms
Output for 5.4.40
Starting loop...Took 317.702 ms
Output for 5.4.39
Starting loop...Took 342.230 ms
Output for 5.4.38
Starting loop...Took 316.668 ms
Output for 5.4.37
Starting loop...Took 326.567 ms
Output for 5.4.36
Starting loop...Took 404.262 ms
Output for 5.4.35
Starting loop...Took 343.927 ms
Output for 5.4.34
Starting loop...Took 315.330 ms
Output for 5.4.32
Starting loop...Took 322.539 ms
Output for 5.4.31
Starting loop...Took 312.061 ms
Output for 5.4.30
Starting loop...Took 320.687 ms
Output for 5.4.29
Starting loop...Took 326.498 ms
Output for 5.4.28
Starting loop...Took 304.449 ms
Output for 5.4.27
Starting loop...Took 281.701 ms
Output for 5.4.26
Starting loop...Took 317.952 ms
Output for 5.4.25
Starting loop...Took 307.112 ms
Output for 5.4.24
Starting loop...Took 312.204 ms
Output for 5.4.23
Starting loop...Took 292.338 ms
Output for 5.4.22
Starting loop...Took 334.648 ms
Output for 5.4.21
Starting loop...Took 316.589 ms
Output for 5.4.20
Starting loop...Took 327.239 ms
Output for 5.4.19
Starting loop...Took 317.633 ms
Output for 5.4.18
Starting loop...Took 387.452 ms
Output for 5.4.17
Starting loop...Took 312.338 ms
Output for 5.4.16
Starting loop...Took 324.792 ms
Output for 5.4.15
Starting loop...Took 317.015 ms
Output for 5.4.14
Starting loop...Took 357.431 ms
Output for 5.4.13
Starting loop...Took 414.454 ms
Output for 5.4.12
Starting loop...Took 388.260 ms
Output for 5.4.11
Starting loop...Took 325.632 ms
Output for 5.4.10
Starting loop...Took 317.711 ms
Output for 5.4.9
Starting loop...Took 326.471 ms
Output for 5.4.8
Starting loop...Took 322.877 ms
Output for 5.4.7
Starting loop...Took 319.245 ms
Output for 5.4.6
Starting loop...Took 319.331 ms
Output for 5.4.5
Starting loop...Took 317.788 ms
Output for 5.4.4
Starting loop...Took 322.361 ms
Output for 5.4.3
Starting loop...Took 302.368 ms
Output for 5.4.2
Starting loop...Took 338.197 ms
Output for 5.4.1
Starting loop...Took 313.448 ms
Output for 5.4.0
Starting loop...Took 322.807 ms
Output for 5.3.29
Starting loop...Took 411.939 ms
Output for 5.3.28
Starting loop...Took 374.270 ms
Output for 5.3.27
Starting loop...Took 388.012 ms
Output for 5.3.26
Starting loop...Took 393.994 ms
Output for 5.3.25
Starting loop...Took 382.684 ms
Output for 5.3.24
Starting loop...Took 399.324 ms
Output for 5.3.23
Starting loop...Took 389.407 ms
Output for 5.3.22
Starting loop...Took 420.699 ms
Output for 5.3.21
Starting loop...Took 396.332 ms
Output for 5.3.20
Starting loop...Took 390.797 ms
Output for 5.3.19
Starting loop...Took 382.806 ms
Output for 5.3.18
Starting loop...Took 388.513 ms
Output for 5.3.17
Starting loop...Took 353.390 ms
Output for 5.3.16
Starting loop...Took 351.577 ms
Output for 5.3.15
Starting loop...Took 398.046 ms
Output for 5.3.14
Starting loop...Took 383.346 ms
Output for 5.3.13
Starting loop...Took 384.457 ms
Output for 5.3.12
Starting loop...Took 410.537 ms
Output for 5.3.11
Starting loop...Took 386.517 ms
Output for 5.3.10
Starting loop...Took 385.478 ms
Output for 5.3.9
Starting loop...Took 407.713 ms
Output for 5.3.8
Starting loop...Took 396.954 ms
Output for 5.3.7
Starting loop...Took 377.782 ms
Output for 5.3.6
Starting loop...Took 390.228 ms
Output for 5.3.5
Starting loop...Took 386.298 ms
Output for 5.3.4
Starting loop...Took 402.828 ms
Output for 5.3.3
Starting loop...Took 392.635 ms
Output for 5.3.2
Starting loop...Took 376.734 ms
Output for 5.3.1
Starting loop...Took 387.222 ms
Output for 5.3.0
Starting loop...Took 408.917 ms
Output for 5.2.17
Starting loop...Took 407.180 ms
Output for 5.2.16
Starting loop...Took 417.085 ms
Output for 5.2.15
Starting loop...Took 402.219 ms
Output for 5.2.14
Starting loop...Took 413.561 ms
Output for 5.2.13
Starting loop...Took 400.939 ms
Output for 5.2.12
Starting loop...Took 436.783 ms
Output for 5.2.11
Starting loop...Took 420.340 ms
Output for 5.2.10
Starting loop...Took 406.460 ms
Output for 5.2.9
Starting loop...Took 427.736 ms
Output for 5.2.8
Starting loop...Took 416.652 ms
Output for 5.2.7
Starting loop...Took 428.099 ms
Output for 5.2.6
Starting loop...Took 417.340 ms
Output for 5.2.5
Starting loop...Took 479.332 ms
Output for 5.2.4
Starting loop...Took 502.091 ms
Output for 5.2.3
Starting loop...Took 489.661 ms
Output for 5.2.2
Starting loop...Took 441.185 ms
Output for 5.2.1
Starting loop...Took 450.697 ms
Output for 5.2.0
Starting loop...Took 458.382 ms
Output for 5.1.6
Starting loop...Took 428.666 ms
Output for 5.1.5
Starting loop...Took 522.201 ms
Output for 5.1.4
Starting loop...Took 451.836 ms
Output for 5.1.3
Starting loop...Took 420.235 ms
Output for 5.1.2
Starting loop...Took 468.669 ms
Output for 5.1.1
Starting loop...Took 439.858 ms
Output for 5.1.0
Starting loop...Took 451.184 ms
Output for 5.0.0 - 5.0.5
Starting loop... Fatal error: Call to undefined method ReflectionMethod::invokeArgs() in /in/GbvDN on line 13
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/GbvDN on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/GbvDN on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/GbvDN on line 3
Process exited with code 255.