3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <title>Your First PHP while loop!</title> </head> <body> <?php $loopCond = true; while (){ //Echo your message that the loop is running below $loopCond = false; } echo "<p>And now it's done.</p>"; ?> </body> </html>

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.270.0100.06718.76
5.4.260.0270.04718.79
5.4.250.0030.06018.93
5.4.240.0130.06718.84
5.4.230.0100.06318.95
5.4.220.0130.05318.76
5.4.210.0070.06018.79
5.4.200.0070.06719.09
5.4.190.0170.05018.79
5.4.180.0070.05318.78
5.4.170.0070.05318.91
5.4.160.0200.07019.08
5.4.150.0200.06719.00
5.4.140.0100.04716.37
5.4.130.0130.06716.58
5.4.120.0130.04716.42
5.4.110.0130.06716.47
5.4.100.0000.05716.66
5.4.90.0100.04716.62
5.4.80.0030.05016.30
5.4.70.0130.05316.50
5.4.60.0070.06716.60
5.4.50.0170.04316.59
5.4.40.0130.04716.43
5.4.30.0170.04716.48
5.4.20.0030.08016.32
5.4.10.0130.05716.48
5.4.00.0100.06315.93
5.3.280.0070.05014.64
5.3.270.0030.07314.53
5.3.260.0100.07014.46
5.3.250.0070.07314.48
5.3.240.0130.06314.50
5.3.230.0130.04314.60
5.3.220.0130.05014.34
5.3.210.0100.08014.51
5.3.200.0130.06014.44
5.3.190.0170.04714.48
5.3.180.0100.07014.57
5.3.170.0100.04714.58
5.3.160.0070.05014.42
5.3.150.0200.06314.60
5.3.140.0100.05014.65
5.3.130.0200.06014.59
5.3.120.0170.04714.70
5.3.110.0130.07314.55
5.3.100.0130.06714.08
5.3.90.0070.06313.90
5.3.80.0170.05714.17
5.3.70.0030.07313.91
5.3.60.0070.05713.89
5.3.50.0070.06313.83
5.3.40.0100.06713.96
5.3.30.0170.05014.06
5.3.20.0130.04013.84
5.3.10.0200.05013.52
5.3.00.0130.05013.59
5.2.170.0030.04311.05
5.2.160.0100.05711.06
5.2.150.0070.04011.18
5.2.140.0030.05011.23
5.2.130.0030.04710.98
5.2.120.0070.04011.11
5.2.110.0000.05011.20
5.2.100.0070.04710.86
5.2.90.0030.04311.10
5.2.80.0100.04311.20
5.2.70.0030.04711.09
5.2.60.0030.04010.96
5.2.50.0070.04311.04
5.2.40.0130.03711.00
5.2.30.0130.04010.97
5.2.20.0100.03711.07
5.2.10.0070.03711.02
5.2.00.0030.05010.61
5.1.60.0170.0339.93
5.1.50.0030.0479.76
5.1.40.0030.0509.93
5.1.30.0100.05010.09
5.1.20.0100.03010.33
5.1.10.0030.0439.92
5.1.00.0070.05010.16
5.0.50.0100.0308.46
5.0.40.0070.0308.18
5.0.30.0070.0538.28
5.0.20.0070.0338.15
5.0.10.0130.0238.14
5.0.00.0030.0408.16
4.4.90.0000.0336.32
4.4.80.0030.0206.32
4.4.70.0070.0276.32
4.4.60.0030.0276.32
4.4.50.0000.0236.32
4.4.40.0070.0376.32
4.4.30.0000.0236.32
4.4.20.0030.0236.32
4.4.10.0030.0236.32
4.4.00.0030.0336.32
4.3.110.0070.0336.32
4.3.100.0000.0236.32
4.3.90.0000.0276.32
4.3.80.0000.0436.32
4.3.70.0130.0206.32
4.3.60.0000.0236.32
4.3.50.0000.0276.32
4.3.40.0070.0376.32
4.3.30.0030.0276.32
4.3.20.0000.0236.31
4.3.10.0000.0306.31
4.3.00.0130.0207.09

preferences:
141.84 ms | 1394 KiB | 7 Q