3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ceu = array( "Italy"=>"Rome", "Luxembourg"=>"Luxembourg", "Belgium"=> "Brussels") ; asort($ceu) ; foreach($ceu as $country => $capital) { echo "The capital of $country is $capital <br />" ; } ?>

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.70.0110.00416.48
8.3.60.0070.00716.50
8.3.50.0100.00722.04
8.3.40.0040.01118.71
8.3.30.0000.01418.87
8.3.20.0040.00420.04
8.3.10.0000.00823.48
8.3.00.0030.00719.13
8.2.180.0040.01116.32
8.2.170.0090.00622.96
8.2.160.0170.00320.52
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00222.26
8.2.110.0070.00422.07
8.2.100.0000.01417.66
8.2.90.0060.00319.04
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0050.00317.90
8.2.50.0030.00518.07
8.2.40.0030.00619.93
8.2.30.0000.00818.05
8.2.20.0040.00417.57
8.2.10.0080.00017.96
8.2.00.0000.00717.78
8.1.280.0040.01225.92
8.1.270.0080.00023.84
8.1.260.0000.00926.35
8.1.250.0070.00028.09
8.1.240.0040.00423.97
8.1.230.0080.00418.93
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0000.00817.35
8.1.180.0030.00618.82
8.1.170.0060.00618.52
8.1.160.0040.00422.00
8.1.150.0030.00518.62
8.1.140.0040.00417.31
8.1.130.0000.00717.69
8.1.120.0000.00717.46
8.1.110.0030.00617.41
8.1.100.0070.00317.42
8.1.90.0040.00317.47
8.1.80.0070.00017.30
8.1.70.0000.00717.46
8.1.60.0040.00417.45
8.1.50.0050.00317.48
8.1.40.0080.00017.50
8.1.30.0040.00417.45
8.1.20.0040.00417.58
8.1.10.0040.00417.50
8.1.00.0030.00617.36
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0030.00318.44
8.0.270.0030.00317.29
8.0.260.0000.00617.21
8.0.250.0000.00716.95
8.0.240.0000.00816.96
8.0.230.0070.00016.84
8.0.220.0040.00416.81
8.0.210.0030.00316.93
8.0.200.0000.00716.93
8.0.190.0040.00416.84
8.0.180.0000.00716.92
8.0.170.0000.00916.89
8.0.160.0070.00016.80
8.0.150.0000.00716.86
8.0.140.0030.00316.91
8.0.130.0040.00413.35
8.0.120.0000.00716.85
8.0.110.0000.00716.81
8.0.100.0030.00516.84
8.0.90.0030.00516.77
8.0.80.0070.01016.80
8.0.70.0050.00316.82
8.0.60.0000.00816.78
8.0.50.0030.00516.91
8.0.30.0120.00717.11
8.0.20.0050.01517.40
8.0.10.0040.00416.93
8.0.00.0100.00816.89
7.4.330.0050.00015.00
7.4.320.0030.00316.60
7.4.300.0000.00716.59
7.4.290.0030.00316.49
7.4.280.0070.00016.63
7.4.270.0000.00816.44
7.4.260.0000.00716.45
7.4.250.0000.00816.50
7.4.240.0030.00316.52
7.4.230.0030.00316.41
7.4.220.0120.00616.51
7.4.210.0050.01016.51
7.4.200.0000.00716.48
7.4.190.0030.00316.31
7.4.160.0090.00916.64
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0080.00916.38
7.4.120.0080.00816.34
7.4.110.0100.00716.41
7.4.100.0120.00616.49
7.4.90.0110.00616.35
7.4.80.0170.00319.39
7.4.70.0070.01016.51
7.4.60.0130.01016.25
7.4.50.0000.00816.49
7.4.40.0120.00616.28
7.4.30.0070.01016.40
7.4.00.0100.00714.90
7.3.330.0030.00313.30
7.3.320.0000.00613.22
7.3.310.0050.00316.18
7.3.300.0070.00016.36
7.3.290.0090.00916.27
7.3.280.0100.00716.29
7.3.270.0120.00617.40
7.3.260.0170.00716.28
7.3.250.0020.01516.42
7.3.240.0200.00316.31
7.3.230.0100.00716.39
7.3.210.0090.00916.48
7.3.200.0140.00719.39
7.3.190.0060.00916.45
7.3.180.0120.00416.56
7.3.170.0090.00616.44
7.3.160.0140.00316.43
7.3.120.0040.00715.02
7.2.330.0080.00816.61
7.2.320.0160.00616.61
7.2.310.0160.00716.55
7.2.300.0140.00316.63
7.2.290.0070.01516.57
7.2.60.0070.00716.53
7.2.00.0040.00819.24
7.1.200.0150.00515.71
7.1.100.0030.01017.98
7.1.70.0030.00617.28
7.1.60.0070.01719.46
7.1.50.0070.01616.85
7.1.00.0000.08022.54
7.0.200.0070.00016.54
7.0.140.0070.07022.09
7.0.60.0030.05019.99
7.0.50.0070.03717.92
7.0.40.0070.08320.04
7.0.30.0330.05320.18
7.0.20.0270.08020.18
7.0.10.0100.03720.04
7.0.00.0070.03720.13
5.6.210.0070.08020.72
5.6.200.0130.07718.12
5.6.190.0070.06320.56
5.6.180.0700.06020.41
5.6.170.0270.07720.39
5.6.160.0130.08020.54
5.6.150.0000.07718.10
5.6.140.0070.07718.07
5.6.130.0130.08318.20
5.6.120.0130.08021.01
5.6.110.0070.08320.99
5.6.100.0170.07021.09
5.6.90.0070.08720.92
5.6.80.0100.07320.43
5.5.350.4230.04020.41
5.5.340.0000.04017.96
5.5.330.0070.05020.19
5.5.320.0270.04720.30
5.5.310.0300.03720.13
5.5.300.0070.06317.95
5.5.290.0130.07717.88
5.5.280.0070.08720.87
5.5.270.0070.09020.94
5.5.260.0100.08320.95
5.5.250.0100.04720.54
5.5.240.0000.07320.15
5.4.450.0200.05019.13
5.4.440.0170.05019.52
5.4.430.0100.05319.46
5.4.420.0130.07319.54
5.4.410.0200.05019.39
5.4.400.0130.05019.09
5.4.390.0200.04718.95
5.4.380.0300.05318.69
5.4.370.0270.05018.48
5.4.360.0430.04318.46
5.4.350.0530.04018.59
5.4.340.0270.06018.72
5.4.320.0040.03912.46
5.4.310.0040.04012.45
5.4.300.0060.03612.46
5.4.290.0120.07412.43
5.4.280.0100.05412.34
5.4.270.0080.05512.33
5.4.260.0100.06112.34
5.4.250.0130.05312.34
5.4.240.0150.07512.34
5.4.230.0250.08012.33
5.4.220.0170.05512.33
5.4.210.0170.06112.33
5.4.200.0250.06612.33
5.4.190.0340.09012.32
5.4.180.0180.07112.32
5.4.170.0120.06412.33
5.4.160.0200.09412.33
5.4.150.0240.07212.32
5.4.140.0330.08212.01
5.4.130.0260.06112.00
5.4.120.0230.11011.96
5.4.110.0350.07711.95
5.4.100.0080.04611.95
5.4.90.0130.06711.95
5.4.80.0090.04111.95
5.4.70.0070.04011.95
5.4.60.0090.03811.95
5.4.50.0100.05811.95
5.4.40.0210.05511.94
5.4.30.0190.08211.94
5.4.20.0130.06611.94
5.4.10.0360.12511.93
5.4.00.0190.11011.42
5.3.290.0060.04312.80
5.3.280.0220.08612.71
5.3.270.0310.09512.72
5.3.260.0330.14212.72
5.3.250.0220.10412.72
5.3.240.0390.08312.72
5.3.230.0110.07112.71
5.3.220.0170.08212.68
5.3.210.0140.10312.68
5.3.200.0230.07712.68
5.3.190.0370.07012.68
5.3.180.0150.05812.68
5.3.170.0160.08712.67
5.3.160.0150.08412.67
5.3.150.0190.08712.68
5.3.140.0190.09912.66
5.3.130.0170.07212.66
5.3.120.0140.08412.66
5.3.110.0180.07212.65
5.3.100.0190.09212.12
5.3.90.0280.10212.09
5.3.80.0230.12312.08
5.3.70.0200.07512.07
5.3.60.0130.05512.07
5.3.50.0190.06312.00
5.3.40.0140.06412.00
5.3.30.0150.05211.94
5.3.20.0120.08411.72
5.3.10.0160.05811.69
5.3.00.0160.05811.68
5.2.170.0120.0639.18
5.2.160.0110.0629.18
5.2.150.0090.0479.18
5.2.140.0190.0899.17
5.2.130.0070.0529.13
5.2.120.0160.0539.14
5.2.110.0130.0609.14
5.2.100.0090.0659.14
5.2.90.0090.0639.14
5.2.80.0120.0939.14
5.2.70.0080.0699.14
5.2.60.0110.0519.09
5.2.50.0090.0619.05
5.2.40.0250.0889.04
5.2.30.0060.0439.01
5.2.20.0150.0709.00
5.2.10.0060.0518.93
5.2.00.0050.0598.78
5.1.60.0130.0908.06
5.1.50.0200.0718.06
5.1.40.0200.0708.04
5.1.30.0140.0498.39
5.1.20.0110.0648.41
5.1.10.0040.0398.14
5.1.00.0120.0708.14
5.0.50.0090.0476.62
5.0.40.0200.0386.47
5.0.30.0080.0466.29
5.0.20.0090.0366.26
5.0.10.0090.0296.23
5.0.00.0080.0466.23
4.4.90.0080.0194.78
4.4.80.0170.0464.75
4.4.70.0070.0494.75
4.4.60.0110.0264.76
4.4.50.0090.0244.77
4.4.40.0040.0394.71
4.4.30.0110.0344.76
4.4.20.0160.0444.84
4.4.10.0130.0304.85
4.4.00.0060.0474.75
4.3.110.0100.0224.67
4.3.100.0020.0284.67
4.3.90.0050.0504.63
4.3.80.0080.0494.59
4.3.70.0110.0454.63
4.3.60.0090.0384.62
4.3.50.0080.0204.63
4.3.40.0050.0314.54
4.3.30.0160.0453.29
4.3.20.0070.0363.27
4.3.10.0070.0323.23
4.3.00.0000.0237.29

preferences:
52.64 ms | 401 KiB | 5 Q