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.2.11
call in loop took: 21.764ms
Output for 8.2.10
call in loop took: 15.366ms
Output for 8.2.9
call in loop took: 13.829ms
Output for 8.2.8
call in loop took: 12.891ms
Output for 8.2.7
call in loop took: 13.529ms
Output for 8.2.6
call in loop took: 13.518ms
Output for 8.2.5
call in loop took: 14.787ms
Output for 8.2.4
call in loop took: 14.281ms
Output for 8.2.3
call in loop took: 13.200ms
Output for 8.2.2
call in loop took: 13.958ms
Output for 8.2.1
call in loop took: 16.135ms
Output for 8.2.0
call in loop took: 13.021ms
Output for 8.1.22
call in loop took: 13.260ms
Output for 8.1.21
call in loop took: 12.416ms
Output for 8.1.20
call in loop took: 12.931ms
Output for 8.1.19
call in loop took: 11.946ms
Output for 8.1.18
call in loop took: 13.078ms
Output for 8.1.17
call in loop took: 12.017ms
Output for 8.1.16
call in loop took: 12.071ms
Output for 8.1.15
call in loop took: 12.046ms
Output for 8.1.14
call in loop took: 12.332ms
Output for 8.1.13
call in loop took: 13.470ms
Output for 8.1.12
call in loop took: 13.332ms
Output for 8.1.11
call in loop took: 12.667ms
Output for 8.1.10
call in loop took: 12.647ms
Output for 8.1.9
call in loop took: 13.554ms
Output for 8.1.8
call in loop took: 12.458ms
Output for 8.1.7
call in loop took: 12.392ms
Output for 8.1.6
call in loop took: 13.329ms
Output for 8.1.5
call in loop took: 13.307ms
Output for 8.1.4
call in loop took: 12.337ms
Output for 8.1.3
call in loop took: 12.022ms
Output for 8.1.2
call in loop took: 12.790ms
Output for 8.1.1
call in loop took: 12.439ms
Output for 8.1.0
call in loop took: 13.237ms
Output for 8.0.30
call in loop took: 19.783ms
Output for 8.0.29
call in loop took: 19.796ms
Output for 8.0.28
call in loop took: 19.555ms
Output for 8.0.27
call in loop took: 18.931ms
Output for 8.0.26
call in loop took: 19.064ms
Output for 8.0.25
call in loop took: 19.302ms
Output for 8.0.24
call in loop took: 18.576ms
Output for 8.0.23
call in loop took: 18.168ms
Output for 8.0.22
call in loop took: 18.863ms
Output for 8.0.21
call in loop took: 18.120ms
Output for 8.0.20
call in loop took: 17.496ms
Output for 8.0.19
call in loop took: 17.132ms
Output for 8.0.18
call in loop took: 17.455ms
Output for 8.0.17
call in loop took: 17.407ms
Output for 8.0.16
call in loop took: 17.498ms
Output for 8.0.15
call in loop took: 17.670ms
Output for 8.0.14
call in loop took: 17.868ms
Output for 8.0.13
call in loop took: 18.631ms
Output for 8.0.12
call in loop took: 17.063ms
Output for 8.0.11
call in loop took: 17.108ms
Output for 8.0.10
call in loop took: 18.613ms
Output for 8.0.9
call in loop took: 18.990ms
Output for 8.0.8
call in loop took: 20.545ms
Output for 8.0.7
call in loop took: 21.915ms
Output for 8.0.6
call in loop took: 16.939ms
Output for 8.0.5
call in loop took: 17.728ms
Output for 8.0.3
call in loop took: 17.143ms
Output for 8.0.2
call in loop took: 17.392ms
Output for 8.0.1
call in loop took: 16.630ms

preferences:
82.57 ms | 401 KiB | 69 Q