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 "_$y_"; } 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.40.0150.00618.66
8.3.30.0140.00019.10
8.3.20.0000.00720.34
8.3.10.0050.00323.48
8.3.00.0070.00417.63
8.2.170.0100.00322.96
8.2.160.0100.00720.13
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00722.31
8.2.110.0040.00422.25
8.2.100.0040.01217.45
8.2.90.0030.00619.23
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0040.00417.68
8.2.50.0050.00318.07
8.2.40.0060.00319.88
8.2.30.0030.00517.93
8.2.20.0090.00017.68
8.2.10.0040.00417.97
8.2.00.0040.00417.80
8.1.270.0050.00324.01
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00723.82
8.1.230.0070.00319.05
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.23
8.1.190.0040.00417.23
8.1.180.0030.00618.82
8.1.170.0030.00718.50
8.1.160.0000.00721.92
8.1.150.0040.00418.66
8.1.140.0050.00217.44
8.1.130.0070.00017.88
8.1.120.0040.00417.48
8.1.110.0030.00617.36
8.1.100.0060.00317.40
8.1.90.0000.00817.42
8.1.80.0000.00717.47
8.1.70.0000.00717.43
8.1.60.0040.00417.57
8.1.50.0040.00417.50
8.1.40.0040.00417.42
8.1.30.0050.00317.45
8.1.20.0000.00717.50
8.1.10.0080.00017.46
8.1.00.0030.00617.36
8.0.300.0030.00318.77
8.0.290.0050.00217.18
8.0.280.0070.00018.35
8.0.270.0030.00317.16
8.0.260.0060.00017.30
8.0.250.0000.00716.97
8.0.240.0000.00817.00
8.0.230.0000.00617.07
8.0.220.0030.00316.88
8.0.210.0040.00416.86
8.0.200.0030.00316.89
8.0.190.0000.00716.99
8.0.180.0070.00016.88
8.0.170.0000.00817.00
8.0.160.0000.00716.83
8.0.150.0100.00016.75
8.0.140.0000.00716.89
8.0.130.0040.00413.37
8.0.120.0040.00416.91
8.0.110.0080.00016.92
8.0.100.0030.00616.96
8.0.90.0070.00016.83
8.0.80.0060.00916.88
8.0.70.0040.00416.98
8.0.60.0040.00416.77
8.0.50.0050.00216.97
8.0.30.0090.01117.11
8.0.20.0080.01117.40
8.0.10.0070.00016.95
8.0.00.0100.00916.76
7.4.330.0000.00515.13
7.4.320.0060.00016.58
7.4.300.0030.00316.59
7.4.290.0000.00716.45
7.4.280.0040.00416.34
7.4.270.0040.00416.61
7.4.260.0030.00316.57
7.4.250.0040.00416.55
7.4.240.0000.00716.49
7.4.230.0070.00016.40
7.4.220.0060.01216.44
7.4.210.0020.01116.50
7.4.200.0000.00716.42
7.4.190.0070.00016.50
7.4.160.0130.00616.45
7.4.150.0170.00017.40
7.4.140.0110.00717.86
7.4.130.0080.01316.54
7.4.120.0090.01116.64
7.4.110.0150.00316.50
7.4.100.0110.01116.63
7.4.90.0170.00016.33
7.4.80.0090.00919.39
7.4.70.0060.00916.54
7.4.60.0030.01416.27
7.4.50.0030.00516.50
7.4.40.0070.01016.50
7.4.30.0060.00916.36
7.4.00.0090.00915.00
7.3.330.0000.00613.30
7.3.320.0000.00613.32
7.3.310.0050.00316.50
7.3.300.0030.00316.28
7.3.290.0090.00616.37
7.3.280.0120.00716.35
7.3.270.0070.01017.40
7.3.260.0030.01516.32
7.3.250.0110.00616.49
7.3.240.0070.01416.42
7.3.230.0060.01016.50
7.3.210.0100.00716.60
7.3.200.0120.00919.39
7.3.190.0070.01316.40
7.3.180.0090.00916.57
7.3.170.0070.01016.41
7.3.160.0110.00616.39
7.3.120.0080.00814.84
7.3.110.0090.00714.81
7.3.100.0040.00814.79
7.3.90.0080.00714.92
7.3.80.0070.00814.82
7.3.70.0060.00814.97
7.3.60.0060.00914.67
7.3.50.0050.01214.79
7.3.40.0030.01014.81
7.3.30.0080.00614.82
7.3.20.0120.00316.75
7.3.10.0060.00816.62
7.3.00.0080.00516.62
7.2.330.0160.00316.56
7.2.320.0170.00616.44
7.2.310.0110.01016.43
7.2.300.0180.00016.65
7.2.290.0120.00816.61
7.2.250.0070.01115.00
7.2.240.0100.00815.01
7.2.230.0020.01014.86
7.2.220.0040.00914.80
7.2.210.0080.00915.04
7.2.200.0040.01015.19
7.2.190.0030.01115.04
7.2.180.0050.01214.89
7.2.170.0030.01114.97
7.2.160.0070.00415.09
7.2.150.0000.01016.98
7.2.140.0100.00616.77
7.2.130.0080.00816.91
7.2.120.0040.00816.72
7.2.110.0080.00616.89
7.2.100.0040.01016.93
7.2.90.0030.00916.98
7.2.80.0070.00716.75
7.2.70.0050.00916.63
7.2.60.0050.00516.78
7.2.50.0020.01016.81
7.2.40.0080.00716.97
7.2.30.0000.01316.87
7.2.20.0100.00217.02
7.2.10.0050.00616.91
7.2.00.0090.00717.46
7.1.330.0020.01115.76
7.1.320.0090.00615.84
7.1.310.0090.00615.84
7.1.300.0080.00515.68
7.1.290.0070.00815.85
7.1.280.0060.00415.61
7.1.270.0060.00815.76
7.1.260.0080.00515.72
7.1.250.0070.00415.69
7.1.100.0000.01418.09
7.1.70.0070.00317.24
7.1.60.0100.01619.46
7.1.50.0030.01016.78
7.1.00.0070.07322.31
7.0.200.0120.00316.86
7.0.140.0000.07721.92
7.0.60.0070.07019.91
7.0.50.0000.04717.82
7.0.40.0070.07719.98
7.0.30.0170.04020.21
7.0.20.0330.07719.99
7.0.10.0070.08720.12
7.0.00.0100.08020.32
5.6.280.0030.07320.92
5.6.210.0070.07720.76
5.6.200.0030.08718.12
5.6.190.0030.06720.43
5.6.180.3670.04020.56
5.6.170.0170.09020.38
5.6.160.0170.05020.48
5.6.150.0000.09018.23
5.6.140.0030.08718.17
5.6.130.0070.06718.18
5.6.120.0070.08021.08
5.6.110.0070.07321.01
5.6.100.0100.06721.13
5.6.90.0170.07721.01
5.6.80.0030.08320.40
5.6.70.4930.03720.39
5.5.350.0370.07020.32
5.5.340.0000.05317.92
5.5.330.0070.04020.21
5.5.320.0170.04320.41
5.5.310.0370.05320.33
5.5.300.0030.07317.95
5.5.290.0130.07318.01
5.5.280.0170.07320.68
5.5.270.0030.07020.83
5.5.260.0030.08720.75
5.5.250.0070.08320.54
5.5.240.0330.04320.28
5.4.450.0170.05719.59
5.4.440.0700.06719.13
5.4.430.1070.05319.23
5.4.420.0830.06019.06
5.4.410.0030.06019.47
5.4.400.0800.05719.12
5.4.390.0900.06318.95
5.4.380.0500.06718.64
5.4.370.0370.04018.77
5.4.360.0370.05018.49
5.4.350.0200.06318.62
5.4.340.0330.05018.73
5.4.320.0040.04312.45
5.4.310.0090.03712.45
5.4.300.0030.03812.46
5.4.290.0060.04812.44
5.4.280.0200.04912.33
5.4.270.0110.05212.34
5.4.260.0110.05612.34
5.4.250.0030.04412.34
5.4.240.0050.06412.34
5.4.230.0170.05912.32
5.4.220.0120.05712.33
5.4.210.0110.06012.32
5.4.200.0100.05612.33
5.4.190.0120.04412.32
5.4.180.0040.05812.32
5.4.170.0260.04412.33
5.4.160.0090.03812.33
5.4.150.0050.04212.33
5.4.140.0070.04212.01
5.4.130.0090.04912.00
5.4.120.0130.06311.96
5.4.110.0140.09411.95
5.4.100.0290.11511.95
5.4.90.0110.04211.95
5.4.80.0080.04711.95
5.4.70.0380.13211.94
5.4.60.0250.06011.95
5.4.50.0180.07811.94
5.4.40.0250.09511.93
5.4.30.0350.07511.93
5.4.20.0180.07611.93
5.4.10.0270.07911.93
5.4.00.0160.07111.42
5.3.290.0060.03912.80
5.3.280.0320.08812.71
5.3.270.0100.05112.72
5.3.260.0110.04512.72
5.3.250.0130.04412.72
5.3.240.0160.06012.71
5.3.230.0150.06812.71
5.3.220.0090.03612.68
5.3.210.0070.06412.68
5.3.200.0110.04312.68
5.3.190.0070.04712.68
5.3.180.0120.05312.67
5.3.170.0090.04112.67
5.3.160.0110.05512.67
5.3.150.0140.08812.67
5.3.140.0160.05512.66
5.3.130.0050.06412.66
5.3.120.0150.07512.66
5.3.110.0110.07212.66
5.3.100.0320.07212.12
5.3.90.0160.07112.09
5.3.80.0090.04012.08
5.3.70.0090.04912.07
5.3.60.0050.04712.06
5.3.50.0100.06712.00
5.3.40.0250.07912.00
5.3.30.0170.04411.95
5.3.20.0080.05211.72
5.3.10.0060.04911.69
5.3.00.0190.05811.68
5.2.170.0090.0499.18
5.2.160.0100.0529.18
5.2.150.0100.0669.18
5.2.140.0190.0979.17
5.2.130.0120.0449.13
5.2.120.0060.0399.13
5.2.110.0170.0559.14
5.2.100.0360.1059.14
5.2.90.0090.0559.14
5.2.80.0080.0539.14
5.2.70.0060.0519.14
5.2.60.0100.0579.09
5.2.50.0200.0809.05
5.2.40.0060.0499.04
5.2.30.0250.0919.01
5.2.20.0130.0419.00
5.2.10.0050.0378.92
5.2.00.0100.0378.77
5.1.60.0200.0368.06
5.1.50.0140.0308.06
5.1.40.0050.0348.04
5.1.30.0050.0548.39
5.1.20.0180.0528.41
5.1.10.0170.0808.13
5.1.00.0150.0578.14
5.0.50.0130.0406.61
5.0.40.0040.0336.47
5.0.30.0160.0786.29
5.0.20.0140.0446.26
5.0.10.0080.0306.23
5.0.00.0100.0466.23
4.4.90.0060.0244.78
4.4.80.0080.0324.75
4.4.70.0050.0164.76
4.4.60.0060.0214.75
4.4.50.0050.0244.77
4.4.40.0050.0284.71
4.4.30.0040.0194.76
4.4.20.0030.0194.84
4.4.10.0020.0194.85
4.4.00.0020.0294.76
4.3.110.0030.0184.67
4.3.100.0040.0154.66
4.3.90.0040.0164.63
4.3.80.0070.0294.58
4.3.70.0020.0174.63
4.3.60.0020.0174.63
4.3.50.0050.0264.62
4.3.40.0020.0274.54
4.3.30.0020.0183.29
4.3.20.0020.0243.27
4.3.10.0040.0243.23
4.3.00.0230.01716.04

preferences:
33.3 ms | 400 KiB | 5 Q