3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myTests = array("correct","horse","battery","staple"); foreach($myTests as &$test) { echo "first $test\n"; } foreach($myTests as $test) { echo "second $test\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.60.0120.00318.30
8.3.50.0030.01221.99
8.3.40.0070.01418.84
8.3.30.0000.01418.91
8.3.20.0080.00020.16
8.3.10.0000.00822.09
8.3.00.0050.00222.44
8.2.180.0130.00316.38
8.2.170.0150.00422.96
8.2.160.0110.00720.88
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0110.00726.16
8.2.120.0050.00317.63
8.2.110.0060.00322.00
8.2.100.0080.00317.72
8.2.90.0040.00419.09
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0030.00618.22
8.2.30.0000.00717.95
8.2.20.0040.00417.54
8.2.10.0050.00319.51
8.2.00.0040.00417.75
8.1.280.0070.01025.92
8.1.270.0040.00422.16
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00323.74
8.1.230.0040.00719.10
8.1.220.0060.00317.76
8.1.210.0040.00418.77
8.1.200.0060.00617.35
8.1.190.0000.00917.63
8.1.180.0040.00418.79
8.1.170.0000.00718.59
8.1.160.0000.00721.97
8.1.150.0050.00218.64
8.1.140.0050.00317.44
8.1.130.0000.00717.65
8.1.120.0000.00717.38
8.1.110.0000.00917.37
8.1.100.0050.00217.32
8.1.90.0070.00017.47
8.1.80.0070.00017.31
8.1.70.0030.00317.41
8.1.60.0060.00317.59
8.1.50.0050.00317.42
8.1.40.0000.00917.46
8.1.30.0000.00717.62
8.1.20.0000.00817.62
8.1.10.0080.00017.51
8.1.00.0040.00417.42
8.0.300.0040.00418.77
8.0.290.0050.00317.05
8.0.280.0000.00718.44
8.0.270.0040.00417.13
8.0.260.0000.00616.76
8.0.250.0000.00716.83
8.0.240.0030.00316.99
8.0.230.0000.00816.88
8.0.220.0050.00216.90
8.0.210.0030.00316.74
8.0.200.0080.00016.81
8.0.190.0030.00316.98
8.0.180.0000.00716.80
8.0.170.0060.00316.86
8.0.160.0050.00316.83
8.0.150.0000.00716.84
8.0.140.0040.00416.75
8.0.130.0040.00313.36
8.0.120.0040.00416.88
8.0.110.0080.00016.81
8.0.100.0040.00316.91
8.0.90.0080.00016.78
8.0.80.0090.01216.89
8.0.70.0040.00416.76
8.0.60.0030.00516.84
8.0.50.0070.00016.83
8.0.30.0140.00716.99
8.0.20.0050.01317.40
8.0.10.0030.00617.03
8.0.00.0110.01316.74
7.4.330.0050.00015.00
7.4.320.0030.00316.47
7.4.300.0030.00316.40
7.4.290.0070.00016.64
7.4.280.0000.00716.64
7.4.270.0040.00416.61
7.4.260.0050.00316.50
7.4.250.0040.00416.57
7.4.240.0050.00316.50
7.4.230.0040.00416.57
7.4.220.0120.01216.63
7.4.210.0100.00616.43
7.4.200.0000.00816.51
7.4.190.0070.00016.61
7.4.160.0070.01516.39
7.4.150.0030.01717.40
7.4.140.0100.00917.86
7.4.130.0060.01116.44
7.4.120.0090.00816.43
7.4.110.0120.00616.50
7.4.100.0030.01316.42
7.4.90.0130.00716.66
7.4.80.0100.00719.39
7.4.70.0080.00916.49
7.4.60.0190.00416.36
7.4.50.0080.00016.62
7.4.40.0030.01222.77
7.4.30.0040.01216.42
7.4.00.0070.00714.74
7.3.330.0000.00513.22
7.3.320.0000.00513.31
7.3.310.0000.00716.32
7.3.300.0070.00016.35
7.3.290.0040.01116.33
7.3.280.0130.00416.38
7.3.270.0030.01317.40
7.3.260.0030.01516.31
7.3.250.0060.01216.40
7.3.240.0070.01116.48
7.3.230.0130.00316.39
7.3.210.0110.00816.49
7.3.200.0150.00619.39
7.3.190.0140.00316.54
7.3.180.0060.01016.58
7.3.170.0060.01516.51
7.3.160.0080.00816.54
7.3.120.0060.00914.52
7.2.330.0120.00616.43
7.2.320.0040.01516.63
7.2.310.0170.00316.49
7.2.300.0110.00616.36
7.2.290.0060.00916.50
7.2.60.0070.00716.84
7.2.00.0060.00619.48
7.1.200.0080.00315.58
7.1.100.0080.00018.09
7.1.70.0430.00317.23
7.1.60.0100.00317.13
7.1.50.0070.01716.96
7.1.00.0000.08022.57
7.0.200.0000.00716.59
7.0.140.0000.07722.00
7.0.60.0100.08319.85
7.0.50.0070.03717.77
7.0.40.0100.09019.96
7.0.30.0430.03720.09
7.0.20.0300.07320.00
7.0.10.0270.05019.99
7.0.00.0030.06720.30
5.6.280.0100.06720.78
5.6.210.0170.07720.64
5.6.200.0030.08718.23
5.6.190.0170.08020.48
5.6.180.3700.04720.41
5.6.170.0200.05020.44
5.6.160.0130.08720.50
5.6.150.0030.08318.11
5.6.140.0030.06018.09
5.6.130.0100.08318.14
5.6.120.0130.08021.01
5.6.110.0100.06721.01
5.6.100.0030.07720.88
5.6.90.0030.08720.97
5.6.80.0270.06720.28
5.5.350.0070.05020.36
5.5.340.0100.05017.88
5.5.330.0100.04020.12
5.5.320.0130.04720.28
5.5.310.0070.04720.31
5.5.300.0100.03718.02
5.5.290.0000.08017.93
5.5.280.0100.08020.79
5.5.270.0070.07320.67
5.5.260.0130.06320.76
5.5.250.0100.07720.66
5.5.240.0170.07020.26
5.4.450.0400.05719.55
5.4.440.0500.05719.48
5.4.430.0200.05719.45
5.4.420.0170.05319.49
5.4.410.0070.05719.34
5.4.400.0900.00018.79
5.4.390.0770.00018.70
5.4.380.0230.05318.46
5.4.370.0200.05718.55
5.4.360.0170.05318.67
5.4.350.0200.06318.49
5.4.340.0270.05018.64
5.4.320.0070.03512.46
5.4.310.0070.04112.45
5.4.300.0040.04212.46
5.4.290.0100.03612.45
5.4.280.0070.05512.32
5.4.270.0100.04212.32
5.4.260.0070.05312.32
5.4.250.0120.05112.32
5.4.240.0130.05512.32
5.4.230.0120.07212.31
5.4.220.0120.05712.31
5.4.210.0120.04312.32
5.4.200.0130.04512.32
5.4.190.0070.06712.31
5.4.180.0120.05412.31
5.4.170.0130.05112.32
5.4.160.0090.04112.32
5.4.150.0070.04012.32
5.4.140.0080.05312.00
5.4.130.0070.05111.99
5.4.120.0090.04611.94
5.4.110.0080.04411.94
5.4.100.0090.04811.94
5.4.90.0080.05211.93
5.4.80.0040.04911.93
5.4.70.0050.04211.93
5.4.60.0100.05011.93
5.4.50.0080.04511.93
5.4.40.0040.06011.92
5.4.30.0060.04811.92
5.4.20.0050.03811.92
5.4.10.0080.03411.92
5.4.00.0040.04111.41
5.3.290.0100.04012.80
5.3.280.0050.04112.70
5.3.270.0120.03712.72
5.3.260.0090.03812.72
5.3.250.0030.04112.72
5.3.240.0090.03612.72
5.3.230.0060.03912.71
5.3.220.0090.05612.68
5.3.210.0220.05812.68
5.3.200.0090.04812.68
5.3.190.0110.05312.68
5.3.180.0170.05112.67
5.3.170.0070.04112.67
5.3.160.0110.06112.68
5.3.150.0060.06112.67
5.3.140.0060.05812.66
5.3.130.0080.04212.66
5.3.120.0100.07112.66
5.3.110.0090.06912.66
5.3.100.0190.09012.12
5.3.90.0070.05912.08
5.3.80.0100.04912.08
5.3.70.0090.05912.07
5.3.60.0090.07612.07
5.3.50.0100.06012.00
5.3.40.0120.05712.00
5.3.30.0140.05211.94
5.3.20.0140.04811.70
5.3.10.0210.06011.67
5.3.00.0230.06411.66
5.2.170.0120.0499.15
5.2.160.0170.0419.15
5.2.150.0110.0529.15
5.2.140.0070.0479.14
5.2.130.0050.0459.11
5.2.120.0050.0339.11
5.2.110.0040.0369.12
5.2.100.0080.0379.12
5.2.90.0040.0339.11
5.2.80.0060.0379.11
5.2.70.0050.0459.11
5.2.60.0080.0389.05
5.2.50.0090.0299.04
5.2.40.0040.0399.00
5.2.30.0080.0488.98
5.2.20.0060.0328.97
5.2.10.0090.0378.90
5.2.00.0030.0358.75
5.1.60.0050.0258.04
5.1.50.0080.0238.04
5.1.40.0040.0268.02
5.1.30.0050.0268.38
5.1.20.0020.0308.39
5.1.10.0030.0348.12
5.1.00.0080.0288.12
5.0.50.0060.0286.59
5.0.40.0070.0256.46
5.0.30.0030.0346.27
5.0.20.0050.0196.25
5.0.10.0060.0186.22
5.0.00.0040.0366.21
4.4.90.0050.0204.78
4.4.80.0040.0144.75
4.4.70.0020.0164.76
4.4.60.0020.0174.75
4.4.50.0040.0154.77
4.4.40.0020.0264.71
4.4.30.0040.0144.76
4.4.20.0040.0154.84
4.4.10.0030.0164.85
4.4.00.0040.0244.76
4.3.110.0020.0174.67
4.3.100.0050.0144.66
4.3.90.0040.0184.64
4.3.80.0030.0504.58
4.3.70.0090.0174.63
4.3.60.0050.0204.63
4.3.50.0040.0224.63
4.3.40.0060.0234.54
4.3.30.0000.0203.27
4.3.20.0010.0173.26
4.3.10.0000.0183.21
4.3.00.0100.0206.98

preferences:
47.5 ms | 401 KiB | 5 Q