3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=1; $i1=1; $loop=1; echo'The first 30 numbers of the Fibonacci sequence are:</br>'; echo $i.'</br>'.$i1; while ($loop<30){ $i2 = $i + $i1; echo $i2.'</br>'; $i = $i1; $i1 = $i2; $loop = $loop + 1 } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.200.0040.03912.38
5.4.190.0000.05718.95
5.4.180.0100.05018.73
5.4.170.0000.05718.85
5.4.160.0000.05719.08
5.4.150.0070.05319.00
5.4.140.0030.05316.38
5.4.130.0070.04716.34
5.4.120.0100.04316.42
5.4.110.0070.05016.65
5.4.100.0030.05716.63
5.4.90.0200.05316.55
5.4.80.0070.05016.39
5.4.70.0130.04016.33
5.4.60.0070.05016.39
5.4.50.0230.05716.62
5.4.40.0030.05016.64
5.4.30.0070.05716.24
5.4.20.0030.05316.62
5.4.10.0030.05316.43
5.4.00.0100.04715.79
5.3.270.0100.08014.50
5.3.260.0030.05714.76
5.3.250.0070.05014.39
5.3.240.0100.07014.57
5.3.230.0100.04714.59
5.3.220.0100.04714.62
5.3.210.0130.07014.57
5.3.200.0000.05314.44
5.3.190.0100.04714.66
5.3.180.0070.05014.56
5.3.170.0030.06014.48
5.3.160.0100.04714.54
5.3.150.0070.05014.66
5.3.140.0100.05314.65
5.3.130.0130.04314.55
5.3.120.0070.05014.70
5.3.110.0070.05314.56
5.3.100.0070.05313.92
5.3.90.0030.05014.17
5.3.80.0070.05314.11
5.3.70.0070.04713.72
5.3.60.0200.05713.94
5.3.50.0070.04713.97
5.3.40.0130.05713.96
5.3.30.0100.05013.92
5.3.20.0100.04313.71
5.3.10.0170.03713.54
5.3.00.0030.07713.50

preferences:
141.87 ms | 1394 KiB | 7 Q