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++) { call_user_func_array(array($obj, 'method'), array()); } echo "Took ", number_format((microtime(true)-$start)*1e3, 3), " ms";
Output for 7.1.0
Starting loop...Took -142.113 ms
Output for 7.0.14
Starting loop...Took 144.050 ms
Output for 7.0.12
Starting loop...Took 152.110 ms
Output for 7.0.8
Starting loop...Took 133.670 ms
Output for 7.0.7
Starting loop...Took 129.948 ms
Output for 7.0.6
Starting loop...Took 133.750 ms
Output for 7.0.5
Starting loop...Took 118.657 ms
Output for 7.0.4
Starting loop...Took 119.111 ms
Output for 7.0.3
Starting loop...Took 141.421 ms
Output for 7.0.2
Starting loop...Took 110.138 ms
Output for 7.0.1
Starting loop...Took 139.041 ms
Output for 7.0.0
Starting loop...Took 134.420 ms
Output for hhvm-3.12.0
Starting loop...Took 216.612 ms
Output for hhvm-3.10.0
Starting loop...Took 239.586 ms
Output for 5.6.28
Starting loop...Took -393.786 ms
Output for 5.6.23
Starting loop...Took 559.953 ms
Output for 5.6.22
Starting loop...Took 514.333 ms
Output for 5.6.21
Starting loop...Took 519.842 ms
Output for 5.6.20
Starting loop...Took 525.107 ms
Output for 5.6.19
Starting loop...Took 507.213 ms
Output for 5.6.18
Starting loop...Took 515.507 ms
Output for 5.6.17
Starting loop...Took 515.189 ms
Output for 5.6.16
Starting loop...Took 516.445 ms
Output for 5.6.15
Starting loop...Took 446.128 ms
Output for 5.6.14
Starting loop...Took 447.261 ms
Output for 5.6.13
Starting loop...Took 418.584 ms
Output for 5.6.12
Starting loop...Took 446.170 ms
Output for 5.6.11
Starting loop...Took 458.926 ms
Output for 5.6.10
Starting loop...Took 499.628 ms
Output for 5.6.9
Starting loop...Took 421.338 ms
Output for 5.6.8
Starting loop...Took 518.550 ms
Output for 5.6.7
Starting loop...Took 458.137 ms
Output for 5.6.6
Starting loop...Took 432.295 ms
Output for 5.6.5
Starting loop...Took 535.564 ms
Output for 5.6.4
Starting loop...Took 437.094 ms
Output for 5.6.3
Starting loop...Took 488.505 ms
Output for 5.6.2
Starting loop...Took 509.758 ms
Output for 5.6.1
Starting loop...Took 547.615 ms
Output for 5.6.0
Starting loop...Took 615.362 ms
Output for 5.5.37
Starting loop...Took 519.764 ms
Output for 5.5.36
Starting loop...Took 511.106 ms
Output for 5.5.35
Starting loop...Took 529.580 ms
Output for 5.5.34
Starting loop...Took 508.571 ms
Output for 5.5.33
Starting loop...Took 515.917 ms
Output for 5.5.32
Starting loop...Took 539.515 ms
Output for 5.5.31
Starting loop...Took 471.464 ms
Output for 5.5.30
Starting loop...Took 413.095 ms
Output for 5.5.29
Starting loop...Took 534.948 ms
Output for 5.5.28
Starting loop...Took 538.603 ms
Output for 5.5.27
Starting loop...Took 529.817 ms
Output for 5.5.26
Starting loop...Took 507.128 ms
Output for 5.5.25
Starting loop...Took 428.972 ms
Output for 5.5.24
Starting loop...Took 503.093 ms
Output for 5.5.23
Starting loop...Took 422.177 ms
Output for 5.5.22
Starting loop...Took 479.055 ms
Output for 5.5.21
Starting loop...Took 530.391 ms
Output for 5.5.20
Starting loop...Took 550.256 ms
Output for 5.5.19
Starting loop...Took 422.615 ms
Output for 5.5.18
Starting loop...Took 450.794 ms
Output for 5.5.16
Starting loop...Took 529.328 ms
Output for 5.5.15
Starting loop...Took 470.905 ms
Output for 5.5.14
Starting loop...Took 512.684 ms
Output for 5.5.13
Starting loop...Took 477.401 ms
Output for 5.5.12
Starting loop...Took 435.420 ms
Output for 5.5.11
Starting loop...Took 580.554 ms
Output for 5.5.10
Starting loop...Took 508.811 ms
Output for 5.5.9
Starting loop...Took 592.238 ms
Output for 5.5.8
Starting loop...Took 514.075 ms
Output for 5.5.7
Starting loop...Took 534.226 ms
Output for 5.5.6
Starting loop...Took 533.026 ms
Output for 5.5.5
Starting loop...Took 529.828 ms
Output for 5.5.4
Starting loop...Took 580.558 ms
Output for 5.5.3
Starting loop...Took 604.625 ms
Output for 5.5.2
Starting loop...Took 540.274 ms
Output for 5.5.1
Starting loop...Took 528.371 ms
Output for 5.5.0
Starting loop...Took 512.739 ms
Output for 5.4.45
Starting loop...Took 504.921 ms
Output for 5.4.44
Starting loop...Took 423.036 ms
Output for 5.4.43
Starting loop...Took 522.036 ms
Output for 5.4.42
Starting loop...Took 511.279 ms
Output for 5.4.41
Starting loop...Took 425.395 ms
Output for 5.4.40
Starting loop...Took 532.857 ms
Output for 5.4.39
Starting loop...Took 479.175 ms
Output for 5.4.38
Starting loop...Took 433.506 ms
Output for 5.4.37
Starting loop...Took 513.155 ms
Output for 5.4.36
Starting loop...Took 480.728 ms
Output for 5.4.35
Starting loop...Took 528.022 ms
Output for 5.4.34
Starting loop...Took 438.873 ms
Output for 5.4.32
Starting loop...Took 516.033 ms
Output for 5.4.31
Starting loop...Took 557.701 ms
Output for 5.4.30
Starting loop...Took 526.030 ms
Output for 5.4.29
Starting loop...Took 504.750 ms
Output for 5.4.28
Starting loop...Took 463.356 ms
Output for 5.4.27
Starting loop...Took 527.317 ms
Output for 5.4.26
Starting loop...Took 534.364 ms
Output for 5.4.25
Starting loop...Took 512.014 ms
Output for 5.4.24
Starting loop...Took 538.210 ms
Output for 5.4.23
Starting loop...Took 508.891 ms
Output for 5.4.22
Starting loop...Took 507.772 ms
Output for 5.4.21
Starting loop...Took 512.143 ms
Output for 5.4.20
Starting loop...Took 526.913 ms
Output for 5.4.19
Starting loop...Took 521.926 ms
Output for 5.4.18
Starting loop...Took 536.007 ms
Output for 5.4.17
Starting loop...Took 521.494 ms
Output for 5.4.16
Starting loop...Took 533.634 ms
Output for 5.4.15
Starting loop...Took 512.691 ms
Output for 5.4.14
Starting loop...Took 521.360 ms
Output for 5.4.13
Starting loop...Took 537.724 ms
Output for 5.4.12
Starting loop...Took 509.402 ms
Output for 5.4.11
Starting loop...Took 534.353 ms
Output for 5.4.10
Starting loop...Took 475.788 ms
Output for 5.4.9
Starting loop...Took 412.773 ms
Output for 5.4.8
Starting loop...Took 410.966 ms
Output for 5.4.7
Starting loop...Took 505.294 ms
Output for 5.4.6
Starting loop...Took 499.343 ms
Output for 5.4.5
Starting loop...Took 412.689 ms
Output for 5.4.4
Starting loop...Took 415.067 ms
Output for 5.4.3
Starting loop...Took 541.690 ms
Output for 5.4.2
Starting loop...Took 510.339 ms
Output for 5.4.1
Starting loop...Took 535.343 ms
Output for 5.4.0
Starting loop...Took 524.932 ms
Output for 5.3.29
Starting loop...Took 575.046 ms
Output for 5.3.28
Starting loop...Took 575.988 ms
Output for 5.3.27
Starting loop...Took 576.078 ms
Output for 5.3.26
Starting loop...Took 579.669 ms
Output for 5.3.25
Starting loop...Took 582.970 ms
Output for 5.3.24
Starting loop...Took 530.034 ms
Output for 5.3.23
Starting loop...Took 571.285 ms
Output for 5.3.22
Starting loop...Took 559.716 ms
Output for 5.3.21
Starting loop...Took 676.535 ms
Output for 5.3.20
Starting loop...Took 522.268 ms
Output for 5.3.19
Starting loop...Took 471.695 ms
Output for 5.3.18
Starting loop...Took 528.944 ms
Output for 5.3.17
Starting loop...Took 513.227 ms
Output for 5.3.16
Starting loop...Took 448.538 ms
Output for 5.3.15
Starting loop...Took 554.849 ms
Output for 5.3.14
Starting loop...Took 570.006 ms
Output for 5.3.13
Starting loop...Took 582.920 ms
Output for 5.3.12
Starting loop...Took 561.380 ms
Output for 5.3.11
Starting loop...Took 562.514 ms
Output for 5.3.10
Starting loop...Took 557.705 ms
Output for 5.3.9
Starting loop...Took 556.624 ms
Output for 5.3.8
Starting loop...Took 560.291 ms
Output for 5.3.7
Starting loop...Took 560.016 ms
Output for 5.3.6
Starting loop...Took 577.571 ms
Output for 5.3.5
Starting loop...Took 563.300 ms
Output for 5.3.4
Starting loop...Took 552.231 ms
Output for 5.3.3
Starting loop...Took 579.884 ms
Output for 5.3.2
Starting loop...Took 448.297 ms
Output for 5.3.1
Starting loop...Took 556.755 ms
Output for 5.3.0
Starting loop...Took 452.858 ms
Output for 5.2.17
Starting loop...Took 653.345 ms
Output for 5.2.16
Starting loop...Took 704.807 ms
Output for 5.2.15
Starting loop...Took 723.651 ms
Output for 5.2.14
Starting loop...Took 605.311 ms
Output for 5.2.13
Starting loop...Took 665.529 ms
Output for 5.2.12
Starting loop...Took 666.131 ms
Output for 5.2.11
Starting loop...Took 579.981 ms
Output for 5.2.10
Starting loop...Took 711.364 ms
Output for 5.2.9
Starting loop...Took 675.834 ms
Output for 5.2.8
Starting loop...Took 674.059 ms
Output for 5.2.7
Starting loop...Took 679.793 ms
Output for 5.2.6
Starting loop...Took 693.807 ms
Output for 5.2.5
Starting loop...Took 786.696 ms
Output for 5.2.4
Starting loop...Took 751.672 ms
Output for 5.2.3
Starting loop...Took 690.935 ms
Output for 5.2.2
Starting loop...Took 729.317 ms
Output for 5.2.1
Starting loop...Took 754.790 ms
Output for 5.2.0
Starting loop...Took 704.652 ms
Output for 5.1.6
Starting loop...Took 614.710 ms
Output for 5.1.5
Starting loop...Took 641.290 ms
Output for 5.1.4
Starting loop...Took 652.575 ms
Output for 5.1.3
Starting loop...Took 620.095 ms
Output for 5.1.2
Starting loop...Took 622.364 ms
Output for 5.1.1
Starting loop...Took 638.463 ms
Output for 5.1.0
Starting loop...Took 669.264 ms
Output for 5.0.5
Starting loop...Took 706.518 ms
Output for 5.0.4
Starting loop...Took 829.406 ms
Output for 5.0.3
Starting loop...Took 815.870 ms
Output for 5.0.2
Starting loop...Took 816.287 ms
Output for 5.0.1
Starting loop...Took 835.246 ms
Output for 5.0.0
Starting loop...Took 768.760 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/Zabc6 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/Zabc6 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/Zabc6 on line 3
Process exited with code 255.