3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterations = 10000000; $start = microtime(); for ($i=0; $i<$iterations; $i++) { $a = @$_GET['a'] ?: 'home'; } echo round($start - microtime(), 2);
Output for 7.2.0
Notice: A non well formed numeric value encountered in /in/sVZWG on line 10 Notice: A non well formed numeric value encountered in /in/sVZWG on line 10 -0.02
Output for 7.1.7
Notice: A non well formed numeric value encountered in /in/sVZWG on line 10 Notice: A non well formed numeric value encountered in /in/sVZWG on line 10 -0.44
Output for 7.1.6
Notice: A non well formed numeric value encountered in /in/sVZWG on line 10 Notice: A non well formed numeric value encountered in /in/sVZWG on line 10 -0.92
Output for 7.1.5
Notice: A non well formed numeric value encountered in /in/sVZWG on line 10 Notice: A non well formed numeric value encountered in /in/sVZWG on line 10 -0.91
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/sVZWG on line 10 Notice: A non well formed numeric value encountered in /in/sVZWG on line 10 -0.1
Output for 7.0.20
-0.45
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.14

Process exited with code 137.
Output for 7.0.6
0.13
Output for 7.0.2, 7.0.5
0.22
Output for 7.0.4
0.3
Output for 7.0.3
0.16
Output for 7.0.1
0.04
Output for 7.0.0
0.1

preferences:
103.07 ms | 401 KiB | 92 Q