3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = array( array('Foo', 'Bar'), array('Baz', 'Qux'), ); // Before foreach ($users as $user) { list($firstName, $lastName, $check) = $user; echo "First name: $firstName, last name: $lastName, check: $check. \n"; }

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.0040.01118.83
8.3.30.0110.00418.75
8.3.20.0080.00018.46
8.3.10.0040.00420.57
8.3.00.0040.00421.94
8.2.170.0090.00622.96
8.2.160.0070.00720.58
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.36
8.2.110.0100.00022.30
8.2.100.0060.00617.91
8.2.90.0040.00418.16
8.2.80.0050.00317.97
8.2.70.0000.01017.63
8.2.60.0000.00818.05
8.2.50.0060.00318.07
8.2.40.0060.00618.16
8.2.30.0040.00419.91
8.2.20.0060.00317.77
8.2.10.0040.00417.72
8.2.00.0080.00017.81
8.1.270.0070.00723.99
8.1.260.0140.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.97
8.1.230.0040.00820.88
8.1.220.0000.00817.78
8.1.210.0000.00918.77
8.1.200.0060.00317.22
8.1.190.0080.00017.53
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0040.00418.89
8.1.150.0000.00718.68
8.1.140.0000.00717.38
8.1.130.0000.00717.85
8.1.120.0040.00417.37
8.1.110.0000.00917.35
8.1.100.0000.00817.44
8.1.90.0000.00717.35
8.1.80.0000.00717.51
8.1.70.0030.00317.41
8.1.60.0040.00417.59
8.1.50.0030.00517.51
8.1.40.0040.00417.44
8.1.30.0060.00317.52
8.1.20.0050.00317.52
8.1.10.0050.00217.43
8.1.00.0000.00817.55
8.0.300.0040.00420.04
8.0.290.0000.00816.75
8.0.280.0050.00318.44
8.0.270.0040.00417.13
8.0.260.0000.00616.86
8.0.250.0060.00316.91
8.0.240.0050.00316.98
8.0.230.0000.00616.97
8.0.220.0070.00016.96
8.0.210.0080.00016.89
8.0.200.0000.00717.00
8.0.190.0000.00716.98
8.0.180.0040.00416.87
8.0.170.0040.00416.86
8.0.160.0000.00716.97
8.0.150.0080.00016.95
8.0.140.0030.00416.88
8.0.130.0070.00013.41
8.0.120.0060.00316.94
8.0.110.0040.00416.95
8.0.100.0000.00716.88
8.0.90.0040.00416.99
8.0.80.0060.01016.88
8.0.70.0040.00416.78
8.0.60.0050.00316.98
8.0.50.0080.00016.79
8.0.30.0070.01117.17
8.0.20.0080.01217.40
8.0.10.0040.00417.06
8.0.00.0100.00616.98
7.4.330.0000.00514.77
7.4.320.0030.00316.59
7.4.300.0060.00016.45
7.4.290.0070.00016.50
7.4.280.0050.00316.57
7.4.270.0070.00016.52
7.4.260.0000.00513.29
7.4.250.0000.00916.50
7.4.240.0030.00316.54
7.4.230.0030.00316.48
7.4.220.0110.00716.55
7.4.210.0050.01016.65
7.4.200.0060.00016.50
7.4.190.0000.00716.64
7.4.160.0030.01516.44
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0140.00416.57
7.4.120.0130.00616.60
7.4.110.0120.00616.60
7.4.100.0140.01016.35
7.4.90.0030.02016.57
7.4.80.0000.01919.37
7.4.70.0140.00716.66
7.4.60.0100.00616.45
7.4.50.0000.00916.46
7.4.40.0000.01622.27
7.4.30.0090.00916.48
7.4.00.0000.01714.78
7.3.330.0000.00613.23
7.3.320.0050.00013.20
7.3.310.0060.00016.35
7.3.300.0050.00316.43
7.3.290.0030.01316.41
7.3.280.0070.00716.38
7.3.270.0080.00817.40
7.3.260.0140.00718.24
7.3.250.0090.01216.40
7.3.240.0080.00816.34
7.3.230.0090.00616.39
7.3.210.0100.00616.53
7.3.200.0090.00919.39
7.3.190.0160.00616.50
7.3.180.0030.01216.36
7.3.170.0120.00916.42
7.3.160.0060.01116.67
7.3.120.0070.00714.84
7.2.330.0090.00916.53
7.2.320.0070.01016.43
7.2.310.0150.00416.59
7.2.300.0130.00316.70
7.2.290.0040.01516.72
7.2.60.0370.00416.61
7.2.00.0090.00319.23
7.1.200.0070.00315.59
7.1.100.0030.01018.07
7.1.70.0060.00317.18
7.1.60.0040.02119.40
7.1.50.0110.01117.11
7.1.00.0070.07322.51
7.0.200.0250.00414.85
7.0.140.0000.07021.95
7.0.60.0000.09720.02
7.0.50.0130.08017.80
7.0.40.0100.04717.69
7.0.30.0170.07317.74
7.0.20.0130.06317.79
7.0.10.0130.07317.71
7.0.00.0030.08317.75
5.6.280.0070.06320.90
5.6.210.0070.08320.63
5.6.200.0070.08018.13
5.6.190.0000.08718.14
5.6.180.0130.04018.11
5.6.170.0100.06318.12
5.6.160.0070.06318.09
5.6.150.0100.07718.12
5.6.140.0070.06318.15
5.6.130.0030.08018.15
5.6.120.0070.07018.21
5.6.110.0130.07318.16
5.6.100.0100.07018.07
5.6.90.0070.08018.11
5.6.80.0170.06017.54
5.6.70.0070.05017.47
5.6.60.0030.05017.53
5.6.50.0030.08017.57
5.6.40.0070.06317.48
5.6.30.0070.06717.57
5.6.20.0100.07717.55
5.6.10.0130.05717.44
5.6.00.0030.04017.52
5.5.350.0330.07320.43
5.5.340.0070.07717.89
5.5.330.0030.04717.97
5.5.320.0100.04318.02
5.5.310.0070.06017.98
5.5.300.0030.05718.02
5.5.290.0130.07318.01
5.5.280.0070.06317.95
5.5.270.0030.07317.97
5.5.260.0000.07317.97
5.5.250.0130.07317.70
5.5.240.0100.07317.36
5.5.230.0100.06017.25
5.5.220.0100.07317.39
5.5.210.0130.05317.29
5.5.200.0070.06317.31
5.5.190.0100.04317.27
5.5.180.0100.05717.25
5.5.160.0100.08017.28
5.5.150.0030.05017.27
5.5.140.0070.04317.33
5.5.130.0030.08317.31
5.5.120.0130.07317.25
5.5.110.0030.04717.32
5.5.100.0070.05717.20
5.5.90.0130.05017.20
5.5.80.0100.07717.19
5.5.70.0070.08017.27
5.5.60.0070.07317.19
5.5.50.0070.07317.26
5.5.40.0000.05017.15
5.5.30.0100.07317.25
5.5.20.0100.07317.19
5.5.10.0030.05017.25
5.5.00.0200.02317.23
5.4.450.0130.04019.48
5.4.440.0100.07719.45
5.4.430.0100.07719.33
5.4.420.0100.05719.21
5.4.410.0130.03319.31
5.4.400.0100.04719.13
5.4.390.0130.06718.98
5.4.380.0170.06019.11
5.4.370.0100.07719.06
5.4.360.0070.05318.97
5.4.350.0030.07019.07
5.4.340.0100.05318.98
5.4.320.0030.08318.82
5.4.310.0130.07319.00
5.4.300.0100.07318.96
5.4.290.0100.06319.09
5.4.280.0030.07319.07
5.4.270.0130.06019.09
5.4.260.0070.07319.02
5.4.250.0070.07319.09
5.4.240.0070.04719.00
5.4.230.0100.05018.81
5.4.220.0030.06719.06
5.4.210.0130.05719.00
5.4.200.0030.05719.02
5.4.190.0130.06718.88
5.4.180.0100.07318.99
5.4.170.0070.05019.02
5.4.160.0030.04319.11
5.4.150.0070.03718.99
5.4.140.0030.03716.28
5.4.130.0070.03316.24
5.4.120.0070.05316.24
5.4.110.0100.04716.25
5.4.100.0070.03316.28
5.4.90.0070.07016.52
5.4.80.0070.07016.31
5.4.70.0070.07316.15
5.4.60.0100.07016.34
5.4.50.0070.04016.32
5.4.40.0000.04016.43
5.4.30.0170.06316.49
5.4.20.0070.04316.32
5.4.10.0100.06716.25
5.4.00.0000.05715.60
5.3.290.0030.07314.63
5.3.280.0200.03314.51
5.3.270.0100.07314.43
5.3.260.0000.08314.55
5.3.250.0030.05014.56
5.3.240.0130.04714.54
5.3.230.0030.03714.56
5.3.220.0000.04314.42
5.3.210.0070.06314.65
5.3.200.0030.04014.52
5.3.190.0100.07714.53
5.3.180.0100.07014.48
5.3.170.0070.07314.50
5.3.160.0100.06314.52
5.3.150.0100.05714.38
5.3.140.0130.04014.54
5.3.130.0030.06314.38
5.3.120.0170.06714.50
5.3.110.0070.07714.50
5.3.100.0070.07313.89
5.3.90.0100.07014.02
5.3.80.0100.06313.97
5.3.70.0070.07313.96
5.3.60.0030.07313.96
5.3.50.0070.04713.89
5.3.40.0030.08013.71
5.3.30.0100.05713.68
5.3.20.0100.07713.63
5.3.10.0100.06313.57
5.3.00.0070.07013.59
5.2.170.0070.06011.04
5.2.160.0100.05011.04
5.2.150.0100.05711.29
5.2.140.0100.05711.11
5.2.130.0070.05711.07
5.2.120.0100.06011.08
5.2.110.0030.06311.24
5.2.100.0030.06011.11
5.2.90.0130.05711.24
5.2.80.0000.06711.23
5.2.70.0030.06311.23
5.2.60.0030.05311.01
5.2.50.0030.06311.01
5.2.40.0030.04311.02
5.2.30.0000.04711.11
5.2.20.0000.06710.92
5.2.10.0070.05010.88
5.2.00.0030.04710.72
5.1.60.0000.03310.03
5.1.50.0070.0539.98
5.1.40.0130.0409.98
5.1.30.0000.06310.27
5.1.20.0000.05010.31
5.1.10.0070.03710.09
5.1.00.0030.05010.21
5.0.50.0000.0378.69
5.0.40.0070.0438.61
5.0.30.0000.0708.61
5.0.20.0070.0408.61
5.0.10.0030.0478.61
5.0.00.0130.0578.61
4.4.90.0030.0278.61
4.4.80.0030.0338.61
4.4.70.0030.0278.61
4.4.60.0070.0278.61
4.4.50.0070.0238.61
4.4.40.0000.0308.61
4.4.30.0130.0208.61
4.4.20.0030.0278.61
4.4.10.0030.0338.61
4.4.00.0030.0278.61
4.3.110.0030.0378.61
4.3.100.0030.0278.61
4.3.90.0070.0238.61
4.3.80.0070.0508.61
4.3.70.0030.0178.61
4.3.60.0000.0238.61
4.3.50.0070.0138.61
4.3.40.0030.0278.61
4.3.30.0000.0238.61
4.3.20.0070.0308.61
4.3.10.0000.0178.61
4.3.00.0030.0138.61

preferences:
39.48 ms | 400 KiB | 5 Q