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<1e5; $i++) { $ref->invokeArgs($obj, array()); } echo "Took ", number_format((microtime(true)-$start)*1e3, 3), " ms";
Output for 7.1.0
Starting loop...Took 19.441 ms
Output for 7.0.14
Starting loop...Took 20.373 ms
Output for 7.0.10
Starting loop...Took 16.143 ms
Output for 7.0.9
Starting loop...Took 14.333 ms
Output for 7.0.8
Starting loop...Took 13.590 ms
Output for 7.0.7
Starting loop...Took 15.433 ms
Output for 7.0.6
Starting loop...Took 12.443 ms
Output for 7.0.5
Starting loop...Took 14.536 ms
Output for 7.0.4
Starting loop...Took 16.415 ms
Output for 7.0.3
Starting loop...Took 14.683 ms
Output for 7.0.2
Starting loop...Took 18.897 ms
Output for 7.0.1
Starting loop...Took 16.255 ms
Output for 7.0.0
Starting loop...Took 20.587 ms
Output for hhvm-3.12.0
Starting loop...Took 235.373 ms
Output for hhvm-3.10.0
Starting loop...Took 162.556 ms
Output for 5.6.28
Starting loop...Took 43.507 ms
Output for 5.6.25
Starting loop...Took 37.485 ms
Output for 5.6.24
Starting loop...Took 49.774 ms
Output for 5.6.23
Starting loop...Took 32.191 ms
Output for 5.6.22
Starting loop...Took 45.089 ms
Output for 5.6.21
Starting loop...Took 32.603 ms
Output for 5.6.20
Starting loop...Took 39.368 ms
Output for 5.6.19
Starting loop...Took 34.064 ms
Output for 5.6.18
Starting loop...Took 36.996 ms
Output for 5.6.17
Starting loop...Took 33.805 ms
Output for 5.6.16
Starting loop...Took 33.991 ms
Output for 5.6.15
Starting loop...Took 33.341 ms
Output for 5.6.14
Starting loop...Took 34.346 ms
Output for 5.6.13
Starting loop...Took 32.241 ms
Output for 5.6.12
Starting loop...Took 39.559 ms
Output for 5.6.11
Starting loop...Took 49.932 ms
Output for 5.6.10
Starting loop...Took 35.714 ms
Output for 5.6.9
Starting loop...Took 39.128 ms
Output for 5.6.8
Starting loop...Took 49.047 ms
Output for 5.6.7
Starting loop...Took 34.524 ms
Output for 5.6.6
Starting loop...Took 34.360 ms
Output for 5.6.2, 5.6.5
Starting loop...Took 36.726 ms
Output for 5.6.4
Starting loop...Took 33.101 ms
Output for 5.6.3
Starting loop...Took 44.323 ms
Output for 5.6.1
Starting loop...Took 40.741 ms
Output for 5.6.0
Starting loop...Took 36.573 ms
Output for 5.5.38
Starting loop...Took 31.555 ms
Output for 5.5.37
Starting loop...Took 40.597 ms
Output for 5.5.36
Starting loop...Took 44.686 ms
Output for 5.5.35
Starting loop...Took 38.225 ms
Output for 5.5.34
Starting loop...Took 34.352 ms
Output for 5.5.33
Starting loop...Took 45.380 ms
Output for 5.5.32
Starting loop...Took 46.488 ms
Output for 5.5.31
Starting loop...Took 61.147 ms
Output for 5.5.30
Starting loop...Took 50.200 ms
Output for 5.5.29
Starting loop...Took 33.570 ms
Output for 5.5.28
Starting loop...Took 39.008 ms
Output for 5.5.27
Starting loop...Took 46.093 ms
Output for 5.5.26
Starting loop...Took 42.964 ms
Output for 5.5.25
Starting loop...Took 49.117 ms
Output for 5.5.24
Starting loop...Took 35.889 ms
Output for 5.5.23
Starting loop...Took 29.645 ms
Output for 5.5.22
Starting loop...Took 34.934 ms
Output for 5.5.21
Starting loop...Took 45.752 ms
Output for 5.5.20
Starting loop...Took 45.837 ms
Output for 5.5.19
Starting loop...Took 48.971 ms
Output for 5.5.18
Starting loop...Took 47.574 ms
Output for 5.5.16
Starting loop...Took 46.852 ms
Output for 5.5.15
Starting loop...Took 43.658 ms
Output for 5.5.14
Starting loop...Took 61.903 ms
Output for 5.5.13
Starting loop...Took 40.479 ms
Output for 5.5.12
Starting loop...Took 41.975 ms
Output for 5.5.11
Starting loop...Took 31.327 ms
Output for 5.5.10
Starting loop...Took 32.678 ms
Output for 5.5.9
Starting loop...Took 45.572 ms
Output for 5.5.8
Starting loop...Took 32.894 ms
Output for 5.5.7
Starting loop...Took 29.111 ms
Output for 5.5.6
Starting loop...Took 30.220 ms
Output for 5.5.5
Starting loop...Took 31.661 ms
Output for 5.5.4
Starting loop...Took 31.949 ms
Output for 5.5.3
Starting loop...Took 31.562 ms
Output for 5.5.2
Starting loop...Took 35.317 ms
Output for 5.5.1
Starting loop...Took 31.958 ms
Output for 5.5.0
Starting loop...Took 38.415 ms
Output for 5.4.45
Starting loop...Took 34.514 ms
Output for 5.4.44
Starting loop...Took 35.851 ms
Output for 5.4.43
Starting loop...Took 40.464 ms
Output for 5.4.42
Starting loop...Took 48.677 ms
Output for 5.4.41
Starting loop...Took 48.313 ms
Output for 5.4.40
Starting loop...Took 46.449 ms
Output for 5.4.39
Starting loop...Took 43.453 ms
Output for 5.4.38
Starting loop...Took 34.917 ms
Output for 5.4.37
Starting loop...Took 27.561 ms
Output for 5.4.36
Starting loop...Took 49.083 ms
Output for 5.4.35
Starting loop...Took 42.731 ms
Output for 5.4.34
Starting loop...Took 46.442 ms
Output for 5.4.32
Starting loop...Took 39.705 ms
Output for 5.4.31
Starting loop...Took 48.265 ms
Output for 5.4.30
Starting loop...Took 48.689 ms
Output for 5.4.29
Starting loop...Took 47.283 ms
Output for 5.4.28
Starting loop...Took 32.771 ms
Output for 5.4.27
Starting loop...Took 43.279 ms
Output for 5.4.26
Starting loop...Took 31.544 ms
Output for 5.4.25
Starting loop...Took 31.499 ms
Output for 5.4.24
Starting loop...Took 30.202 ms
Output for 5.4.23
Starting loop...Took 30.343 ms
Output for 5.4.22
Starting loop...Took 30.584 ms
Output for 5.4.21
Starting loop...Took 32.145 ms
Output for 5.4.20
Starting loop...Took 35.795 ms
Output for 5.4.19
Starting loop...Took 30.496 ms
Output for 5.4.18
Starting loop...Took 32.373 ms
Output for 5.4.17
Starting loop...Took 30.842 ms
Output for 5.4.16
Starting loop...Took 32.557 ms
Output for 5.4.15
Starting loop...Took 29.576 ms
Output for 5.4.14
Starting loop...Took 28.464 ms
Output for 5.4.13
Starting loop...Took 31.275 ms
Output for 5.4.12
Starting loop...Took 30.664 ms
Output for 5.4.11
Starting loop...Took 31.640 ms
Output for 5.4.10
Starting loop...Took 25.870 ms
Output for 5.4.9
Starting loop...Took 30.448 ms
Output for 5.4.8
Starting loop...Took 32.634 ms
Output for 5.4.7
Starting loop...Took 37.772 ms
Output for 5.4.6
Starting loop...Took 46.395 ms
Output for 5.4.5
Starting loop...Took 41.863 ms
Output for 5.4.4
Starting loop...Took 42.619 ms
Output for 5.4.3
Starting loop...Took 35.717 ms
Output for 5.4.2
Starting loop...Took 42.828 ms
Output for 5.4.1
Starting loop...Took 36.404 ms
Output for 5.4.0
Starting loop...Took 39.937 ms
Output for 5.3.29
Starting loop...Took 48.164 ms
Output for 5.3.28
Starting loop...Took 36.210 ms
Output for 5.3.27
Starting loop...Took 36.705 ms
Output for 5.3.26
Starting loop...Took 38.613 ms
Output for 5.3.25
Starting loop...Took 45.936 ms
Output for 5.3.24
Starting loop...Took 38.000 ms
Output for 5.3.23
Starting loop...Took 37.160 ms
Output for 5.3.22
Starting loop...Took 45.487 ms
Output for 5.3.21
Starting loop...Took 37.983 ms
Output for 5.3.20
Starting loop...Took 31.721 ms
Output for 5.3.19
Starting loop...Took 36.837 ms
Output for 5.3.18
Starting loop...Took 49.764 ms
Output for 5.3.17
Starting loop...Took 36.999 ms
Output for 5.3.16
Starting loop...Took 36.997 ms
Output for 5.3.15
Starting loop...Took 36.721 ms
Output for 5.3.14
Starting loop...Took 51.995 ms
Output for 5.3.13
Starting loop...Took 59.465 ms
Output for 5.3.12
Starting loop...Took 46.431 ms
Output for 5.3.11
Starting loop...Took 45.943 ms
Output for 5.3.10
Starting loop...Took 58.079 ms
Output for 5.3.9
Starting loop...Took 49.829 ms
Output for 5.3.8
Starting loop...Took 41.556 ms
Output for 5.3.7
Starting loop...Took 55.855 ms
Output for 5.3.6
Starting loop...Took 52.088 ms
Output for 5.3.5
Starting loop...Took 48.285 ms
Output for 5.3.4
Starting loop...Took 44.842 ms
Output for 5.3.3
Starting loop...Took 52.249 ms
Output for 5.3.2
Starting loop...Took 43.514 ms
Output for 5.3.1
Starting loop...Took 52.124 ms
Output for 5.3.0
Starting loop...Took 47.168 ms
Output for 5.2.17
Starting loop...Took 49.742 ms
Output for 5.2.16
Starting loop...Took 41.079 ms
Output for 5.2.15
Starting loop...Took 53.224 ms
Output for 5.2.14
Starting loop...Took 40.169 ms
Output for 5.2.13
Starting loop...Took 66.105 ms
Output for 5.2.12
Starting loop...Took 54.844 ms
Output for 5.2.11
Starting loop...Took 58.108 ms
Output for 5.2.10
Starting loop...Took 63.412 ms
Output for 5.2.9
Starting loop...Took 90.634 ms
Output for 5.2.8
Starting loop...Took 60.687 ms
Output for 5.2.7
Starting loop...Took 47.647 ms
Output for 5.2.6
Starting loop...Took 46.261 ms
Output for 5.2.5
Starting loop...Took 54.443 ms
Output for 5.2.4
Starting loop...Took 64.456 ms
Output for 5.2.3
Starting loop...Took 71.467 ms
Output for 5.2.2
Starting loop...Took 54.628 ms
Output for 5.2.1
Starting loop...Took 60.372 ms
Output for 5.2.0
Starting loop...Took 65.652 ms
Output for 5.1.6
Starting loop...Took 54.104 ms
Output for 5.1.5
Starting loop...Took 59.073 ms
Output for 5.1.4
Starting loop...Took 64.544 ms
Output for 5.1.3
Starting loop...Took 64.075 ms
Output for 5.1.2
Starting loop...Took 51.718 ms
Output for 5.1.1
Starting loop...Took 64.935 ms
Output for 5.1.0
Starting loop...Took 56.972 ms
Output for 5.0.0 - 5.0.5
Starting loop... Fatal error: Call to undefined method ReflectionMethod::invokeArgs() in /in/grjRU 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/grjRU 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/grjRU 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/grjRU on line 3
Process exited with code 255.