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++) { $obj->method(array()); } echo "Took ", number_format((microtime(true)-$start)*1e3, 3), " ms";
Output for 7.1.0
Starting loop...Took 57.692 ms
Output for 7.0.14
Starting loop...Took 62.136 ms
Output for 7.0.12
Starting loop...Took 77.534 ms
Output for 7.0.6
Starting loop...Took 48.877 ms
Output for 7.0.5
Starting loop...Took 67.359 ms
Output for 7.0.4
Starting loop...Took 69.196 ms
Output for 7.0.3
Starting loop...Took 61.103 ms
Output for 7.0.2
Starting loop...Took 65.716 ms
Output for 7.0.1
Starting loop...Took 67.114 ms
Output for 7.0.0
Starting loop...Took 64.871 ms
Output for hhvm-3.12.0
Starting loop...Took 129.762 ms
Output for hhvm-3.10.0
Starting loop...Took 167.428 ms
Output for 5.6.28
Starting loop...Took 140.558 ms
Output for 5.6.21
Starting loop...Took 166.932 ms
Output for 5.6.20
Starting loop...Took 163.510 ms
Output for 5.6.19
Starting loop...Took 165.707 ms
Output for 5.6.18
Starting loop...Took 181.996 ms
Output for 5.6.17
Starting loop...Took 201.416 ms
Output for 5.6.16
Starting loop...Took 162.281 ms
Output for 5.6.15
Starting loop...Took 161.916 ms
Output for 5.6.14
Starting loop...Took 186.961 ms
Output for 5.6.13
Starting loop...Took 164.413 ms
Output for 5.6.12
Starting loop...Took 178.646 ms
Output for 5.6.11
Starting loop...Took 172.301 ms
Output for 5.6.10
Starting loop...Took 186.142 ms
Output for 5.6.9
Starting loop...Took 187.538 ms
Output for 5.6.8
Starting loop...Took 165.731 ms
Output for 5.6.7
Starting loop...Took 162.449 ms
Output for 5.6.6
Starting loop...Took 164.478 ms
Output for 5.6.5
Starting loop...Took 159.293 ms
Output for 5.6.4
Starting loop...Took 161.655 ms
Output for 5.6.3
Starting loop...Took 157.782 ms
Output for 5.6.2
Starting loop...Took 160.260 ms
Output for 5.6.1
Starting loop...Took 243.473 ms
Output for 5.6.0
Starting loop...Took 179.476 ms
Output for 5.5.35
Starting loop...Took 178.392 ms
Output for 5.5.34
Starting loop...Took 173.535 ms
Output for 5.5.33
Starting loop...Took 165.392 ms
Output for 5.5.32
Starting loop...Took 173.239 ms
Output for 5.5.31
Starting loop...Took 181.484 ms
Output for 5.5.30
Starting loop...Took 158.255 ms
Output for 5.5.29
Starting loop...Took 174.844 ms
Output for 5.5.28
Starting loop...Took 183.333 ms
Output for 5.5.27
Starting loop...Took 185.835 ms
Output for 5.5.26
Starting loop...Took 178.228 ms
Output for 5.5.25
Starting loop...Took 161.420 ms
Output for 5.5.24
Starting loop...Took 158.843 ms
Output for 5.5.23
Starting loop...Took 191.972 ms
Output for 5.5.22
Starting loop...Took 159.915 ms
Output for 5.5.21
Starting loop...Took 154.121 ms
Output for 5.5.20
Starting loop...Took 162.337 ms
Output for 5.5.19
Starting loop...Took 187.917 ms
Output for 5.5.18
Starting loop...Took 158.205 ms
Output for 5.5.16
Starting loop...Took 165.477 ms
Output for 5.5.15
Starting loop...Took 183.499 ms
Output for 5.5.14
Starting loop...Took 193.536 ms
Output for 5.5.13
Starting loop...Took 162.958 ms
Output for 5.5.12
Starting loop...Took 170.630 ms
Output for 5.5.11
Starting loop...Took 179.953 ms
Output for 5.5.10
Starting loop...Took 180.465 ms
Output for 5.5.9
Starting loop...Took 180.490 ms
Output for 5.5.8
Starting loop...Took 178.025 ms
Output for 5.5.7
Starting loop...Took 174.631 ms
Output for 5.5.6
Starting loop...Took 159.941 ms
Output for 5.5.5
Starting loop...Took 184.115 ms
Output for 5.5.4
Starting loop...Took 184.502 ms
Output for 5.5.3
Starting loop...Took 194.880 ms
Output for 5.5.2
Starting loop...Took 182.215 ms
Output for 5.5.1
Starting loop...Took 190.273 ms
Output for 5.5.0
Starting loop...Took 189.565 ms
Output for 5.4.45
Starting loop...Took 162.211 ms
Output for 5.4.44
Starting loop...Took 184.329 ms
Output for 5.4.43
Starting loop...Took 177.401 ms
Output for 5.4.42
Starting loop...Took 163.594 ms
Output for 5.4.41
Starting loop...Took 161.573 ms
Output for 5.4.40
Starting loop...Took 160.561 ms
Output for 5.4.39
Starting loop...Took 150.938 ms
Output for 5.4.38
Starting loop...Took 169.854 ms
Output for 5.4.37
Starting loop...Took 153.727 ms
Output for 5.4.36
Starting loop...Took 157.269 ms
Output for 5.4.35
Starting loop...Took 152.245 ms
Output for 5.4.34
Starting loop...Took 153.114 ms
Output for 5.4.32
Starting loop...Took 173.287 ms
Output for 5.4.31
Starting loop...Took 183.285 ms
Output for 5.4.30
Starting loop...Took 180.331 ms
Output for 5.4.29
Starting loop...Took 174.417 ms
Output for 5.4.28
Starting loop...Took 170.428 ms
Output for 5.4.27
Starting loop...Took 170.032 ms
Output for 5.4.26
Starting loop...Took 159.275 ms
Output for 5.4.25
Starting loop...Took 173.007 ms
Output for 5.4.24
Starting loop...Took 162.012 ms
Output for 5.4.23
Starting loop...Took 184.503 ms
Output for 5.4.9, 5.4.22
Starting loop...Took 178.458 ms
Output for 5.4.21
Starting loop...Took 160.668 ms
Output for 5.4.20
Starting loop...Took 183.770 ms
Output for 5.4.19
Starting loop...Took 166.750 ms
Output for 5.4.18
Starting loop...Took 179.070 ms
Output for 5.4.17
Starting loop...Took 153.599 ms
Output for 5.4.16
Starting loop...Took 181.064 ms
Output for 5.4.15
Starting loop...Took 163.146 ms
Output for 5.4.14
Starting loop...Took 185.122 ms
Output for 5.4.13
Starting loop...Took 159.946 ms
Output for 5.4.12
Starting loop...Took 157.592 ms
Output for 5.4.11
Starting loop...Took 187.351 ms
Output for 5.4.10
Starting loop...Took 174.827 ms
Output for 5.4.8
Starting loop...Took 178.815 ms
Output for 5.4.7
Starting loop...Took 165.610 ms
Output for 5.4.6
Starting loop...Took 156.402 ms
Output for 5.4.5
Starting loop...Took 176.949 ms
Output for 5.4.4
Starting loop...Took 158.020 ms
Output for 5.4.3
Starting loop...Took 158.667 ms
Output for 5.4.2
Starting loop...Took 186.862 ms
Output for 5.4.1
Starting loop...Took 170.154 ms
Output for 5.4.0
Starting loop...Took 185.195 ms
Output for 5.3.29
Starting loop...Took 235.300 ms
Output for 5.3.28
Starting loop...Took 217.916 ms
Output for 5.3.27
Starting loop...Took 236.293 ms
Output for 5.3.26
Starting loop...Took 227.132 ms
Output for 5.3.25
Starting loop...Took 225.323 ms
Output for 5.3.24
Starting loop...Took 215.130 ms
Output for 5.3.23
Starting loop...Took 237.191 ms
Output for 5.3.22
Starting loop...Took 234.244 ms
Output for 5.3.21
Starting loop...Took 218.304 ms
Output for 5.3.20
Starting loop...Took 237.626 ms
Output for 5.3.19
Starting loop...Took 207.808 ms
Output for 5.3.18
Starting loop...Took 233.442 ms
Output for 5.3.17
Starting loop...Took 224.126 ms
Output for 5.3.16
Starting loop...Took 227.076 ms
Output for 5.3.15
Starting loop...Took 219.418 ms
Output for 5.3.14
Starting loop...Took 238.144 ms
Output for 5.3.13
Starting loop...Took 226.618 ms
Output for 5.3.12
Starting loop...Took 230.344 ms
Output for 5.3.11
Starting loop...Took 243.895 ms
Output for 5.3.10
Starting loop...Took 234.975 ms
Output for 5.3.9
Starting loop...Took 240.095 ms
Output for 5.3.8
Starting loop...Took 233.818 ms
Output for 5.3.7
Starting loop...Took 232.921 ms
Output for 5.3.6
Starting loop...Took 234.093 ms
Output for 5.3.5
Starting loop...Took 236.143 ms
Output for 5.3.4
Starting loop...Took 224.647 ms
Output for 5.3.3
Starting loop...Took 276.501 ms
Output for 5.3.2
Starting loop...Took 236.364 ms
Output for 5.3.1
Starting loop...Took 228.756 ms
Output for 5.3.0
Starting loop...Took 246.872 ms
Output for 5.2.17
Starting loop...Took 272.945 ms
Output for 5.2.16
Starting loop...Took 259.081 ms
Output for 5.2.15
Starting loop...Took 261.457 ms
Output for 5.2.14
Starting loop...Took 271.787 ms
Output for 5.2.13
Starting loop...Took 265.763 ms
Output for 5.2.12
Starting loop...Took 299.434 ms
Output for 5.2.11
Starting loop...Took 235.683 ms
Output for 5.2.10
Starting loop...Took 232.954 ms
Output for 5.2.9
Starting loop...Took 268.181 ms
Output for 5.2.8
Starting loop...Took 241.607 ms
Output for 5.2.7
Starting loop...Took 241.758 ms
Output for 5.2.6
Starting loop...Took 237.830 ms
Output for 5.2.5
Starting loop...Took 255.488 ms
Output for 5.2.4
Starting loop...Took 256.531 ms
Output for 5.2.3
Starting loop...Took 266.569 ms
Output for 5.2.2
Starting loop...Took 263.124 ms
Output for 5.2.1
Starting loop...Took 244.630 ms
Output for 5.2.0
Starting loop...Took 244.953 ms
Output for 5.1.6
Starting loop...Took 228.572 ms
Output for 5.1.5
Starting loop...Took 246.332 ms
Output for 5.1.4
Starting loop...Took 265.311 ms
Output for 5.1.3
Starting loop...Took 264.650 ms
Output for 5.1.2
Starting loop...Took 274.776 ms
Output for 5.1.1
Starting loop...Took 262.393 ms
Output for 5.1.0
Starting loop...Took 245.315 ms
Output for 5.0.5
Starting loop...Took 377.541 ms
Output for 5.0.4
Starting loop...Took 354.284 ms
Output for 5.0.3
Starting loop...Took 366.853 ms
Output for 5.0.2
Starting loop...Took 366.764 ms
Output for 5.0.1
Starting loop...Took 363.183 ms
Output for 5.0.0
Starting loop...Took 432.949 ms
Output for 4.4.2 - 4.4.9
<br /> <b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/in/LRX9D</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
<br /> <b>Parse error</b>: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/in/LRX9D</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Parse error</b>: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in <b>/in/LRX9D</b> on line <b>3</b><br />
Process exited with code 255.