3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array('jan', 'feb', 'mar', 'apr', 'may'); array_push ($months, 'june'); $months[] = 'july'; print_r($months); echo $month;

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.28
8.3.50.0080.00821.99
8.3.40.0110.00318.85
8.3.30.0070.00718.67
8.3.20.0030.00618.54
8.3.10.0040.00419.04
8.3.00.0030.00523.49
8.2.180.0150.00618.29
8.2.170.0170.00022.96
8.2.160.0070.00720.55
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.43
8.2.110.0070.00322.25
8.2.100.0070.00319.28
8.2.90.0080.00018.09
8.2.80.0050.00318.16
8.2.70.0030.00618.05
8.2.60.0040.00818.16
8.2.50.0040.00418.10
8.2.40.0080.00020.41
8.2.30.0040.00419.28
8.2.20.0020.00517.82
8.2.10.0080.00017.61
8.2.00.0030.00517.72
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0080.00020.49
8.1.230.0070.00320.74
8.1.220.0000.00719.22
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0000.00817.10
8.1.180.0070.00418.10
8.1.170.0080.00018.50
8.1.160.0020.00518.75
8.1.150.0030.00520.18
8.1.140.0000.00817.34
8.1.130.0030.00317.89
8.1.120.0000.00717.34
8.1.110.0070.00017.28
8.1.100.0000.00717.41
8.1.90.0070.00017.27
8.1.80.0000.00717.42
8.1.70.0030.00317.40
8.1.60.0060.00317.39
8.1.50.0070.00017.34
8.1.40.0060.00317.45
8.1.30.0040.00417.59
8.1.20.0040.00417.45
8.1.10.0000.00817.43
8.1.00.0040.00417.48
8.0.300.0050.00321.64
8.0.290.0080.00016.75
8.0.280.0000.00818.48
8.0.270.0040.00417.16
8.0.260.0060.00018.43
8.0.250.0000.00716.90
8.0.240.0060.00317.00
8.0.230.0070.00016.94
8.0.220.0070.00016.94
8.0.210.0000.00716.83
8.0.200.0040.00416.81
8.0.190.0030.00516.83
8.0.180.0040.00416.94
8.0.170.0000.00916.92
8.0.160.0030.00316.77
8.0.150.0040.00416.83
8.0.140.0000.00716.68
8.0.130.0030.00313.39
8.0.120.0090.00016.95
8.0.110.0000.00716.68
8.0.100.0000.00716.67
8.0.90.0000.00816.78
8.0.80.0070.01116.78
8.0.70.0040.00416.90
8.0.60.0000.00716.78
8.0.50.0030.00516.70
8.0.30.0110.00717.02
8.0.20.0130.00817.40
8.0.10.0040.00417.03
8.0.00.0150.00516.71
7.4.330.0020.00214.59
7.4.320.0070.00016.50
7.4.300.0030.00316.53
7.4.290.0070.00016.48
7.4.280.0030.00316.38
7.4.270.0030.00316.52
7.4.260.0000.00513.26
7.4.250.0000.00716.34
7.4.240.0000.00716.41
7.4.230.0000.00716.32
7.4.220.0100.01016.32
7.4.210.0100.00616.56
7.4.200.0050.00216.55
7.4.190.0000.00716.48
7.4.160.0120.00416.45
7.4.150.0030.01717.40
7.4.140.0080.01017.86
7.4.130.0110.00616.55
7.4.120.0070.01016.56
7.4.110.0120.00616.62
7.4.100.0070.01616.55
7.4.90.0070.01116.31
7.4.80.0100.01019.39
7.4.70.0090.00616.60
7.4.60.0090.00916.40
7.4.50.0080.00016.26
7.4.40.0120.00622.52
7.4.30.0070.01016.60
7.4.00.0070.01015.01
7.3.330.0000.00513.07
7.3.320.0030.00313.11
7.3.310.0000.00816.39
7.3.300.0000.00816.17
7.3.290.0050.00816.29
7.3.280.0070.00916.26
7.3.270.0070.01017.40
7.3.260.0120.00818.24
7.3.250.0120.00616.56
7.3.240.0130.00316.38
7.3.230.0030.01416.39
7.3.210.0130.00616.43
7.3.200.0060.01019.39
7.3.190.0150.00416.40
7.3.180.0090.00616.55
7.3.170.0120.00616.30
7.3.160.0090.00616.51
7.3.120.0030.01414.50
7.2.330.0070.01016.64
7.2.320.0090.01216.52
7.2.310.0120.00616.63
7.2.300.0130.00716.68
7.2.290.0090.01316.35
7.2.00.0030.01019.21
7.1.200.0070.00415.87
7.1.100.0080.00418.20
7.1.70.0000.00716.94
7.1.60.0070.00317.29
7.1.50.0060.00617.05
7.1.00.0000.03722.35
7.0.200.0080.00816.77
7.0.140.0070.07021.95
7.0.70.0070.08321.82
7.0.60.0030.05321.58
7.0.50.0070.08722.14
7.0.40.0030.08319.95
7.0.30.0100.08019.99
7.0.20.0030.08320.08
7.0.10.0000.08719.94
7.0.00.0000.05320.04
5.6.280.0070.06720.88
5.6.220.0100.08020.55
5.6.210.0000.05020.63
5.6.200.0030.06321.08
5.6.190.0000.08020.93
5.6.180.0100.08021.08
5.6.170.0030.08721.05
5.6.160.0030.05020.93
5.6.150.0070.08020.93
5.6.140.0030.08320.92
5.6.130.0170.08021.03
5.6.120.0100.08721.00
5.6.110.0170.07721.04
5.6.100.0070.08321.02
5.6.90.0100.05321.02
5.6.80.0030.07320.41
5.6.70.0000.04720.33
5.6.60.0030.04020.38
5.6.50.0030.08320.49
5.6.40.0000.06720.37
5.6.30.0170.06320.41
5.6.20.0030.08020.39
5.6.10.0030.05320.35
5.6.00.0130.07320.34
5.5.360.0000.08720.55
5.5.350.0100.07720.46
5.5.340.0070.06720.87
5.5.330.0130.06320.92
5.5.320.0100.07720.75
5.5.310.0030.08720.77
5.5.300.0030.08020.82
5.5.290.0030.08320.88
5.5.280.0030.08720.76
5.5.270.0030.08320.71
5.5.260.0070.05720.81
5.5.250.0070.08320.73
5.5.240.0030.05320.21
5.5.230.0100.07320.19
5.5.220.0070.08020.15
5.5.210.0130.07020.15
5.5.200.0070.07720.17
5.5.190.0030.08320.07
5.5.180.0030.08320.14
5.5.160.0000.07720.14
5.5.150.0070.07019.97
5.5.140.0030.05720.24
5.5.130.0000.06320.12
5.5.120.0000.07320.26
5.5.110.0000.08720.16
5.5.100.0000.07320.14
5.5.90.0070.08020.03
5.5.80.0100.07320.05
5.5.70.0030.08020.05
5.5.60.0030.08320.13
5.5.50.0070.06020.09
5.5.40.0070.07019.90
5.5.30.0100.07320.02
5.5.20.0030.07320.10
5.5.10.0070.07320.03
5.5.00.0030.05320.05
5.4.450.0070.07019.23
5.4.440.0070.08019.27
5.4.430.0030.08319.25
5.4.420.0030.07019.19
5.4.410.0000.06719.32
5.4.400.0070.07018.88
5.4.390.0100.05319.03
5.4.380.0070.03318.87
5.4.370.0030.07719.20
5.4.360.0130.07019.12
5.4.350.0070.05019.21
5.4.340.0070.07319.23
5.4.320.0030.06719.12
5.4.310.0100.05719.05
5.4.300.0130.06019.02
5.4.290.0100.04718.87
5.4.280.0070.07719.04
5.4.270.0030.06019.07
5.4.260.0000.07719.23
5.4.250.0030.07018.87
5.4.240.0100.07019.04
5.4.230.0000.06319.03
5.4.220.0070.06719.14
5.4.210.0130.07019.02
5.4.200.0000.08319.17
5.4.190.0130.07019.19
5.4.180.0030.04318.89
5.4.170.0070.07719.17
5.4.160.0000.08018.93
5.4.150.0030.05719.04
5.4.140.0000.07716.40
5.4.130.0000.04016.18
5.4.120.0000.07016.39
5.4.110.0070.05716.29
5.4.100.0100.03716.37
5.4.90.0000.05016.51
5.4.80.0030.05316.46
5.4.70.0100.06316.32
5.4.60.0000.07716.46
5.4.50.0070.05716.36
5.4.40.0070.07016.45
5.4.30.0030.07316.32
5.4.20.0030.06716.46
5.4.10.0030.07016.48
5.4.00.0070.05015.78
5.3.290.0000.08314.66
5.3.280.0070.05314.64
5.3.270.0070.06314.61
5.3.260.0030.05014.57
5.3.250.0030.07014.63
5.3.240.0030.05014.72
5.3.230.0000.04314.73
5.3.220.0000.08014.67
5.3.210.0000.08314.68
5.3.200.0030.05314.49
5.3.190.0100.06314.49
5.3.180.0070.05014.57
5.3.170.0030.07014.52
5.3.160.0070.07314.56
5.3.150.0000.08314.55
5.3.140.0030.07314.58
5.3.130.0000.08014.46
5.3.120.0070.07314.49
5.3.110.0070.06714.64
5.3.100.0030.07714.13
5.3.90.0030.05014.10
5.3.80.0100.07313.91
5.3.70.0030.08013.89
5.3.60.0000.07713.88
5.3.50.0070.04314.03
5.3.40.0000.07713.94
5.3.30.0030.07013.95
5.3.20.0000.08013.73
5.3.10.0070.07013.59
5.3.00.0030.07013.55
5.2.170.0030.06012.20
5.2.160.0030.04012.20
5.2.150.0070.06312.20
5.2.140.0000.06712.20
5.2.130.0100.05712.20
5.2.120.0030.05712.20
5.2.110.0030.06012.20
5.2.100.0030.04312.20
5.2.90.0000.05012.20
5.2.80.0070.06012.20
5.2.70.0030.06012.20
5.2.60.0000.06312.20
5.2.50.0030.04712.20
5.2.40.0030.05312.20
5.2.30.0030.04312.20
5.2.20.0030.06012.20
5.2.10.0000.06012.20
5.2.00.0000.05312.20
5.1.60.0000.03312.20
5.1.50.0030.04712.20
5.1.40.0030.05012.20
5.1.30.0070.05012.20
5.1.20.0030.05712.20
5.1.10.0030.05312.20
5.1.00.0070.05012.20
5.0.50.0030.03012.20
5.0.40.0000.04712.20
5.0.30.0000.06712.20
5.0.20.0000.04312.20
5.0.10.0000.03712.20
5.0.00.0000.04012.20
4.4.90.0000.02312.20
4.4.80.0000.03012.20
4.4.70.0000.03712.20
4.4.60.0000.03712.20
4.4.50.0030.03312.20
4.4.40.0000.04712.20
4.4.30.0070.03012.20
4.4.20.0030.03312.20
4.4.10.0000.03712.20
4.4.00.0000.03012.20
4.3.110.0030.03712.20
4.3.100.0000.03712.20
4.3.90.0000.03712.20
4.3.80.0000.02712.20
4.3.70.0000.01712.20
4.3.60.0000.02012.20
4.3.50.0000.02312.20
4.3.40.0000.03712.20
4.3.30.0030.03012.20
4.3.20.0070.01712.20
4.3.10.0030.01312.20
4.3.00.0000.01312.20

preferences:
54.92 ms | 400 KiB | 5 Q