3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_start = microtime(true); for ($i = 1; $i <= 100000; ++$i) { $obj = new stdClass; spl_object_id($obj); } $time_end = microtime(true); $for_time = $time_end - $time_start; echo "call in loop took: " . number_format($for_time * 1000, 3) . "ms\n";
Output for 8.4.3
call in loop took: 3.060ms
Output for 8.4.2
call in loop took: 6.080ms
Output for 8.4.1
call in loop took: 3.049ms
Output for 8.3.16
call in loop took: 7.117ms
Output for 8.3.15
call in loop took: 7.349ms
Output for 8.3.14
call in loop took: 5.978ms
Output for 8.3.13
call in loop took: 5.220ms
Output for 8.3.12
call in loop took: 2.959ms
Output for 8.3.11
call in loop took: 6.501ms
Output for 8.3.10
call in loop took: 5.561ms
Output for 8.3.9
call in loop took: 7.217ms
Output for 8.3.8
call in loop took: 6.448ms
Output for 8.3.7
call in loop took: 7.240ms
Output for 8.3.6
call in loop took: 6.093ms
Output for 8.3.5
call in loop took: 7.809ms
Output for 8.3.4
call in loop took: 7.298ms
Output for 8.3.3
call in loop took: 7.280ms
Output for 8.3.2
call in loop took: 12.025ms
Output for 8.3.1
call in loop took: 7.261ms
Output for 8.3.0
call in loop took: 11.112ms
Output for 8.2.27
call in loop took: 8.133ms
Output for 8.2.26
call in loop took: 8.350ms
Output for 8.2.25
call in loop took: 7.478ms
Output for 8.2.24
call in loop took: 6.708ms
Output for 8.2.23
call in loop took: 8.206ms
Output for 8.2.22
call in loop took: 7.489ms
Output for 8.2.21
call in loop took: 7.317ms
Output for 8.2.20
call in loop took: 7.683ms
Output for 8.2.19
call in loop took: 7.037ms
Output for 8.2.18
call in loop took: 7.997ms
Output for 8.2.17
call in loop took: 6.377ms
Output for 8.2.16
call in loop took: 7.459ms
Output for 8.2.15
call in loop took: 7.797ms
Output for 8.2.14
call in loop took: 7.387ms
Output for 8.2.13
call in loop took: 7.597ms
Output for 8.2.12
call in loop took: 7.370ms
Output for 8.2.11
call in loop took: 7.641ms
Output for 8.2.10
call in loop took: 7.297ms
Output for 8.2.6, 8.2.9
call in loop took: 7.482ms
Output for 8.2.8
call in loop took: 7.340ms
Output for 8.2.7
call in loop took: 7.728ms
Output for 8.2.5
call in loop took: 7.511ms
Output for 8.2.4
call in loop took: 7.331ms
Output for 8.2.3
call in loop took: 7.592ms
Output for 8.2.2
call in loop took: 7.272ms
Output for 8.2.1
call in loop took: 6.007ms
Output for 8.2.0
call in loop took: 7.540ms
Output for 8.1.31
call in loop took: 7.092ms
Output for 8.1.30
call in loop took: 7.755ms
Output for 8.1.29
call in loop took: 7.099ms
Output for 8.1.28
call in loop took: 6.889ms
Output for 8.1.27
call in loop took: 7.526ms
Output for 8.1.26
call in loop took: 7.424ms
Output for 8.1.25
call in loop took: 2.948ms
Output for 8.1.24
call in loop took: 7.216ms
Output for 8.1.23
call in loop took: 7.818ms
Output for 8.1.22
call in loop took: 7.550ms
Output for 8.1.21
call in loop took: 5.997ms
Output for 8.1.20
call in loop took: 3.024ms
Output for 8.1.19
call in loop took: 7.636ms
Output for 8.1.18
call in loop took: 6.563ms
Output for 8.1.17
call in loop took: 5.974ms
Output for 8.1.16
call in loop took: 6.142ms
Output for 8.1.15
call in loop took: 7.850ms
Output for 8.1.14
call in loop took: 7.273ms
Output for 8.0.23, 8.1.13
call in loop took: 7.651ms
Output for 8.1.12
call in loop took: 7.639ms
Output for 8.1.11
call in loop took: 7.333ms
Output for 8.1.10
call in loop took: 7.500ms
Output for 8.1.9
call in loop took: 7.357ms
Output for 8.1.8
call in loop took: 7.884ms
Output for 8.1.7
call in loop took: 9.741ms
Output for 8.1.6
call in loop took: 7.542ms
Output for 8.1.5
call in loop took: 7.186ms
Output for 8.1.4
call in loop took: 7.303ms
Output for 8.1.3
call in loop took: 7.384ms
Output for 8.1.2
call in loop took: 7.328ms
Output for 8.1.1
call in loop took: 7.414ms
Output for 8.1.0
call in loop took: 7.430ms
Output for 8.0.30
call in loop took: 9.293ms
Output for 8.0.29
call in loop took: 9.071ms
Output for 8.0.28
call in loop took: 9.026ms
Output for 8.0.27
call in loop took: 8.823ms
Output for 8.0.26
call in loop took: 9.156ms
Output for 8.0.25
call in loop took: 9.169ms
Output for 8.0.24
call in loop took: 9.212ms
Output for 8.0.22
call in loop took: 7.449ms
Output for 8.0.21
call in loop took: 7.693ms
Output for 8.0.20
call in loop took: 10.863ms
Output for 8.0.19
call in loop took: 7.627ms
Output for 8.0.18
call in loop took: 7.446ms
Output for 8.0.17
call in loop took: 7.423ms
Output for 8.0.16
call in loop took: 7.716ms
Output for 8.0.15
call in loop took: 7.552ms
Output for 8.0.14
call in loop took: 6.412ms
Output for 8.0.13
call in loop took: 7.680ms
Output for 8.0.12
call in loop took: 7.579ms
Output for 8.0.11
call in loop took: 7.344ms
Output for 8.0.10
call in loop took: 7.681ms
Output for 8.0.9
call in loop took: 9.098ms
Output for 8.0.8
call in loop took: 9.447ms
Output for 8.0.7
call in loop took: 9.349ms
Output for 8.0.6
call in loop took: 7.591ms
Output for 8.0.5
call in loop took: 7.456ms
Output for 8.0.3
call in loop took: 8.145ms
Output for 8.0.2
call in loop took: 5.806ms
Output for 8.0.1
call in loop took: 7.236ms

preferences:
77.7 ms | 553 KiB | 5 Q