3v4l.org

run code in 300+ PHP versions simultaneously
<?php $names = array('Bill', 'Ben', 'Bert ', 'Ernie'); $start = 2; foreach( array_merge( array_slice($names, $start), array_slice( $names, 0, $start)) as $name){ echo $name; }

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.0140.00718.18
8.3.50.0070.01121.20
8.3.40.0070.00718.58
8.3.30.0070.00720.17
8.3.20.0040.00420.16
8.3.10.0040.00420.98
8.3.00.0040.00422.19
8.2.180.0040.01216.50
8.2.170.0060.00922.96
8.2.160.0070.00721.98
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.01026.16
8.2.120.0080.00020.80
8.2.110.0070.00321.12
8.2.100.0080.00317.78
8.2.90.0080.00019.22
8.2.80.0030.00617.97
8.2.70.0050.00317.63
8.2.60.0030.00618.00
8.2.50.0040.00418.10
8.2.40.0070.00020.61
8.2.30.0000.00719.15
8.2.20.0040.00417.75
8.2.10.0050.00217.59
8.2.00.0040.00417.67
8.1.280.0200.00325.92
8.1.270.0030.00523.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00020.95
8.1.230.0080.00420.26
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.55
8.1.160.0040.00418.93
8.1.150.0000.00720.13
8.1.140.0040.00417.45
8.1.130.0040.00417.87
8.1.120.0030.00317.50
8.1.110.0000.00817.41
8.1.100.0000.00717.49
8.1.90.0000.00717.48
8.1.80.0030.00317.33
8.1.70.0030.00317.32
8.1.60.0030.00617.46
8.1.50.0030.00717.48
8.1.40.0000.00817.53
8.1.30.0050.00217.55
8.1.20.0060.00317.66
8.1.10.0030.00617.44
8.1.00.0000.00817.29
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.48
8.0.270.0080.00017.25
8.0.260.0000.00616.82
8.0.250.0030.00316.92
8.0.240.0080.00016.94
8.0.230.0070.00016.93
8.0.220.0000.00716.88
8.0.210.0030.00316.89
8.0.200.0030.00316.90
8.0.190.0040.00416.83
8.0.180.0030.00316.91
8.0.170.0050.00316.89
8.0.160.0000.00716.81
8.0.150.0000.00716.73
8.0.140.0030.00316.76
8.0.130.0030.00613.31
8.0.120.0040.00416.75
8.0.110.0030.00516.80
8.0.100.0040.00416.83
8.0.90.0000.00816.67
8.0.80.0050.01016.88
8.0.70.0000.00716.75
8.0.60.0040.00417.00
8.0.50.0050.00216.94
8.0.30.0080.01117.08
8.0.20.0110.00817.40
8.0.10.0040.00417.12
8.0.00.0120.00516.81
7.4.330.0050.00016.69
7.4.320.0050.00216.52
7.4.300.0060.00016.60
7.4.290.0080.00016.45
7.4.280.0070.00016.48
7.4.270.0000.00616.55
7.4.260.0000.00513.38
7.4.250.0070.00016.47
7.4.240.0030.00316.57
7.4.230.0000.00716.60
7.4.220.0120.00616.44
7.4.210.0070.00816.48
7.4.200.0030.00316.47
7.4.190.0040.00416.56
7.4.160.0100.00716.39
7.4.150.0100.00717.40
7.4.140.0100.00617.86
7.4.130.0120.00516.51
7.4.120.0070.01316.59
7.4.110.0070.01016.64
7.4.100.0060.01016.48
7.4.90.0170.00716.61
7.4.80.0090.00819.39
7.4.70.0100.01316.43
7.4.60.0120.00616.44
7.4.50.0040.00416.55
7.4.40.0070.00722.77
7.4.30.0130.00316.58
7.4.00.0060.01014.90
7.3.330.0030.00313.17
7.3.320.0020.00213.24
7.3.310.0030.00316.32
7.3.300.0000.00616.25
7.3.290.0060.01316.25
7.3.280.0070.01016.26
7.3.270.0100.00717.40
7.3.260.0080.00918.24
7.3.250.0170.00416.48
7.3.240.0060.01116.36
7.3.230.0070.01016.39
7.3.210.0030.01316.35
7.3.200.0140.01019.39
7.3.190.0110.00616.43
7.3.180.0090.00616.28
7.3.170.0150.00616.27
7.3.160.0120.00916.55
7.3.120.0000.01215.04
7.3.10.0070.00716.38
7.3.00.0090.00916.22
7.2.330.0070.01016.67
7.2.320.0100.00616.51
7.2.310.0060.01016.43
7.2.300.0160.00016.65
7.2.290.0120.00416.29
7.2.130.0050.01216.54
7.2.120.0060.00816.30
7.2.110.0050.00716.60
7.2.100.0050.00916.70
7.2.90.0090.00716.62
7.2.80.0090.00716.69
7.2.70.0100.00716.45
7.2.60.0070.00816.71
7.2.50.0100.01116.83
7.2.40.0130.00116.64
7.2.30.0070.00916.61
7.2.20.0080.00516.39
7.2.10.0120.00616.72
7.2.00.0090.00717.52
7.1.250.0070.00715.53
7.1.100.0040.00718.29
7.1.70.0130.00317.04
7.1.60.0130.01019.17
7.1.50.0080.00416.78
7.1.00.0030.07722.46
7.0.200.0070.00016.63
7.0.140.0070.07322.13
7.0.60.0000.08720.02
7.0.50.0070.07717.89
7.0.40.0200.08020.23
7.0.30.0030.04720.04
7.0.20.0400.06020.02
7.0.10.0070.08320.11
7.0.00.0000.04720.19
5.6.210.0030.06320.46
5.6.200.0170.06718.16
5.6.190.0130.05720.41
5.6.180.0430.03720.43
5.6.170.0300.04720.33
5.6.160.0070.08720.61
5.6.150.0000.04018.08
5.6.140.0030.04318.20
5.6.130.0070.07018.04
5.6.120.0100.06721.03
5.6.110.0070.08021.08
5.6.100.0100.08320.95
5.6.90.0130.08020.99
5.6.80.0130.07720.41
5.5.350.4070.04320.34
5.5.340.0070.04717.88
5.5.330.0070.04020.20
5.5.320.0300.04020.41
5.5.310.0270.07320.34
5.5.300.0100.05317.88
5.5.290.0070.07717.88
5.5.280.0030.04320.75
5.5.270.0130.05720.75
5.5.260.0130.08020.76
5.5.250.0100.06020.68
5.5.240.0170.03720.13
5.4.450.0300.07019.41
5.4.440.0200.05319.54
5.4.430.0170.07719.25
5.4.420.0200.04019.41
5.4.410.0200.03719.42
5.4.400.0230.07318.89
5.4.390.0300.06319.13
5.4.380.0230.04718.88
5.4.370.0370.06719.24
5.4.360.0170.04719.09
5.4.350.0200.03718.80
5.4.340.0270.06719.11
5.4.320.0200.04019.20
5.4.310.0170.06319.10
5.4.300.0270.05319.08
5.4.290.0430.03019.06
5.4.280.0130.06018.80
5.4.270.0370.03318.80
5.4.260.0300.05319.08
5.4.250.0330.06019.07
5.4.240.0230.04319.12
5.4.230.0230.06318.77
5.4.220.0200.04719.12
5.4.210.0230.05319.02
5.4.200.0270.04319.23
5.4.190.0170.04019.14
5.4.180.0170.04019.23
5.4.170.0230.06719.09
5.4.160.0300.03319.06
5.4.150.0170.04318.91
5.4.140.0300.06016.23
5.4.130.0270.04316.37
5.4.120.0200.03316.25
5.4.110.0330.06316.43
5.4.100.0200.06716.34
5.4.90.0200.04316.41
5.4.80.0230.05716.41
5.4.70.0230.06316.46
5.4.60.0300.06016.28
5.4.50.0270.06316.39
5.4.40.0330.06016.40
5.4.30.0270.05716.36
5.4.20.0230.05316.03
5.4.10.0200.04016.04
5.4.00.0300.04015.79
5.3.290.0270.06014.52
5.3.280.0130.05014.69
5.3.270.0170.04314.70
5.3.260.0230.07314.45
5.3.250.0300.06714.54
5.3.240.0200.03714.45
5.3.230.0300.06314.54
5.3.220.0230.04014.39
5.3.210.0170.04014.44
5.3.200.0100.04314.52
5.3.190.0170.04014.41
5.3.180.0270.06714.51
5.3.170.0200.04314.57
5.3.160.0200.05314.48
5.3.150.0200.04314.46
5.3.140.0200.05714.50
5.3.130.0200.06314.39
5.3.120.0230.05314.38
5.3.110.0170.04014.39
5.3.100.0330.06013.98
5.3.90.0270.05014.07
5.3.80.0270.06714.11
5.3.70.0230.04713.81
5.3.60.0300.05714.05
5.3.50.0230.04014.04
5.3.40.0330.04013.89
5.3.30.0130.04013.77
5.3.20.0270.05313.72
5.3.10.0300.04013.75
5.3.00.0270.06313.43
5.2.170.0270.05313.18
5.2.160.0100.03713.18
5.2.150.0130.02713.18
5.2.140.0200.06013.18
5.2.130.0100.05313.18
5.2.120.0130.03313.18
5.2.110.0230.05713.18
5.2.100.0200.04313.18
5.2.90.0170.05713.18
5.2.80.0200.02713.18
5.2.70.0170.05713.18
5.2.60.0170.04013.18
5.2.50.0130.03013.18
5.2.40.0170.02713.18
5.2.30.0230.03013.18
5.2.20.0130.02713.18
5.2.10.0230.04013.18
5.2.00.0200.02313.18
5.1.60.0100.03013.18
5.1.50.0100.03713.18
5.1.40.0200.02713.18
5.1.30.0130.04013.18
5.1.20.0170.03713.18
5.1.10.0100.03013.18
5.1.00.0130.05313.18
5.0.50.0100.02713.18
5.0.40.0000.02713.18
5.0.30.0070.03713.18
5.0.20.0130.02013.18
5.0.10.0070.02013.18
5.0.00.0130.05013.18
4.4.90.0130.03013.18
4.4.80.0070.01713.18
4.4.70.0130.02313.18
4.4.60.0070.03713.18
4.4.50.0000.02313.18
4.4.40.0030.03013.18
4.4.30.0070.02013.18
4.4.20.0030.02313.18
4.4.10.0100.03713.18
4.4.00.0070.04013.18
4.3.110.0070.01713.18
4.3.100.0100.01313.18
4.3.90.0070.01313.18
4.3.80.0100.04013.18
4.3.70.0030.02313.18
4.3.60.0070.03713.18
4.3.50.0100.01713.18
4.3.40.0030.04313.18
4.3.30.0030.02313.18
4.3.20.0070.03313.18
4.3.10.0070.03013.18
4.3.00.0030.03713.18

preferences:
53.46 ms | 401 KiB | 5 Q