3v4l.org

run code in 300+ PHP versions simultaneously
<?php $null = NULL; $empty = ''; $start=microtime(TRUE); for($i=0;$i<100000000;$i++) { if($empty === '') { } } var_export(microtime(TRUE)-$start); echo "\n"; $start=microtime(TRUE); for($i=0;$i<100000000;$i++) { if(!isset($null)) { } } var_export(microtime(TRUE)-$start); echo "\n";
Output for 7.2.0
1.388206958770752
Process exited with code 137.
Output for 7.1.7
1.5534429550170898
Process exited with code 137.
Output for 7.1.6
1.789431095123291
Process exited with code 137.
Output for 7.1.5
1.6768500804901123
Process exited with code 137.
Output for 5.3.7 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.1.0

Process exited with code 137.
Output for 7.0.20
1.627791166305542
Process exited with code 137.
Output for 7.0.14
1.0258400440216064
Process exited with code 137.
Output for 7.0.6
1.37892913818359375
Process exited with code 137.
Output for 7.0.5
1.437655925750732421875
Process exited with code 137.
Output for 7.0.4
1.4660060405731201171875
Process exited with code 137.
Output for 7.0.3
1.4473621845245361328125
Process exited with code 137.
Output for 7.0.2
1.488770008087158203125
Process exited with code 137.
Output for 7.0.1
1.456822872161865234375
Process exited with code 137.
Output for 7.0.0
1.38860607147216796875
Process exited with code 137.

preferences:
113.58 ms | 401 KiB | 115 Q