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.2.11
call in loop took: 7.604ms
Output for 8.2.10
call in loop took: 4.866ms
Output for 8.2.9
call in loop took: 4.858ms
Output for 8.2.8
call in loop took: 4.678ms
Output for 8.1.0, 8.2.7
call in loop took: 4.953ms
Output for 8.2.6
call in loop took: 5.285ms
Output for 8.2.5
call in loop took: 4.778ms
Output for 8.2.4
call in loop took: 5.025ms
Output for 8.2.3
call in loop took: 4.731ms
Output for 8.2.2
call in loop took: 6.027ms
Output for 8.2.1
call in loop took: 5.214ms
Output for 8.2.0
call in loop took: 4.687ms
Output for 8.1.22
call in loop took: 5.264ms
Output for 8.1.21
call in loop took: 5.070ms
Output for 8.1.20
call in loop took: 5.057ms
Output for 8.1.19
call in loop took: 4.902ms
Output for 8.1.18
call in loop took: 4.742ms
Output for 8.1.17
call in loop took: 5.086ms
Output for 8.1.15 - 8.1.16
call in loop took: 4.658ms
Output for 8.1.14
call in loop took: 4.972ms
Output for 8.1.13
call in loop took: 4.845ms
Output for 8.1.12
call in loop took: 4.763ms
Output for 8.1.11
call in loop took: 4.579ms
Output for 8.1.10
call in loop took: 4.860ms
Output for 8.1.9
call in loop took: 4.682ms
Output for 8.1.8
call in loop took: 4.680ms
Output for 8.1.7
call in loop took: 6.146ms
Output for 8.1.6
call in loop took: 4.847ms
Output for 8.1.5
call in loop took: 4.512ms
Output for 8.1.4
call in loop took: 4.883ms
Output for 8.1.3
call in loop took: 4.556ms
Output for 8.1.2
call in loop took: 5.142ms
Output for 8.1.1
call in loop took: 5.551ms
Output for 8.0.30
call in loop took: 7.128ms
Output for 8.0.29
call in loop took: 6.701ms
Output for 8.0.28
call in loop took: 7.585ms
Output for 8.0.27
call in loop took: 7.452ms
Output for 8.0.26
call in loop took: 7.359ms
Output for 8.0.25
call in loop took: 7.549ms
Output for 8.0.24
call in loop took: 6.393ms
Output for 8.0.23
call in loop took: 5.482ms
Output for 8.0.22
call in loop took: 5.895ms
Output for 8.0.21
call in loop took: 5.292ms
Output for 8.0.20
call in loop took: 5.961ms
Output for 8.0.19
call in loop took: 5.931ms
Output for 8.0.18
call in loop took: 5.492ms
Output for 8.0.17
call in loop took: 6.041ms
Output for 8.0.16
call in loop took: 5.297ms
Output for 8.0.15
call in loop took: 5.469ms
Output for 8.0.14
call in loop took: 5.942ms
Output for 8.0.13
call in loop took: 5.854ms
Output for 8.0.12
call in loop took: 5.145ms
Output for 8.0.11
call in loop took: 6.274ms
Output for 8.0.10
call in loop took: 7.206ms
Output for 8.0.9
call in loop took: 6.312ms
Output for 8.0.8
call in loop took: 8.219ms
Output for 8.0.7
call in loop took: 7.846ms
Output for 8.0.6
call in loop took: 4.922ms
Output for 8.0.5
call in loop took: 5.266ms
Output for 8.0.3
call in loop took: 4.703ms
Output for 8.0.2
call in loop took: 5.012ms
Output for 8.0.1
call in loop took: 4.907ms

preferences:
80.99 ms | 401 KiB | 69 Q