3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ ["sea", "blue"], ["grass", "green"] ]; foreach ($data as list($object, $description)) { echo "The $object is $descriptionn"; }

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.4.20.0060.00317.78
8.4.10.0080.00017.74
8.3.140.0060.00318.42
8.3.130.0050.00316.68
8.3.120.0040.00418.80
8.3.110.0050.00320.94
8.3.100.0000.00916.96
8.3.90.0040.00426.77
8.3.80.0080.00016.50
8.3.70.0100.00316.75
8.3.60.0000.01518.68
8.3.50.0090.00721.07
8.3.40.0080.00818.84
8.3.30.0070.00720.07
8.3.20.0040.00420.21
8.3.10.0060.00321.09
8.3.00.0000.00722.39
8.2.260.0080.00020.93
8.2.250.0080.00016.63
8.2.240.0090.00017.13
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0170.00326.77
8.2.200.0090.00018.54
8.2.190.0070.00718.66
8.2.180.0120.00916.63
8.2.170.0120.00622.96
8.2.160.0100.00322.17
8.2.150.0040.01424.18
8.2.140.0070.01424.66
8.2.130.0070.00726.16
8.2.120.0090.00620.79
8.2.110.0040.00419.33
8.2.100.0090.00317.84
8.2.90.0000.00819.35
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00418.16
8.2.50.0000.00818.07
8.2.40.0000.00818.34
8.2.30.0040.00419.36
8.2.20.0000.00717.75
8.2.10.0000.00817.67
8.2.00.0040.00417.68
8.1.310.0080.00816.99
8.1.300.0000.00918.48
8.1.290.0060.00930.84
8.1.280.0070.00725.92
8.1.270.0050.00323.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0030.00722.59
8.1.230.0080.00320.95
8.1.220.0060.00318.77
8.1.210.0040.00418.97
8.1.200.0000.00917.35
8.1.190.0070.00017.39
8.1.180.0030.00618.10
8.1.170.0070.00418.72
8.1.160.0000.00818.83
8.1.150.0040.00418.54
8.1.140.0000.00717.48
8.1.130.0000.00917.81
8.1.120.0000.00717.45
8.1.110.0040.00417.34
8.1.100.0000.00717.34
8.1.90.0070.00017.42
8.1.80.0040.00417.34
8.1.70.0000.00717.32
8.1.60.0080.00017.51
8.1.50.0040.00417.52
8.1.40.0080.00017.49
8.1.30.0070.00017.58
8.1.20.0050.00317.55
8.1.10.0000.00817.58
8.1.00.0040.00417.38
8.0.300.0030.00320.02
8.0.290.0000.00717.16
8.0.280.0070.00018.46
8.0.270.0030.00317.30
8.0.260.0030.00316.99
8.0.250.0040.00417.05
8.0.240.0030.00617.01
8.0.230.0000.00717.06
8.0.220.0040.00416.95
8.0.210.0000.00716.95
8.0.200.0060.00017.01
8.0.190.0030.00616.89
8.0.180.0040.00416.96
8.0.170.0040.00416.84
8.0.160.0000.00717.01
8.0.150.0030.00516.80
8.0.140.0000.00716.87
8.0.130.0000.00613.38
8.0.120.0000.00816.94
8.0.110.0000.00816.93
8.0.100.0000.00816.75
8.0.90.0000.00717.05
8.0.80.0100.01016.92
8.0.70.0000.00717.00
8.0.60.0040.00416.91
8.0.50.0020.00516.95
8.0.30.0040.01517.07
8.0.20.0130.00617.40
8.0.10.0050.00317.12
8.0.00.0140.00816.77
7.4.330.0050.00016.85
7.4.320.0000.00716.51
7.4.300.0030.00316.41
7.4.290.0070.00016.47
7.4.280.0000.00716.46
7.4.270.0060.00016.57
7.4.260.0030.00313.29
7.4.250.0040.00416.36
7.4.240.0050.00216.58
7.4.230.0060.00016.52
7.4.220.0070.01016.43
7.4.210.0050.01216.60
7.4.200.0000.00716.37
7.4.190.0040.00416.63
7.4.160.0060.00916.65
7.4.150.0150.00317.40
7.4.140.0160.00417.86
7.4.130.0130.00516.56
7.4.120.0100.00716.43
7.4.110.0100.00716.40
7.4.100.0100.00716.71
7.4.90.0120.00616.53
7.4.80.0150.00619.39
7.4.70.0070.01016.56
7.4.60.0080.00816.56
7.4.50.0000.00816.16
7.4.40.0120.00322.77
7.4.30.0060.01016.63
7.4.00.0030.01014.86
7.3.330.0030.00313.22
7.3.320.0030.00313.27
7.3.310.0000.00716.23
7.3.300.0030.00316.36
7.3.290.0080.00816.32
7.3.280.0090.01016.44
7.3.270.0030.01417.40
7.3.260.0100.00818.24
7.3.250.0090.01116.41
7.3.240.0030.01916.25
7.3.230.0100.00716.39
7.3.210.0060.00916.57
7.3.200.0170.00619.39
7.3.190.0070.01016.42
7.3.180.0060.01016.49
7.3.170.0060.01116.39
7.3.160.0090.00616.57
7.3.120.0120.00615.00
7.3.10.0020.01116.52
7.3.00.0050.00816.75
7.2.330.0120.00616.65
7.2.320.0110.00616.72
7.2.310.0030.01416.43
7.2.300.0160.00016.57
7.2.290.0090.00916.63
7.2.130.0080.00516.92
7.2.120.0060.00617.01
7.2.110.0060.00616.97
7.2.100.0050.00916.79
7.2.90.0050.00917.04
7.2.80.0090.00816.92
7.2.70.0040.01117.06
7.2.60.0080.00817.01
7.2.50.0060.00816.98
7.2.40.0050.01016.78
7.2.30.0030.00716.95
7.2.20.0050.00716.83
7.2.10.0080.00116.88
7.2.00.0070.00416.88
7.1.250.0060.00615.83
7.1.100.0200.00317.86
7.1.70.0060.00917.20
7.1.60.0100.01019.17
7.1.50.0070.01716.93
7.1.00.0070.07022.42
7.0.200.0030.00316.83
7.0.140.0030.07322.18
7.0.100.0330.04719.91
7.0.90.0370.06719.96
7.0.80.0330.08019.93
7.0.70.0430.06719.89
7.0.60.0370.08019.93
7.0.50.0430.07720.29
7.0.40.0070.08019.94
7.0.30.0130.06720.07
7.0.20.0070.09020.13
7.0.10.0070.05020.13
7.0.00.0030.05320.04
5.6.280.0030.07021.03
5.6.250.0000.06320.63
5.6.240.0100.07720.57
5.6.230.0030.08720.59
5.6.220.0170.07320.67
5.6.210.0130.06720.74
5.6.200.0030.08321.14
5.6.190.0030.06320.97
5.6.180.0170.06720.93
5.6.170.0100.08021.02
5.6.160.0130.07321.08
5.6.150.0130.08021.05
5.6.140.0170.06320.93
5.6.130.0100.05021.07
5.6.120.0100.05021.13
5.6.110.0070.07721.00
5.6.100.0030.04321.04
5.6.90.0070.04721.02
5.6.80.0000.04020.49
5.6.70.0070.03720.46
5.6.60.0030.04320.38
5.6.50.0030.04320.42
5.6.40.0130.06320.40
5.6.30.0000.04720.44
5.6.20.0130.07320.31
5.6.10.0100.05720.41
5.6.00.0070.05320.39
5.5.380.0070.04020.57
5.5.370.0070.04320.36
5.5.360.0100.08320.40
5.5.350.0100.08020.37
5.5.340.0100.07020.77
5.5.330.0100.08020.64
5.5.320.0170.07020.88
5.5.310.0070.08320.88
5.5.300.0100.07020.84
5.5.290.0170.07320.81
5.5.280.0070.07020.77
5.5.270.0070.09020.82
5.5.260.0030.04320.75
5.5.250.0030.04020.41
5.5.240.0000.04320.23
5.5.230.0100.03320.30
5.5.220.0000.04020.01
5.5.210.0000.04720.21
5.5.200.0030.04020.27
5.5.190.0100.07320.08
5.5.180.0030.07720.23
5.5.160.0070.08020.23
5.5.150.0030.07020.20
5.5.140.0000.04320.26
5.5.130.0000.04320.25
5.5.120.0100.03320.09
5.5.110.0100.04720.27
5.5.100.0070.04019.97
5.5.90.0000.04020.16
5.5.80.0030.04020.15
5.5.70.0030.04020.05
5.5.60.0070.03320.11
5.5.50.0070.03720.13
5.5.40.0000.04020.09
5.5.30.0000.06720.01
5.5.20.0030.04320.14
5.5.10.0070.04020.13
5.5.00.0070.03720.05
5.4.450.0100.08019.16
5.4.440.0070.07719.29
5.4.430.0070.04319.37
5.4.420.0100.03319.28
5.4.410.0030.04019.24
5.4.400.0000.04019.16
5.4.390.0030.03718.96
5.4.380.0100.03319.13
5.4.370.0100.02718.87
5.4.360.0070.06718.96
5.4.350.0070.06319.06
5.4.340.0000.06018.96
5.4.320.0000.04718.78
5.4.310.0030.07718.91
5.4.300.0070.03318.83
5.4.290.0030.03318.82
5.4.280.0100.03019.16
5.4.270.0070.06318.96
5.4.260.0030.03318.80
5.4.250.0070.03319.05
5.4.240.0030.03719.13
5.4.230.0000.04018.98
5.4.220.0000.04318.90
5.4.210.0030.03318.83
5.4.200.0070.03019.13
5.4.190.0070.03019.04
5.4.180.0030.04019.15
5.4.170.0000.04019.03
5.4.160.0030.03718.97
5.4.150.0070.03019.10
5.4.140.0030.04016.20
5.4.130.0030.03316.26
5.4.120.0070.04716.16
5.4.110.0030.03716.48
5.4.100.0030.03316.23
5.4.90.0000.03316.45
5.4.80.0030.03316.43
5.4.70.0070.05316.32
5.4.60.0030.04316.31
5.4.50.0030.03316.41
5.4.40.0100.06716.46
5.4.30.0100.04016.33
5.4.20.0030.08016.43
5.4.10.0100.06716.23
5.4.00.0070.07315.71
5.3.290.0030.03714.50
5.3.280.0070.03714.52
5.3.270.0030.03714.48
5.3.260.0030.03314.51
5.3.250.0030.03014.55
5.3.240.0070.03314.56
5.3.230.0030.03714.57
5.3.220.0000.04314.39
5.3.210.0000.06714.49
5.3.200.0030.04014.47
5.3.190.0030.03714.53
5.3.180.0100.03014.39
5.3.170.0100.03014.49
5.3.160.0000.04314.48
5.3.150.0130.03014.52
5.3.140.0070.07714.39
5.3.130.0200.03314.38
5.3.120.0000.07314.36
5.3.110.0030.06714.50
5.3.100.0100.07314.01
5.3.90.0030.06713.97
5.3.80.0030.06313.88
5.3.70.0030.07313.96
5.3.60.0100.05713.99
5.3.50.0100.07313.84
5.3.40.0070.07713.88
5.3.30.0130.04713.65
5.3.20.0070.04013.63
5.3.10.0130.06313.59
5.3.00.0000.04313.58
5.2.170.0000.03711.50
5.2.160.0030.05711.50
5.2.150.0070.05711.50
5.2.140.0070.03711.50
5.2.130.0030.03011.50
5.2.120.0000.05011.50
5.2.110.0000.06311.50
5.2.100.0000.03711.50
5.2.90.0030.06711.50
5.2.80.0070.05711.50
5.2.70.0030.06311.50
5.2.60.0070.05711.50
5.2.50.0070.06011.50
5.2.40.0030.06011.50
5.2.30.0070.05711.50
5.2.20.0000.03311.50
5.2.10.0000.06711.50
5.2.00.0000.06311.50
5.1.60.0100.02711.50
5.1.50.0030.05011.50
5.1.40.0100.04711.50
5.1.30.0030.03011.50
5.1.20.0070.05311.50
5.1.10.0070.05311.50
5.1.00.0030.05711.50
5.0.50.0030.04711.50
5.0.40.0030.02711.50
5.0.30.0000.06011.50
5.0.20.0000.02711.50
5.0.10.0000.04011.50
5.0.00.0000.05311.50
4.4.90.0070.03011.50
4.4.80.0000.02011.50
4.4.70.0070.03011.50
4.4.60.0000.02711.50
4.4.50.0030.03011.50
4.4.40.0030.05311.50
4.4.30.0000.03711.50
4.4.20.0030.03311.50
4.4.10.0000.03711.50
4.4.00.0030.05311.50
4.3.110.0030.03711.50
4.3.100.0030.03311.50
4.3.90.0000.03311.50
4.3.80.0000.03011.50
4.3.70.0070.03011.50
4.3.60.0000.02011.50
4.3.50.0070.01711.50
4.3.40.0000.05011.50
4.3.30.0000.02011.50
4.3.20.0030.02711.50
4.3.10.0030.02711.50
4.3.00.0070.02311.50

preferences:
35.33 ms | 403 KiB | 5 Q