3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array('jan', 'feb', 'mar', 'apr'); array_push($months,'may'); $output = array_slice($months, 1,2); print_r($months);

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.0100.01016.50
8.3.50.0180.01616.28
8.3.40.0070.01018.77
8.3.30.0000.01418.55
8.3.20.0110.00318.44
8.3.10.0060.00320.40
8.3.00.0000.00819.26
8.2.180.0150.00316.38
8.2.170.0070.00722.96
8.2.160.0110.00421.06
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0060.00319.25
8.2.110.0060.00321.03
8.2.100.0060.00617.84
8.2.90.0080.00019.22
8.2.80.0000.00719.26
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0000.01018.07
8.2.40.0000.00818.03
8.2.30.0000.00717.89
8.2.20.0030.00617.46
8.2.10.0040.00417.77
8.2.00.0030.00617.58
8.1.280.0110.00325.92
8.1.270.0050.00224.66
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0080.00322.06
8.1.230.0040.00720.89
8.1.220.0090.00018.77
8.1.210.0030.00619.02
8.1.200.0030.00617.10
8.1.190.0070.00017.53
8.1.180.0050.00318.10
8.1.170.0040.00418.77
8.1.160.0040.00418.83
8.1.150.0000.00718.57
8.1.140.0040.00417.30
8.1.130.0000.00717.71
8.1.120.0070.00017.34
8.1.110.0000.00717.37
8.1.100.0000.00717.38
8.1.90.0000.00817.25
8.1.80.0040.00417.45
8.1.70.0000.00717.34
8.1.60.0080.00017.50
8.1.50.0030.00617.37
8.1.40.0040.00417.41
8.1.30.0050.00217.46
8.1.20.0030.00617.55
8.1.10.0000.00817.35
8.1.00.0000.00917.43
8.0.300.0000.00819.73
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0080.00017.08
8.0.260.0000.00716.74
8.0.250.0080.00016.81
8.0.240.0080.00016.79
8.0.230.0000.00716.76
8.0.220.0030.00316.80
8.0.210.0080.00016.83
8.0.200.0060.00016.95
8.0.190.0050.00316.86
8.0.180.0040.00416.71
8.0.170.0040.00416.85
8.0.160.0030.00316.79
8.0.150.0040.00416.76
8.0.140.0060.00316.79
8.0.130.0030.00313.32
8.0.120.0000.00716.76
8.0.110.0030.00316.65
8.0.100.0080.00016.92
8.0.90.0000.00816.83
8.0.80.0110.00416.74
8.0.70.0050.00316.66
8.0.60.0000.00716.91
8.0.50.0040.00416.80
8.0.30.0080.01016.94
8.0.20.0090.01216.91
8.0.10.0040.00416.88
8.0.00.0150.00616.54
7.4.330.0020.00212.84
7.4.320.0100.00016.48
7.4.300.0040.00416.37
7.4.290.0070.00016.56
7.4.280.0040.00416.44
7.4.270.0050.00216.33
7.4.260.0000.00613.16
7.4.250.0000.00916.51
7.4.240.0070.00016.48
7.4.230.0030.00316.33
7.4.220.0160.00316.40
7.4.210.0080.00916.48
7.4.200.0030.00316.27
7.4.190.0040.00416.49
7.4.160.0130.00916.52
7.4.150.0060.01216.23
7.4.140.0110.01016.38
7.4.130.0120.00516.39
7.4.120.0070.00916.55
7.4.110.0110.00716.46
7.4.100.0070.01016.55
7.4.90.0100.00716.37
7.4.80.0100.00719.39
7.4.70.0150.00316.52
7.4.60.0050.01116.35
7.4.50.0030.00616.39
7.4.40.0030.01216.23
7.4.30.0080.00816.46
7.4.00.0060.00914.96
7.3.330.0030.00312.89
7.3.320.0050.00013.02
7.3.310.0030.00316.15
7.3.300.0000.00716.12
7.3.290.0050.00816.11
7.3.280.0090.00616.14
7.3.270.0090.00916.49
7.3.260.0120.00416.28
7.3.250.0080.01016.40
7.3.240.0120.00616.16
7.3.230.0070.01116.50
7.3.210.0060.01016.18
7.3.200.0090.00616.44
7.3.190.0060.00916.39
7.3.180.0090.00616.28
7.3.170.0000.01616.25
7.3.160.0040.01116.12
7.3.120.0090.00614.59
7.2.330.0090.00916.57
7.2.320.0070.01016.55
7.2.310.0090.01116.32
7.2.300.0080.00816.31
7.2.290.0060.01116.29
7.2.00.0030.01519.24
7.1.100.0040.00418.04
7.1.70.0000.00917.00
7.1.60.0060.00919.40
7.1.50.0070.01016.71
7.1.00.0070.06722.54
7.0.200.0100.00314.75
7.0.140.0070.07022.09
7.0.120.0000.07722.04
7.0.60.0030.07319.93
7.0.50.0000.04717.90
7.0.40.0030.04320.38
7.0.30.0300.08020.16
7.0.20.0370.08020.21
7.0.10.0330.07720.30
7.0.00.0170.06720.20
5.6.280.0000.06721.06
5.6.210.0170.07320.46
5.6.200.0130.04718.19
5.6.190.0130.08020.38
5.6.180.0300.08020.57
5.6.170.0270.06720.71
5.6.160.0070.04720.39
5.6.150.0100.05018.18
5.6.140.0170.07318.18
5.6.130.0130.04718.23
5.6.120.0070.06720.97
5.6.110.0030.07720.99
5.6.100.0200.07320.94
5.6.90.0000.04321.02
5.6.80.0030.03720.35
5.6.70.4300.04320.34
5.5.350.0330.05020.40
5.5.340.0100.07017.94
5.5.330.0030.06320.29
5.5.320.0100.08020.44
5.5.310.0270.05720.30
5.5.300.0100.08017.95
5.5.290.0200.07317.98
5.5.280.0200.07320.73
5.5.270.0070.05020.82
5.5.260.0130.06720.83
5.5.250.0100.06020.79
5.5.240.0170.07320.15
5.4.450.0030.03719.57
5.4.440.0000.04019.57
5.4.430.0000.04019.40
5.4.420.0000.04019.20
5.4.410.0070.03319.46
5.4.400.0000.04019.14
5.4.390.0030.07319.12
5.4.380.0170.04019.24
5.4.370.0100.06719.20
5.4.360.0100.03318.92
5.4.350.0030.05718.87
5.4.340.0070.07319.21
5.4.320.0000.05719.21
5.4.310.0030.07719.14
5.4.300.0100.03319.15
5.4.290.0070.03719.14
5.4.280.0030.08018.85
5.4.270.0070.05719.20
5.4.260.0130.04019.15
5.4.250.0030.04018.99
5.4.240.0070.03718.96
5.4.230.0100.05019.13
5.4.220.0030.04019.05
5.4.210.0100.04319.16
5.4.200.0070.04319.14
5.4.190.0030.04319.17
5.4.180.0070.07018.84
5.4.170.0100.07318.96
5.4.160.0130.07718.83
5.4.150.0170.06719.21
5.4.140.0100.04016.35
5.4.130.0100.06716.29
5.4.120.0100.04016.49
5.4.110.0070.07316.47
5.4.100.0070.07316.41
5.4.90.0070.07716.27
5.4.80.0070.04016.26
5.4.70.0070.07016.29
5.4.60.0000.07716.64
5.4.50.0100.05716.34
5.4.40.0100.07016.39
5.4.30.0030.04316.29
5.4.20.0130.02716.28
5.4.10.0030.07016.24
5.4.00.0070.04315.74
5.3.290.0100.07314.54
5.3.280.0100.03314.60
5.3.270.0030.05014.61
5.3.260.0100.07314.52
5.3.250.0130.06714.74
5.3.240.0200.06014.64
5.3.230.0130.06714.64
5.3.220.0070.07014.45
5.3.210.0100.07314.48
5.3.200.0130.04714.61
5.3.190.0130.03714.59
5.3.180.0130.06314.60
5.3.170.0030.07714.63
5.3.160.0030.05314.57
5.3.150.0200.05314.63
5.3.140.0100.05714.71
5.3.130.0000.05014.55
5.3.120.0070.04314.43
5.3.110.0000.08014.57
5.3.100.0070.07714.18
5.3.90.0100.06014.07
5.3.80.0000.05313.89
5.3.70.0070.04714.06
5.3.60.0070.04314.05
5.3.50.0030.07313.86
5.3.40.0030.04713.94
5.3.30.0030.04313.95
5.3.20.0070.04313.70
5.3.10.0070.07013.68
5.3.00.0070.07013.59
5.2.170.0100.06011.03
5.2.160.0070.04311.14
5.2.150.0030.03011.29
5.2.140.0030.05311.13
5.2.130.0000.03310.98
5.2.120.0130.05311.25
5.2.110.0100.06011.09
5.2.100.0070.02711.05
5.2.90.0030.03011.25
5.2.80.0100.02311.05
5.2.70.0130.05311.09
5.2.60.0070.04710.93
5.2.50.0070.03711.04
5.2.40.0030.05010.97
5.2.30.0000.03710.93
5.2.20.0030.06310.91
5.2.10.0100.03310.94
5.2.00.0130.04710.60
5.1.60.0030.03710.00
5.1.50.0070.0309.97
5.1.40.0000.0279.95
5.1.30.0130.04310.38
5.1.20.0030.05010.34
5.1.10.0070.03710.06
5.1.00.0000.05010.07
5.0.50.0000.0238.52
5.0.40.0170.0438.37
5.0.30.0070.0578.34
5.0.20.0170.0308.34
5.0.10.0000.0278.34
5.0.00.0000.0338.34
4.4.90.0030.0378.34
4.4.80.0030.0308.34
4.4.70.0030.0378.34
4.4.60.0070.0208.34
4.4.50.0030.0308.34
4.4.40.0000.0378.34
4.4.30.0030.0208.34
4.4.20.0000.0308.34
4.4.10.0030.0308.34
4.4.00.0000.0608.34
4.3.110.0000.0378.34
4.3.100.0030.0308.34
4.3.90.0000.0278.34
4.3.80.0000.0338.34
4.3.70.0000.0238.34
4.3.60.0030.0378.34
4.3.50.0030.0238.34
4.3.40.0030.0538.34
4.3.30.0000.0408.34
4.3.20.0030.0378.34
4.3.10.0070.0278.34
4.3.00.0070.0238.34

preferences:
54.25 ms | 400 KiB | 5 Q