3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mass = str_split('0123'); $length = 6; foreach ($mass as $el) { for ($i = 1; $i <= $lenght; $i++) { echo $el; } echo '<br>' }

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.6.80.0030.04320.39
5.5.240.0130.06720.26
5.4.400.0370.05718.85
5.4.390.0570.03718.74
5.4.380.0370.06018.75
5.4.370.0430.04018.72
5.4.360.0270.05718.59
5.4.350.0170.06718.70
5.4.340.0470.05718.56
5.4.320.0270.06018.76
5.4.310.0430.04318.76
5.4.300.0370.05318.70
5.4.290.0470.04718.80
5.4.280.0430.06718.83
5.4.270.0300.05318.43
5.4.260.0300.06318.68
5.4.250.0270.06318.46
5.4.240.0300.05318.69
5.4.230.0330.05318.55
5.4.220.0530.04718.80
5.4.210.0670.06018.74
5.4.200.0370.05016.67
5.4.190.0470.05018.51
5.4.180.0370.05318.58
5.4.170.0530.06718.54
5.4.160.0400.07318.67
5.4.150.0500.06318.82
5.4.140.0400.07316.35
5.4.130.0270.05716.31
5.4.120.0300.05316.33
5.4.110.0470.06716.21
5.4.100.0330.05316.15
5.4.90.0400.05316.29
5.4.80.0330.06016.15
5.4.70.0470.07316.29
5.4.60.0530.06016.26
5.4.50.0530.06016.25
5.4.40.0430.05016.22
5.4.30.0330.05316.18
5.4.20.0200.07016.12
5.4.10.0570.05316.15
5.4.00.0570.05015.87
5.3.290.0470.06314.64
5.3.280.0500.06014.61
5.3.270.0570.07014.66
5.3.260.0630.05014.70
5.3.250.0330.06314.61
5.3.240.0500.05714.63
5.3.230.0530.06014.52
5.3.220.0500.06014.46
5.3.210.0530.07314.52
5.3.200.0400.06314.66
5.3.190.0500.06014.62
5.3.180.0400.05314.61
5.3.170.0430.06314.65
5.3.160.0570.06714.57
5.3.150.0400.05014.56
5.3.140.0300.05014.55
5.3.130.0330.07714.65
5.3.120.0500.05714.60
5.3.110.0400.05714.54
5.3.100.0370.04713.95
5.3.90.0400.04714.05
5.3.80.0300.07014.02
5.3.70.0300.05713.98
5.3.60.0330.05313.92
5.3.50.0270.05313.91
5.3.40.0430.06013.86
5.3.30.0400.05013.84
5.3.20.0200.07013.64
5.3.10.0270.06313.57
5.3.00.0430.05713.62
5.2.170.0230.04711.10
5.2.160.0200.05011.14
5.2.150.0300.04711.20
5.2.140.0370.04011.20
5.2.130.0370.04011.16
5.2.120.0430.04311.06
5.2.110.0430.04311.09
5.2.100.0370.03711.24
5.2.90.0300.05311.06
5.2.80.0400.04711.08
5.2.70.0370.05011.25
5.2.60.0370.04011.03
5.2.50.0370.04010.97
5.2.40.0200.04010.91
5.2.30.0230.04710.89
5.2.20.0430.04310.96
5.2.10.0230.04010.91
5.2.00.0270.05310.86
5.1.60.0230.03010.13
5.1.50.0330.03710.00
5.1.40.0170.04310.01
5.1.30.0270.04010.29
5.1.20.0300.03710.41
5.1.10.0230.04010.05
5.1.00.0400.03310.10
5.0.50.0170.0308.57
5.0.40.0170.0238.41
5.0.30.0100.0478.25
5.0.20.0130.0338.19
5.0.10.0200.0208.26
5.0.00.0130.0438.29
4.4.90.0100.0235.89
4.4.80.0100.0205.90
4.4.70.0130.0205.90
4.4.60.0100.0235.91
4.4.50.0100.0235.90
4.4.40.0130.0335.91
4.4.30.0100.0205.93
4.4.20.0100.0276.00
4.4.10.0070.0275.95
4.4.00.0130.0405.87
4.3.110.0130.0205.75
4.3.100.0100.0235.87
4.3.90.0030.0275.82
4.3.80.0170.0435.82
4.3.70.0100.0275.82
4.3.60.0100.0335.82
4.3.50.0170.0205.91
4.3.40.0170.0435.86
4.3.30.0230.0104.70
4.3.20.0070.0234.63
4.3.10.0070.0274.59
4.3.00.0000.0236.46

preferences:
149.53 ms | 1394 KiB | 7 Q