3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE> <html> <body> <?php $color = array('white', 'green', 'red'); sort($color); $al=count($color); for($x=0;$x<$al;$x++) { echo "$color"; echo "<br>"; } ?> </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)
8.3.60.0140.00018.36
8.3.50.0090.00918.18
8.3.40.0120.00318.76
8.3.30.0200.00318.96
8.3.20.0040.00420.34
8.3.10.0040.00423.45
8.3.00.0040.00420.77
8.2.180.0180.00416.63
8.2.170.0110.00322.96
8.2.160.0030.01020.45
8.2.150.0050.00224.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00320.68
8.2.110.0120.00920.38
8.2.100.0040.00717.84
8.2.90.0030.00519.21
8.2.80.0000.00917.97
8.2.70.0090.00017.50
8.2.60.0050.00517.92
8.2.50.0040.00418.07
8.2.40.0050.00321.02
8.2.30.0000.00718.30
8.2.20.0050.00617.56
8.2.10.0000.00818.07
8.2.00.0000.00817.69
8.1.270.0060.00323.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.90
8.1.230.0090.00317.42
8.1.220.0040.00417.78
8.1.210.0030.00718.77
8.1.200.0060.00317.13
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0080.00018.68
8.1.160.0000.00721.94
8.1.150.0030.00618.70
8.1.140.0040.00417.30
8.1.130.0000.00717.81
8.1.120.0000.00717.36
8.1.110.0040.00417.42
8.1.100.0000.00817.39
8.1.90.0040.00417.36
8.1.80.0080.00017.38
8.1.70.0000.00717.33
8.1.60.0050.00317.54
8.1.50.0000.00917.51
8.1.40.0000.00817.41
8.1.30.0040.00417.69
8.1.20.0040.00417.54
8.1.10.0080.00017.51
8.1.00.0050.00317.34
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.34
8.0.270.0000.00717.25
8.0.260.0000.00717.26
8.0.250.0000.00816.91
8.0.240.0040.00416.90
8.0.230.0040.00216.92
8.0.220.0000.00716.80
8.0.210.0040.00416.77
8.0.200.0000.00616.96
8.0.190.0030.00617.02
8.0.180.0000.00716.93
8.0.170.0000.00917.02
8.0.160.0040.00416.94
8.0.150.0050.00316.94
8.0.140.0040.00416.93
8.0.130.0030.00313.42
8.0.120.0040.00416.81
8.0.110.0000.00716.92
8.0.100.0050.00316.89
8.0.90.0080.00016.86
8.0.80.0090.00617.01
8.0.70.0040.00416.98
8.0.60.0040.00416.95
8.0.50.0040.00416.84
8.0.30.0030.01517.10
8.0.20.0080.01317.40
8.0.10.0040.00417.13
8.0.00.0070.01016.79
7.4.330.0020.00215.14
7.4.320.0030.00316.48
7.4.300.0040.00416.50
7.4.290.0070.00016.62
7.4.280.0080.00016.49
7.4.270.0040.00416.60
7.4.260.0030.00316.48
7.4.250.0070.00016.55
7.4.240.0030.00516.54
7.4.230.0050.00316.60
7.4.220.0080.01416.53
7.4.210.0060.00916.61
7.4.200.0000.00716.71
7.4.190.0000.00716.42
7.4.160.0140.00416.49
7.4.150.0060.01217.40
7.4.140.0140.00717.86
7.4.130.0080.01216.55
7.4.120.0110.00616.53
7.4.110.0040.01216.58
7.4.100.0070.01016.52
7.4.90.0040.01216.65
7.4.80.0130.00719.39
7.4.70.0030.01316.46
7.4.60.0100.00716.64
7.4.50.0060.00316.65
7.4.40.0090.01216.58
7.4.30.0040.01516.71
7.4.00.0090.00815.10
7.3.330.0000.00513.08
7.3.320.0050.00013.23
7.3.310.0030.00316.20
7.3.300.0000.00816.35
7.3.290.0070.00716.28
7.3.280.0140.00716.32
7.3.270.0140.00317.40
7.3.260.0100.01016.55
7.3.250.0090.00916.47
7.3.240.0080.00816.61
7.3.230.0070.00716.39
7.3.210.0060.01216.18
7.3.200.0060.01319.39
7.3.190.0080.00916.28
7.3.180.0130.00616.57
7.3.170.0180.00316.38
7.3.160.0060.00916.45
7.3.120.0070.00814.78
7.3.110.0090.00815.02
7.3.100.0130.00014.87
7.3.90.0000.00914.56
7.3.80.0040.00414.74
7.3.70.0130.00314.85
7.3.60.0060.00314.61
7.3.50.0030.01014.63
7.3.40.0030.01014.75
7.3.30.0070.00714.81
7.3.20.0060.00616.70
7.3.10.0130.00016.69
7.3.00.0030.00716.64
7.2.330.0200.00316.38
7.2.320.0140.01016.71
7.2.310.0090.00916.61
7.2.300.0000.01716.63
7.2.290.0100.01416.48
7.2.250.0070.01014.59
7.2.240.0000.02115.23
7.2.230.0070.01015.00
7.2.220.0030.01014.81
7.2.210.0030.00615.06
7.2.200.0040.00715.00
7.2.190.0030.00615.06
7.2.180.0000.01114.92
7.2.170.0040.01414.76
7.2.00.0000.01319.43
7.1.330.0030.01515.75
7.1.320.0040.00815.90
7.1.310.0030.01015.77
7.1.300.0040.00715.92
7.1.290.0000.00915.75
7.1.280.0040.00815.84
7.1.270.0040.01115.78
7.1.260.0070.01015.82
7.1.200.0060.00615.86
7.1.100.0100.00618.20
7.1.70.0030.00717.26
7.1.60.0070.00317.19
7.1.50.0030.02016.93
7.1.00.0030.07722.37
7.0.200.0000.01716.96
7.0.140.0070.07021.99
7.0.60.0100.08020.00
7.0.50.0070.07717.89
7.0.40.0130.08020.32
7.0.30.0230.08720.16
7.0.20.0130.06320.09
7.0.10.0030.04320.33
7.0.00.0070.05019.99
5.6.280.0030.07321.02
5.6.210.0070.08020.47
5.6.200.0100.04718.21
5.6.190.0070.05720.33
5.6.180.0130.05720.77
5.6.170.0330.07020.49
5.6.160.0030.04720.40
5.6.150.0070.05018.22
5.6.140.0100.08018.11
5.6.130.0130.05718.20
5.6.120.0130.06020.98
5.6.110.0070.03720.89
5.6.100.0030.09020.97
5.6.90.0130.07021.10
5.6.80.0030.08320.43
5.5.350.4200.04320.30
5.5.340.0100.07717.96
5.5.330.0030.06720.15
5.5.320.0300.07720.21
5.5.310.0500.05720.34
5.5.300.0070.08318.02
5.5.290.0100.07017.93
5.5.280.0130.07020.79
5.5.270.0170.07720.76
5.5.260.0000.09020.76
5.5.250.0070.07320.61
5.5.240.0100.05320.28
5.4.450.0170.05019.40
5.4.440.0400.04319.48
5.4.430.0200.04019.35
5.4.420.0330.04019.13
5.4.410.0070.05019.00
5.4.400.0170.03718.91
5.4.390.0670.03019.13
5.4.380.0170.05718.56
5.4.370.0130.05018.64
5.4.360.0130.05018.74
5.4.350.0170.05018.53
5.4.340.0230.04318.77
5.4.320.0040.04012.45
5.4.310.0050.03812.45
5.4.300.0070.03812.45
5.4.290.0100.04612.45
5.4.280.0070.04912.34
5.4.270.0100.04412.35
5.4.260.0090.04812.35
5.4.250.0060.05112.34
5.4.240.0050.04212.35
5.4.230.0040.04812.34
5.4.220.0080.04612.34
5.4.210.0090.04612.34
5.4.200.0050.04212.34
5.4.190.0140.04412.33
5.4.180.0130.04912.33
5.4.170.0120.05112.35
5.4.160.0170.05212.34
5.4.150.0080.05012.34
5.4.140.0050.04212.02
5.4.130.0060.04212.01
5.4.120.0020.04311.96
5.4.110.0060.03911.96
5.4.100.0070.03711.96
5.4.90.0070.04111.96
5.4.80.0080.04111.96
5.4.70.0080.03811.96
5.4.60.0060.05011.96
5.4.50.0100.04611.96
5.4.40.0100.04111.95
5.4.30.0080.03811.95
5.4.20.0060.03811.95
5.4.10.0120.03511.95
5.4.00.0100.03911.44
5.3.290.0070.03812.80
5.3.280.0070.04412.71
5.3.270.0110.04212.73
5.3.260.0070.05112.72
5.3.250.0110.03912.72
5.3.240.0080.03712.71
5.3.230.0060.03912.71
5.3.220.0070.04512.68
5.3.210.0130.03712.68
5.3.200.0040.04012.68
5.3.190.0070.03612.68
5.3.180.0050.04112.67
5.3.170.0070.03612.67
5.3.160.0070.03912.67
5.3.150.0070.04112.67
5.3.140.0090.03812.66
5.3.130.0100.04012.66
5.3.120.0050.04212.65
5.3.110.0060.04312.65
5.3.100.0080.03712.11
5.3.90.0080.04112.08
5.3.80.0060.03912.08
5.3.70.0060.04012.07
5.3.60.0110.04812.06
5.3.50.0050.05212.00
5.3.40.0030.04612.00
5.3.30.0070.03511.95
5.3.20.0130.02811.73
5.3.10.0070.03511.69
5.3.00.0080.04211.68
5.2.170.0090.0319.18
5.2.160.0070.0289.18
5.2.150.0090.0289.18
5.2.140.0080.0339.17
5.2.130.0080.0429.14
5.2.120.0090.0379.13
5.2.110.0090.0349.14
5.2.100.0070.0389.14
5.2.90.0070.0369.14
5.2.80.0060.0399.13
5.2.70.0040.0369.13
5.2.60.0080.0399.09
5.2.50.0070.0379.05
5.2.40.0070.0359.04
5.2.30.0050.0359.01
5.2.20.0050.0309.00
5.2.10.0060.0288.92
5.2.00.0090.0288.78
5.1.60.0050.0248.06
5.1.50.0030.0268.06
5.1.40.0030.0318.04
5.1.30.0030.0348.39
5.1.20.0040.0288.41
5.1.10.0070.0238.14
5.1.00.0040.0298.14
5.0.50.0040.0216.61
5.0.40.0030.0206.48
5.0.30.0040.0326.29
5.0.20.0060.0206.26
5.0.10.0060.0266.24
5.0.00.0060.0356.23
4.4.90.0030.0244.78
4.4.80.0010.0254.76
4.4.70.0060.0194.75
4.4.60.0020.0214.75
4.4.50.0030.0234.77
4.4.40.0040.0254.71
4.4.30.0020.0234.76
4.4.20.0050.0154.84
4.4.10.0030.0234.85
4.4.00.0010.0274.75
4.3.110.0020.0264.66
4.3.100.0040.0154.67
4.3.90.0060.0194.63
4.3.80.0040.0254.59
4.3.70.0040.0214.63
4.3.60.0040.0214.63
4.3.50.0040.0234.62
4.3.40.0040.0314.54
4.3.30.0000.0243.29
4.3.20.0040.0183.27
4.3.10.0010.0183.23
4.3.00.0170.02312.58

preferences:
79.97 ms | 400 KiB | 5 Q