3v4l.org

run code in 300+ PHP versions simultaneously
<?php $marks = [ "john" => ["physics" => 30, "maths" => 55, "chemistry" => 66], "jack" => ["physics" => 44, "maths" => 19, "chemistry" => 87], "mark" => ["physics" => 77, "maths" => 66, "chemistry" => 67], ]; foreach ($marks as $name=>$scores){ echo $name .":". $scores["chemistry"] . "la". $scores["maths"] ."\r"; }

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.0070.01016.75
8.3.50.0090.00916.40
8.3.40.0110.00418.84
8.3.30.0040.01118.71
8.3.20.0050.00320.28
8.3.10.0030.00521.78
8.3.00.0070.00417.62
8.2.180.0150.00316.38
8.2.170.0120.00322.96
8.2.160.0070.01020.37
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00719.27
8.2.120.0050.00226.35
8.2.110.0070.00321.00
8.2.100.0090.00317.91
8.2.90.0040.00419.21
8.2.80.0040.00418.05
8.2.70.0030.00617.75
8.2.60.0030.00518.05
8.2.50.0000.00918.10
8.2.40.0030.00620.47
8.2.30.0000.00719.19
8.2.20.0040.00418.05
8.2.10.0050.00318.00
8.2.00.0000.00718.14
8.1.280.0110.00725.92
8.1.270.0040.00422.05
8.1.260.0070.00026.35
8.1.250.0020.00528.09
8.1.240.0030.00622.47
8.1.230.0090.00320.97
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0050.00317.23
8.1.180.0000.00718.10
8.1.170.0040.00418.61
8.1.160.0030.00318.94
8.1.150.0040.00418.88
8.1.140.0040.00419.50
8.1.130.0030.00318.92
8.1.120.0040.00417.47
8.1.110.0030.00617.33
8.1.100.0050.00317.48
8.1.90.0000.00817.39
8.1.80.0000.00817.41
8.1.70.0090.00317.49
8.1.60.0040.00417.47
8.1.50.0000.00817.57
8.1.40.0050.00317.50
8.1.30.0070.00017.67
8.1.20.0050.00217.57
8.1.10.0080.00017.54
8.1.00.0000.00917.51
8.0.300.0000.00719.98
8.0.290.0000.01016.59
8.0.280.0070.00018.45
8.0.270.0000.00717.24
8.0.260.0080.00016.88
8.0.250.0000.00816.85
8.0.240.0000.01016.84
8.0.230.0110.00016.92
8.0.220.0040.00516.80
8.0.210.0030.00316.94
8.0.200.0030.00316.93
8.0.190.0040.00416.85
8.0.180.0040.00416.80
8.0.170.0000.00716.88
8.0.160.0030.00316.85
8.0.150.0040.00416.89
8.0.140.0050.00216.74
8.0.130.0000.00513.30
8.0.120.0000.00816.76
8.0.110.0030.00516.91
8.0.100.0030.00516.77
8.0.90.0000.00716.90
8.0.80.0090.00916.84
8.0.70.0000.00816.87
8.0.60.0070.00016.95
8.0.50.0000.00716.77
8.0.30.0080.00917.16
8.0.20.0100.00717.40
8.0.10.0070.00016.96
8.0.00.0140.00316.57
7.4.330.0050.00015.55
7.4.320.0030.00316.63
7.4.300.0000.00616.48
7.4.290.0050.00216.44
7.4.280.0070.00016.64
7.4.270.0030.00316.63
7.4.260.0000.00513.15
7.4.250.0000.00816.42
7.4.240.0040.00416.43
7.4.230.0000.00716.41
7.4.220.0120.00916.60
7.4.210.0070.00716.47
7.4.200.0000.00716.54
7.4.160.0090.00616.48
7.4.150.0120.00917.40
7.4.140.0110.00917.86
7.4.130.0180.00616.69
7.4.120.0120.00916.59
7.4.110.0130.00316.48
7.4.100.0140.00716.32
7.4.90.0080.00816.40
7.4.80.0130.00619.39
7.4.70.0060.01016.61
7.4.60.0060.01316.50
7.4.50.0060.00616.56
7.4.40.0120.01216.74
7.4.30.0090.01216.54
7.4.10.0110.00614.97
7.4.00.0050.01214.99
7.3.330.0050.00013.14
7.3.320.0020.00313.16
7.3.310.0040.00416.36
7.3.300.0070.00016.23
7.3.290.0070.00816.24
7.3.280.0080.00916.23
7.3.270.0090.00817.40
7.3.260.0120.00616.46
7.3.250.0100.00816.44
7.3.240.0060.01316.42
7.3.230.0100.00716.43
7.3.210.0030.01416.38
7.3.200.0060.01216.50
7.3.190.0060.00916.48
7.3.180.0080.00816.43
7.3.170.0120.00416.66
7.3.160.0090.00616.35
7.3.130.0030.01314.94
7.3.120.0050.01014.81
7.3.110.0090.00814.85
7.3.100.0050.00814.87
7.3.90.0070.00414.91
7.3.80.0040.00814.76
7.3.70.0030.01114.79
7.3.60.0080.00514.96
7.3.50.0070.00514.80
7.3.40.0070.00714.75
7.3.30.0050.00814.82
7.3.20.0030.01116.56
7.3.10.0080.00816.79
7.3.00.0070.00616.66
7.2.330.0080.01016.87
7.2.320.0120.00416.61
7.2.310.0120.00616.65
7.2.300.0100.00716.63
7.2.290.0060.01216.60
7.2.260.0030.01315.18
7.2.250.0050.01214.92
7.2.240.0050.01215.09
7.2.230.0050.01014.98
7.2.220.0050.01015.12
7.2.210.0040.01114.91
7.2.200.0070.00615.00
7.2.190.0060.01214.86
7.2.180.0040.01015.03
7.2.170.0070.00514.99
7.2.160.0060.00714.93
7.2.150.0050.01117.01
7.2.140.0050.00816.72
7.2.130.0060.00817.02
7.2.120.0040.01017.04
7.2.110.0060.00816.89
7.2.100.0060.00717.00
7.2.90.0190.00516.50
7.2.80.0270.01216.40
7.2.70.0270.00816.41
7.2.60.0090.00716.33
7.2.50.0050.01016.43
7.2.40.0040.00716.39
7.2.30.0100.00516.46
7.2.20.0350.00816.49
7.2.10.0090.00516.41
7.2.00.0230.01016.47
7.1.330.0070.00815.87
7.1.320.0080.00615.83
7.1.310.0050.00715.86
7.1.300.0080.00815.71
7.1.290.0040.00815.94
7.1.280.0050.00915.83
7.1.270.0060.00815.79
7.1.260.0050.00715.80
7.1.250.0060.00815.83
7.1.240.0030.01215.87
7.1.230.0050.00715.64
7.1.220.0110.00415.74
7.1.210.0350.00615.18
7.1.200.0680.00715.10
7.1.190.0050.00815.10
7.1.180.0080.00815.09
7.1.170.0150.00715.00
7.1.160.0380.00315.07
7.1.150.0080.00715.19
7.1.140.0670.00614.99
7.1.130.0270.00215.18
7.1.120.0080.00615.06
7.1.110.0080.00415.20
7.1.100.0120.00815.06
7.1.90.0120.00415.07
7.1.80.0040.00915.24
7.1.70.0250.00615.14
7.1.60.0120.01121.04
7.1.50.0210.00721.09
7.1.40.0090.01121.10
7.1.30.0150.00921.04
7.1.20.0140.00721.13
7.1.10.0280.00714.99
7.1.00.0370.00615.16
7.0.330.0080.00315.50
7.0.320.0050.00415.44
7.0.310.0380.01014.76
7.0.300.0080.00714.79
7.0.290.0080.00714.69
7.0.280.0430.00314.64
7.0.270.0070.00714.88
7.0.260.0060.00614.75
7.0.250.0060.00814.79
7.0.240.0070.00514.69
7.0.230.0070.00814.77
7.0.220.0070.00614.84
7.0.210.0080.00714.70
7.0.200.0160.00714.81
7.0.190.0090.00614.89
7.0.180.0090.00614.93
7.0.170.0450.01014.76
7.0.160.0080.00714.76
7.0.150.0230.00614.74
7.0.140.0320.00714.85
7.0.130.0040.00914.61
7.0.120.0070.00814.86
7.0.110.0070.01014.77
7.0.100.0250.00514.86
7.0.90.0460.00414.76
7.0.80.0110.00614.77
7.0.70.0090.00514.81
7.0.60.0060.01014.78
7.0.50.0060.00514.96
7.0.40.0250.01013.56
7.0.30.0040.00913.48
7.0.20.0160.00913.59
7.0.10.0290.00713.46
7.0.00.0040.00913.57
5.6.400.0030.00914.60
5.6.390.0060.00614.22
5.6.380.0030.01214.24
5.6.370.0020.01114.14
5.6.360.0030.01114.15
5.6.350.0070.00614.52
5.6.340.0080.00714.18
5.6.330.0040.00914.32
5.6.320.0100.00514.42
5.6.310.0020.01014.64
5.6.300.0050.00914.34
5.6.290.0090.00614.38
5.6.280.0090.00514.56
5.6.270.0090.00714.28
5.6.260.0020.01114.54
5.6.250.0050.00714.34
5.6.240.0060.00614.46
5.6.230.0020.01214.62
5.6.220.0100.00514.27
5.6.210.0030.00914.53
5.6.200.0070.00514.51
5.6.190.0050.00914.17
5.6.180.0060.01114.28
5.6.170.0050.01014.30
5.6.160.0060.00614.24
5.6.150.0060.01014.39
5.6.140.0060.00614.38
5.6.130.0020.01214.38
5.6.120.0020.01214.50
5.6.110.0030.01214.09
5.6.100.0080.00614.26
5.6.90.0070.00514.51
5.6.80.0020.01014.29
5.6.70.0050.01014.39
5.6.60.0070.00714.26
5.6.50.0080.00514.26
5.6.40.0050.00514.21
5.6.30.0020.00914.24
5.6.20.0050.01014.49
5.6.10.0080.00614.28
5.6.00.0060.00814.38

preferences:
45.35 ms | 400 KiB | 5 Q