3v4l.org

run code in 300+ PHP versions simultaneously
<?php $color = array('white', 'green', 'red'); foreach ($color as $c) { echo "$c, "; } sort($color); echo "<ul>"; foreach ($color as $y) { echo "<li>$y</li>"; } echo "</ul>"; ?>

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.0150.00616.61
8.3.50.0130.00421.88
8.3.40.0090.00618.58
8.3.30.0110.00418.92
8.3.20.0050.00320.20
8.3.10.0070.00021.85
8.3.00.0060.00319.13
8.2.180.0040.01118.39
8.2.170.0170.00322.96
8.2.160.0030.01020.11
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.09
8.2.110.0060.00322.16
8.2.100.0040.00817.77
8.2.90.0040.00417.63
8.2.80.0030.00618.05
8.2.70.0000.00817.80
8.2.60.0000.00818.03
8.2.50.0030.00518.10
8.2.40.0040.00422.14
8.2.30.0040.00419.72
8.2.20.0040.00417.62
8.2.10.0000.00717.93
8.2.00.0090.00317.72
8.1.280.0070.01025.92
8.1.270.0060.00323.92
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00323.80
8.1.230.0070.00319.23
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0030.00717.35
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0000.00818.71
8.1.160.0040.00421.93
8.1.150.0070.00318.63
8.1.140.0030.00617.45
8.1.130.0030.00317.77
8.1.120.0030.00317.42
8.1.110.0040.00417.44
8.1.100.0030.00317.35
8.1.90.0040.00417.55
8.1.80.0040.00417.49
8.1.70.0000.00717.34
8.1.60.0040.00417.50
8.1.50.0040.00417.48
8.1.40.0080.00017.41
8.1.30.0030.00617.50
8.1.20.0040.00417.59
8.1.10.0020.00517.46
8.1.00.0040.00417.37
8.0.300.0060.00319.57
8.0.290.0060.00316.75
8.0.280.0040.00418.45
8.0.270.0040.00417.18
8.0.260.0030.00317.26
8.0.250.0030.00316.96
8.0.240.0030.00316.81
8.0.230.0070.00016.93
8.0.220.0000.00716.90
8.0.210.0040.00416.93
8.0.200.0060.00016.86
8.0.190.0000.00816.98
8.0.180.0040.00416.96
8.0.170.0050.00316.80
8.0.160.0030.00316.88
8.0.150.0000.00716.93
8.0.140.0040.00416.88
8.0.130.0030.00313.32
8.0.120.0070.00016.84
8.0.110.0070.00016.95
8.0.100.0050.00216.67
8.0.90.0050.00216.66
8.0.80.0060.00916.88
8.0.70.0040.00416.93
8.0.60.0040.00416.86
8.0.50.0080.00016.84
8.0.30.0120.00717.15
8.0.20.0120.00717.40
8.0.10.0030.00517.11
8.0.00.0120.00916.86
7.4.330.0050.00015.03
7.4.320.0060.00016.68
7.4.300.0030.00316.60
7.4.290.0030.00316.59
7.4.280.0060.00316.50
7.4.270.0030.00316.65
7.4.260.0040.00416.60
7.4.250.0040.00416.41
7.4.240.0000.00716.55
7.4.230.0000.00716.60
7.4.220.0130.00316.45
7.4.210.0090.00916.63
7.4.200.0000.00716.50
7.4.190.0030.00316.40
7.4.160.0090.00616.52
7.4.150.0080.01617.40
7.4.140.0110.00817.86
7.4.130.0070.01016.42
7.4.120.0080.00916.54
7.4.110.0130.00316.46
7.4.100.0070.01416.48
7.4.90.0130.00916.57
7.4.80.0070.01019.39
7.4.70.0120.00416.48
7.4.60.0130.00316.44
7.4.50.0040.00416.45
7.4.40.0090.00622.77
7.4.30.0030.01316.33
7.4.00.0070.01014.74
7.3.330.0000.00513.29
7.3.320.0050.00013.15
7.3.310.0070.00016.23
7.3.300.0000.00716.35
7.3.290.0070.00716.26
7.3.280.0110.00716.28
7.3.270.0060.01117.40
7.3.260.0030.01316.53
7.3.250.0180.00416.45
7.3.240.0060.01116.66
7.3.230.0140.00416.39
7.3.210.0060.01216.52
7.3.200.0140.00719.39
7.3.190.0180.00616.61
7.3.180.0120.00316.32
7.3.170.0060.01516.59
7.3.160.0090.00616.23
7.3.120.0070.00714.60
7.3.10.0030.01016.74
7.3.00.0040.01416.42
7.2.330.0110.00716.74
7.2.320.0100.00716.52
7.2.310.0080.00816.59
7.2.300.0060.00916.44
7.2.290.0090.00916.54
7.2.130.0060.01016.72
7.2.120.0040.01216.60
7.2.110.0060.00916.59
7.2.100.0070.00716.75
7.2.90.0090.00616.91
7.2.80.0000.01617.00
7.2.70.0090.00316.70
7.2.60.0020.01316.79
7.2.50.0090.00616.95
7.2.40.0110.00016.93
7.2.30.0090.00617.08
7.2.20.0080.00816.63
7.2.10.0000.01416.66
7.2.00.0050.01018.11
7.1.250.0040.00815.74
7.1.200.0100.00015.72
7.1.100.0040.01218.00
7.1.70.0000.01917.12
7.1.60.0130.01019.46
7.1.50.0090.00916.91
7.1.00.0070.07322.40
7.0.200.0360.00916.63
7.0.140.0070.07022.18
7.0.60.0030.08019.93
7.0.50.0000.08017.78
7.0.40.0100.04020.40
7.0.30.0130.06020.16
7.0.20.0200.05020.12
7.0.10.0130.07720.18
7.0.00.0030.05720.16
5.6.280.0030.07321.07
5.6.210.0130.08320.69
5.6.200.0200.07018.13
5.6.190.0130.08320.46
5.6.180.0130.06020.67
5.6.170.0330.06720.50
5.6.160.0030.04020.40
5.6.150.0030.07718.21
5.6.140.0030.08318.17
5.6.130.0030.08718.15
5.6.120.0070.08020.98
5.6.110.0130.06721.04
5.6.100.0130.08021.00
5.6.90.0070.07020.98
5.6.80.0100.05720.43
5.6.70.3270.03720.36
5.5.350.0130.03320.39
5.5.340.0070.04318.01
5.5.330.0030.04320.46
5.5.320.0000.09320.34
5.5.310.0230.03720.29
5.5.300.0030.08717.91
5.5.290.0030.08017.92
5.5.280.0030.06320.76
5.5.270.0130.07020.95
5.5.260.0030.08720.64
5.5.250.0070.07020.71
5.5.240.0230.05320.18
5.4.450.0430.06719.52
5.4.440.0370.06019.24
5.4.430.0130.05319.48
5.4.420.0670.00019.29
5.4.410.0230.04018.72
5.4.400.0200.05318.76
5.4.390.0270.04718.70
5.4.380.0230.05318.49
5.4.370.0030.04718.47
5.4.360.0070.03718.66
5.4.350.0050.03711.97
5.4.340.0090.04411.97
5.4.320.0060.03912.46
5.4.310.0050.04212.45
5.4.300.0080.03512.45
5.4.290.0080.05012.44
5.4.280.0050.03912.33
5.4.270.0060.04012.33
5.4.260.0090.04112.34
5.4.250.0090.03912.33
5.4.240.0090.04812.34
5.4.230.0110.03512.33
5.4.220.0100.03512.32
5.4.210.0090.03412.33
5.4.200.0120.04612.33
5.4.190.0100.03312.32
5.4.180.0090.04612.32
5.4.170.0100.04812.34
5.4.160.0150.05412.33
5.4.150.0130.04812.32
5.4.140.0100.05112.01
5.4.130.0110.05212.00
5.4.120.0060.04311.96
5.4.110.0090.05111.95
5.4.100.0110.04611.96
5.4.90.0150.07711.95
5.4.80.0160.05911.94
5.4.70.0120.04511.95
5.4.60.0120.04211.94
5.4.50.0100.04811.94
5.4.40.0220.06611.93
5.4.30.0130.04911.93
5.4.20.0100.04911.93
5.4.10.0130.04811.93
5.4.00.0080.06111.42
5.3.290.0050.04212.80
5.3.280.0130.04912.71
5.3.270.0110.04812.73
5.3.260.0090.03912.71
5.3.250.0060.03812.72
5.3.240.0040.04112.72
5.3.230.0090.05112.71
5.3.220.0040.04312.68
5.3.210.0100.04912.68
5.3.200.0040.04412.68
5.3.190.0070.03912.67
5.3.180.0050.04212.67
5.3.170.0120.04012.67
5.3.160.0110.04212.67
5.3.150.0080.04312.68
5.3.140.0110.05112.66
5.3.130.0060.04712.66
5.3.120.0070.04112.66
5.3.110.0040.04312.66
5.3.100.0050.03912.12
5.3.90.0060.03812.08
5.3.80.0100.05712.07
5.3.70.0090.05112.07
5.3.60.0070.05212.07
5.3.50.0100.04912.00
5.3.40.0100.05012.00
5.3.30.0080.04811.95
5.3.20.0100.04411.72
5.3.10.0130.04111.69
5.3.00.0080.04911.68
5.2.170.0140.0369.18
5.2.160.0170.0449.18
5.2.150.0060.0459.18
5.2.140.0080.0439.17
5.2.130.0080.0439.13
5.2.120.0090.0409.13
5.2.110.0090.0379.14
5.2.100.0110.0389.14
5.2.90.0090.0409.14
5.2.80.0130.0459.14
5.2.70.0300.0439.14
5.2.60.0150.0329.09
5.2.50.0060.0399.06
5.2.40.0070.0399.03
5.2.30.0050.0369.01
5.2.20.0190.0399.00
5.2.10.0060.0398.92
5.2.00.0060.0438.77
5.1.60.0060.0378.07
5.1.50.0090.0398.06
5.1.40.0100.0448.04
5.1.30.0160.0418.39
5.1.20.0160.0368.41
5.1.10.0060.0278.14
5.1.00.0060.0278.14
5.0.50.0050.0256.61
5.0.40.0070.0256.47
5.0.30.0140.0496.28
5.0.20.0050.0276.25
5.0.10.0060.0426.24
5.0.00.0220.0686.23
4.4.90.0100.0374.77
4.4.80.0060.0214.75
4.4.70.0090.0174.76
4.4.60.0040.0254.75
4.4.50.0050.0244.77
4.4.40.0080.0504.71
4.4.30.0060.0214.76
4.4.20.0040.0224.84
4.4.10.0050.0214.85
4.4.00.0060.0334.76
4.3.110.0080.0454.67
4.3.100.0070.0334.67
4.3.90.0100.0334.64
4.3.80.0040.0334.59
4.3.70.0060.0204.63
4.3.60.0040.0264.62
4.3.50.0050.0234.62
4.3.40.0120.0544.54
4.3.30.0030.0283.29
4.3.20.0030.0283.27
4.3.10.0040.0253.23
4.3.00.0100.0136.81

preferences:
41.92 ms | 401 KiB | 5 Q