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_hash($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: 20.100ms
Output for 8.4.2
call in loop took: 12.286ms
Output for 8.4.1
call in loop took: 21.639ms
Output for 8.3.16
call in loop took: 18.959ms
Output for 8.3.15
call in loop took: 18.089ms
Output for 8.3.14
call in loop took: 20.862ms
Output for 8.3.13
call in loop took: 20.759ms
Output for 8.3.12
call in loop took: 19.600ms
Output for 8.3.11
call in loop took: 17.214ms
Output for 8.3.10
call in loop took: 9.440ms
Output for 8.3.9
call in loop took: 9.786ms
Output for 8.3.8
call in loop took: 19.145ms
Output for 8.3.7
call in loop took: 14.674ms
Output for 8.3.6
call in loop took: 8.798ms
Output for 8.3.5
call in loop took: 22.715ms
Output for 8.3.4
call in loop took: 21.643ms
Output for 8.3.3
call in loop took: 22.492ms
Output for 8.3.2
call in loop took: 20.349ms
Output for 8.3.1
call in loop took: 22.103ms
Output for 8.3.0
call in loop took: 18.824ms
Output for 8.2.27
call in loop took: 19.853ms
Output for 8.2.26
call in loop took: 21.850ms
Output for 8.2.25
call in loop took: 19.893ms
Output for 8.2.24
call in loop took: 20.676ms
Output for 8.2.23
call in loop took: 18.851ms
Output for 8.2.22
call in loop took: 20.299ms
Output for 8.2.21
call in loop took: 20.768ms
Output for 8.2.20
call in loop took: 23.015ms
Output for 8.2.19
call in loop took: 17.525ms
Output for 8.2.18
call in loop took: 12.950ms
Output for 8.2.17
call in loop took: 21.444ms
Output for 8.2.16
call in loop took: 22.464ms
Output for 8.2.15
call in loop took: 20.787ms
Output for 8.2.14
call in loop took: 20.903ms
Output for 8.2.13
call in loop took: 22.151ms
Output for 8.2.12
call in loop took: 21.337ms
Output for 8.2.11
call in loop took: 21.807ms
Output for 8.2.10
call in loop took: 15.635ms
Output for 8.2.9
call in loop took: 21.329ms
Output for 8.2.8
call in loop took: 20.500ms
Output for 8.2.7
call in loop took: 17.798ms
Output for 8.2.6
call in loop took: 21.491ms
Output for 8.2.5
call in loop took: 23.754ms
Output for 8.2.4
call in loop took: 20.970ms
Output for 8.2.3
call in loop took: 16.096ms
Output for 8.2.2
call in loop took: 22.275ms
Output for 8.2.1
call in loop took: 24.376ms
Output for 8.2.0
call in loop took: 20.127ms
Output for 8.1.31
call in loop took: 7.812ms
Output for 8.1.30
call in loop took: 7.734ms
Output for 8.1.29
call in loop took: 22.187ms
Output for 8.1.28
call in loop took: 19.570ms
Output for 8.1.27
call in loop took: 21.006ms
Output for 8.1.26
call in loop took: 24.791ms
Output for 8.1.25
call in loop took: 16.587ms
Output for 8.1.24
call in loop took: 19.355ms
Output for 8.1.23
call in loop took: 18.534ms
Output for 8.1.22
call in loop took: 22.033ms
Output for 8.1.21
call in loop took: 18.975ms
Output for 8.1.20
call in loop took: 18.564ms
Output for 8.1.19
call in loop took: 21.231ms
Output for 8.1.18
call in loop took: 15.268ms
Output for 8.1.17
call in loop took: 9.251ms
Output for 8.1.16
call in loop took: 8.277ms
Output for 8.1.15
call in loop took: 20.994ms
Output for 8.1.14
call in loop took: 21.247ms
Output for 8.1.13
call in loop took: 18.660ms
Output for 8.1.12
call in loop took: 15.183ms
Output for 8.1.11
call in loop took: 20.755ms
Output for 8.1.10
call in loop took: 20.549ms
Output for 8.1.9
call in loop took: 21.100ms
Output for 8.1.8
call in loop took: 14.631ms
Output for 8.1.7
call in loop took: 20.781ms
Output for 8.1.6
call in loop took: 21.062ms
Output for 8.1.5
call in loop took: 20.811ms
Output for 8.1.4
call in loop took: 19.781ms
Output for 8.1.3
call in loop took: 10.108ms
Output for 8.1.2
call in loop took: 8.219ms
Output for 8.1.1
call in loop took: 10.678ms
Output for 8.1.0
call in loop took: 21.269ms
Output for 8.0.30
call in loop took: 20.663ms
Output for 8.0.29
call in loop took: 19.480ms
Output for 8.0.28
call in loop took: 23.141ms
Output for 8.0.27
call in loop took: 27.388ms
Output for 8.0.26
call in loop took: 15.815ms
Output for 8.0.25
call in loop took: 21.627ms
Output for 8.0.24
call in loop took: 19.847ms
Output for 8.0.23
call in loop took: 17.022ms
Output for 8.0.22
call in loop took: 20.969ms
Output for 8.0.21
call in loop took: 21.033ms
Output for 8.0.20
call in loop took: 23.891ms
Output for 8.0.19
call in loop took: 20.372ms
Output for 8.0.18
call in loop took: 19.632ms
Output for 8.0.17
call in loop took: 9.887ms
Output for 8.0.16
call in loop took: 20.149ms
Output for 8.0.15
call in loop took: 16.004ms
Output for 8.0.14
call in loop took: 16.323ms
Output for 8.0.13
call in loop took: 18.667ms
Output for 8.0.12
call in loop took: 15.501ms
Output for 8.0.11
call in loop took: 8.814ms
Output for 8.0.10
call in loop took: 17.861ms
Output for 8.0.9
call in loop took: 10.849ms
Output for 8.0.8
call in loop took: 18.863ms
Output for 8.0.7
call in loop took: 19.304ms
Output for 8.0.6
call in loop took: 19.724ms
Output for 8.0.5
call in loop took: 18.403ms
Output for 8.0.3
call in loop took: 20.971ms
Output for 8.0.2
call in loop took: 19.691ms
Output for 8.0.1
call in loop took: 18.423ms

preferences:
56.13 ms | 556 KiB | 5 Q