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->invoke($obj, array()); } echo "Took ", number_format((microtime(true)-$start)*1e3, 3), " ms";
Output for 7.1.0
Starting loop...Took 90.874 ms
Output for 7.0.14
Starting loop...Took 144.820 ms
Output for 7.0.7
Starting loop...Took 110.115 ms
Output for 7.0.6
Starting loop...Took 136.267 ms
Output for 7.0.5
Starting loop...Took 124.945 ms
Output for 7.0.4
Starting loop...Took 133.518 ms
Output for 7.0.3
Starting loop...Took 143.239 ms
Output for 7.0.2
Starting loop...Took 110.632 ms
Output for 7.0.1
Starting loop...Took 119.450 ms
Output for 7.0.0
Starting loop...Took 136.760 ms
Output for hhvm-3.12.0
Starting loop...Took 809.150 ms
Output for hhvm-3.10.0
Starting loop...Took 975.156 ms
Output for 5.6.28
Starting loop...Took 289.810 ms
Output for 5.6.22
Starting loop...Took 350.791 ms
Output for 5.6.21
Starting loop...Took 337.065 ms
Output for 5.6.20
Starting loop...Took 356.211 ms
Output for 5.6.19
Starting loop...Took 342.054 ms
Output for 5.6.18
Starting loop...Took 341.569 ms
Output for 5.6.17
Starting loop...Took 345.758 ms
Output for 5.6.16
Starting loop...Took 323.633 ms
Output for 5.6.15
Starting loop...Took 352.461 ms
Output for 5.6.14
Starting loop...Took 293.224 ms
Output for 5.6.13
Starting loop...Took 309.387 ms
Output for 5.6.12
Starting loop...Took 323.244 ms
Output for 5.6.11
Starting loop...Took 336.679 ms
Output for 5.6.10
Starting loop...Took 309.144 ms
Output for 5.6.9
Starting loop...Took 317.985 ms
Output for 5.6.8
Starting loop...Took 334.804 ms
Output for 5.6.7
Starting loop...Took 338.725 ms
Output for 5.6.6
Starting loop...Took 312.522 ms
Output for 5.6.5
Starting loop...Took 316.884 ms
Output for 5.6.4
Starting loop...Took 324.278 ms
Output for 5.6.3
Starting loop...Took 339.792 ms
Output for 5.6.2
Starting loop...Took 329.812 ms
Output for 5.6.1
Starting loop...Took 311.204 ms
Output for 5.6.0
Starting loop...Took 343.391 ms
Output for 5.5.36
Starting loop...Took 320.593 ms
Output for 5.5.35
Starting loop...Took 331.514 ms
Output for 5.5.34
Starting loop...Took 338.104 ms
Output for 5.5.33
Starting loop...Took 338.607 ms
Output for 5.5.32
Starting loop...Took 343.218 ms
Output for 5.5.31
Starting loop...Took 339.963 ms
Output for 5.5.30
Starting loop...Took 329.893 ms
Output for 5.5.29
Starting loop...Took 340.085 ms
Output for 5.5.28
Starting loop...Took 329.666 ms
Output for 5.5.27
Starting loop...Took 322.301 ms
Output for 5.5.26
Starting loop...Took 325.525 ms
Output for 5.5.25
Starting loop...Took 344.121 ms
Output for 5.5.24
Starting loop...Took 321.763 ms
Output for 5.5.23
Starting loop...Took 310.045 ms
Output for 5.5.22
Starting loop...Took 305.757 ms
Output for 5.5.21
Starting loop...Took 321.121 ms
Output for 5.5.20
Starting loop...Took 342.661 ms
Output for 5.5.19
Starting loop...Took 317.808 ms
Output for 5.5.18
Starting loop...Took 345.109 ms
Output for 5.5.16
Starting loop...Took 305.523 ms
Output for 5.5.15
Starting loop...Took 340.304 ms
Output for 5.5.14
Starting loop...Took 305.700 ms
Output for 5.5.13
Starting loop...Took 320.886 ms
Output for 5.5.12
Starting loop...Took 256.741 ms
Output for 5.5.11
Starting loop...Took 252.149 ms
Output for 5.5.10
Starting loop...Took 290.897 ms
Output for 5.5.9
Starting loop...Took 279.429 ms
Output for 5.5.8
Starting loop...Took 304.284 ms
Output for 5.5.7
Starting loop...Took 258.485 ms
Output for 5.5.6
Starting loop...Took 248.240 ms
Output for 5.5.5
Starting loop...Took 263.201 ms
Output for 5.5.4
Starting loop...Took 323.401 ms
Output for 5.5.3
Starting loop...Took 341.997 ms
Output for 5.5.2
Starting loop...Took 354.003 ms
Output for 5.5.1
Starting loop...Took 351.334 ms
Output for 5.5.0
Starting loop...Took 324.239 ms
Output for 5.4.45
Starting loop...Took 314.434 ms
Output for 5.4.44
Starting loop...Took 327.244 ms
Output for 5.4.43
Starting loop...Took 339.506 ms
Output for 5.4.42
Starting loop...Took 346.866 ms
Output for 5.4.41
Starting loop...Took 309.778 ms
Output for 5.4.40
Starting loop...Took 350.305 ms
Output for 5.4.39
Starting loop...Took 274.443 ms
Output for 5.4.38
Starting loop...Took 339.685 ms
Output for 5.4.37
Starting loop...Took 307.644 ms
Output for 5.4.36
Starting loop...Took 311.783 ms
Output for 5.4.35
Starting loop...Took 316.265 ms
Output for 5.4.34
Starting loop...Took 316.080 ms
Output for 5.4.32
Starting loop...Took 337.281 ms
Output for 5.4.31
Starting loop...Took 325.560 ms
Output for 5.4.30
Starting loop...Took 330.507 ms
Output for 5.4.29
Starting loop...Took 300.982 ms
Output for 5.4.28
Starting loop...Took 307.823 ms
Output for 5.4.27
Starting loop...Took 342.273 ms
Output for 5.4.26
Starting loop...Took 257.684 ms
Output for 5.4.25
Starting loop...Took 320.637 ms
Output for 5.4.24
Starting loop...Took 299.278 ms
Output for 5.4.23
Starting loop...Took 255.854 ms
Output for 5.4.22
Starting loop...Took 313.995 ms
Output for 5.4.21
Starting loop...Took 295.280 ms
Output for 5.4.20
Starting loop...Took 317.121 ms
Output for 5.4.19
Starting loop...Took 337.907 ms
Output for 5.4.18
Starting loop...Took 350.555 ms
Output for 5.4.17
Starting loop...Took 330.377 ms
Output for 5.4.16
Starting loop...Took 336.551 ms
Output for 5.4.15
Starting loop...Took 312.414 ms
Output for 5.4.14
Starting loop...Took 334.146 ms
Output for 5.4.13
Starting loop...Took 336.967 ms
Output for 5.4.12
Starting loop...Took 311.288 ms
Output for 5.4.11
Starting loop...Took 333.467 ms
Output for 5.4.10
Starting loop...Took 338.913 ms
Output for 5.4.9
Starting loop...Took 348.944 ms
Output for 5.4.8
Starting loop...Took 337.561 ms
Output for 5.4.7
Starting loop...Took 326.771 ms
Output for 5.4.6
Starting loop...Took 345.351 ms
Output for 5.4.5
Starting loop...Took 308.869 ms
Output for 5.4.4
Starting loop...Took 337.102 ms
Output for 5.4.3
Starting loop...Took 318.702 ms
Output for 5.4.2
Starting loop...Took 341.966 ms
Output for 5.4.1
Starting loop...Took 343.613 ms
Output for 5.4.0
Starting loop...Took 376.927 ms
Output for 5.3.29
Starting loop...Took 407.000 ms
Output for 5.3.28
Starting loop...Took 372.349 ms
Output for 5.3.27
Starting loop...Took 402.541 ms
Output for 5.3.26
Starting loop...Took 385.892 ms
Output for 5.3.25
Starting loop...Took 396.631 ms
Output for 5.3.24
Starting loop...Took 379.498 ms
Output for 5.3.23
Starting loop...Took 372.636 ms
Output for 5.3.22
Starting loop...Took 387.017 ms
Output for 5.3.21
Starting loop...Took 404.609 ms
Output for 5.3.20
Starting loop...Took 382.090 ms
Output for 5.3.19
Starting loop...Took 384.319 ms
Output for 5.3.18
Starting loop...Took 370.425 ms
Output for 5.3.17
Starting loop...Took 406.599 ms
Output for 5.3.16
Starting loop...Took 390.464 ms
Output for 5.3.15
Starting loop...Took 357.787 ms
Output for 5.3.14
Starting loop...Took 387.714 ms
Output for 5.3.13
Starting loop...Took 380.828 ms
Output for 5.3.12
Starting loop...Took 370.517 ms
Output for 5.3.11
Starting loop...Took 388.869 ms
Output for 5.3.10
Starting loop...Took 385.183 ms
Output for 5.3.9
Starting loop...Took 362.947 ms
Output for 5.3.8
Starting loop...Took 401.948 ms
Output for 5.3.7
Starting loop...Took 391.425 ms
Output for 5.3.6
Starting loop...Took 394.613 ms
Output for 5.3.5
Starting loop...Took 416.125 ms
Output for 5.3.4
Starting loop...Took 406.331 ms
Output for 5.3.3
Starting loop...Took 399.691 ms
Output for 5.3.2
Starting loop...Took 405.372 ms
Output for 5.3.1
Starting loop...Took 371.529 ms
Output for 5.3.0
Starting loop...Took 439.361 ms
Output for 5.2.17
Starting loop...Took 412.983 ms
Output for 5.2.16
Starting loop...Took 401.814 ms
Output for 5.2.15
Starting loop...Took 399.129 ms
Output for 5.2.14
Starting loop...Took 418.985 ms
Output for 5.2.13
Starting loop...Took 420.775 ms
Output for 5.2.12
Starting loop...Took 413.689 ms
Output for 5.2.11
Starting loop...Took 396.729 ms
Output for 5.2.10
Starting loop...Took 406.318 ms
Output for 5.2.9
Starting loop...Took 394.699 ms
Output for 5.2.8
Starting loop...Took 377.572 ms
Output for 5.2.7
Starting loop...Took 395.235 ms
Output for 5.2.6
Starting loop...Took 370.839 ms
Output for 5.2.5
Starting loop...Took 451.517 ms
Output for 5.2.4
Starting loop...Took 445.575 ms
Output for 5.2.3
Starting loop...Took 449.467 ms
Output for 5.2.2
Starting loop...Took 463.201 ms
Output for 5.2.1
Starting loop...Took 410.325 ms
Output for 5.2.0
Starting loop...Took 405.289 ms
Output for 5.1.6
Starting loop...Took 336.018 ms
Output for 5.1.5
Starting loop...Took 441.752 ms
Output for 5.1.4
Starting loop...Took 438.803 ms
Output for 5.1.3
Starting loop...Took 424.427 ms
Output for 5.1.2
Starting loop...Took 419.820 ms
Output for 5.1.1
Starting loop...Took 424.562 ms
Output for 5.1.0
Starting loop...Took 447.737 ms
Output for 5.0.5
Starting loop...Took 587.146 ms
Output for 5.0.4
Starting loop...Took 565.457 ms
Output for 5.0.3
Starting loop...Took 572.684 ms
Output for 5.0.2
Starting loop...Took 601.132 ms
Output for 5.0.1
Starting loop...Took 583.728 ms
Output for 5.0.0
Starting loop...Took 589.732 ms
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/D4MKo 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/D4MKo 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/D4MKo on line 3
Process exited with code 255.