3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array('jan', 'feb', 'mar', 'april', 'may');

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.0170.00318.15
8.3.50.0120.00821.14
8.3.40.0170.00318.60
8.3.30.0090.00618.97
8.3.20.0050.00220.22
8.3.10.0040.00422.13
8.3.00.0080.00022.39
8.2.180.0110.00416.34
8.2.170.0090.00622.96
8.2.160.0140.00019.08
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0120.00626.16
8.2.120.0040.00419.67
8.2.110.0060.00322.07
8.2.100.0090.00318.09
8.2.90.0050.00319.18
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0050.00317.92
8.2.50.0030.00618.07
8.2.40.0070.00018.22
8.2.30.0060.00317.86
8.2.20.0070.00017.69
8.2.10.0050.00217.48
8.2.00.0070.00317.52
8.1.280.0110.00725.92
8.1.270.0050.00318.50
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00423.66
8.1.230.0040.00819.08
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0100.00017.23
8.1.190.0000.00817.41
8.1.180.0040.00418.66
8.1.170.0050.00318.50
8.1.160.0070.00022.10
8.1.150.0000.00718.54
8.1.140.0060.00317.27
8.1.130.0030.00317.75
8.1.120.0030.00417.35
8.1.110.0050.00217.35
8.1.100.0030.00417.30
8.1.90.0040.00417.27
8.1.80.0040.00417.43
8.1.70.0000.00717.39
8.1.60.0060.00317.36
8.1.50.0050.00317.42
8.1.40.0000.00717.34
8.1.30.0040.00417.51
8.1.20.0050.00317.59
8.1.10.0070.00017.44
8.1.00.0040.00417.28
8.0.300.0070.00018.77
8.0.290.0000.00717.04
8.0.280.0050.00318.36
8.0.270.0080.00017.23
8.0.260.0000.00716.74
8.0.250.0070.00016.84
8.0.240.0080.00316.86
8.0.230.0080.00016.79
8.0.220.0030.00316.82
8.0.210.0000.00716.83
8.0.200.0000.00616.86
8.0.190.0030.00616.92
8.0.180.0030.00316.72
8.0.170.0000.00716.70
8.0.160.0030.00316.80
8.0.150.0020.00516.65
8.0.140.0070.00016.75
8.0.130.0060.00013.23
8.0.120.0000.00716.66
8.0.110.0080.00016.66
8.0.100.0050.00216.84
8.0.90.0000.00716.89
8.0.80.0050.00916.75
8.0.70.0050.00316.65
8.0.60.0000.00716.76
8.0.50.0040.00416.64
8.0.30.0110.00916.78
8.0.20.0100.00717.40
8.0.10.0050.00216.77
8.0.00.0070.01316.54
7.4.330.0040.00015.00
7.4.320.0030.00316.48
7.4.300.0000.00616.44
7.4.290.0000.00716.34
7.4.280.0030.00616.31
7.4.270.0020.00516.44
7.4.260.0000.00616.55
7.4.250.0030.00516.46
7.4.240.0000.00716.38
7.4.230.0030.00316.53
7.4.220.0110.01816.35
7.4.210.0090.00616.47
7.4.200.0030.00316.30
7.4.190.0030.00316.59
7.4.160.0120.00316.33
7.4.150.0100.01317.40
7.4.140.0080.00917.86
7.4.130.0090.01016.32
7.4.120.0090.00616.38
7.4.110.0090.00916.35
7.4.100.0090.01216.37
7.4.90.0060.01216.26
7.4.80.0040.01719.39
7.4.70.0200.00016.46
7.4.60.0120.00616.26
7.4.50.0030.00316.41
7.4.40.0080.00822.77
7.4.30.0120.00416.31
7.4.00.0060.00914.87
7.3.330.0020.00212.96
7.3.320.0020.00212.87
7.3.310.0030.00316.22
7.3.300.0000.00716.13
7.3.290.0070.00716.13
7.3.280.0090.01116.18
7.3.270.0070.01017.40
7.3.260.0060.01216.38
7.3.250.0120.00716.25
7.3.240.0090.00916.14
7.3.230.0180.00316.39
7.3.210.0090.01316.42
7.3.200.0090.00616.19
7.3.190.0110.01116.45
7.3.180.0060.00916.02
7.3.170.0140.00616.42
7.3.160.0090.00616.12
7.3.120.0000.01714.64
7.2.330.0100.00916.13
7.2.320.0100.01216.22
7.2.310.0090.01216.18
7.2.300.0140.00516.26
7.2.290.0040.01616.49
7.2.00.0060.00919.19
7.1.100.0040.00717.78
7.1.70.0040.00416.88
7.1.60.0100.01419.82
7.1.50.0090.00916.66
7.1.00.0000.05022.36
7.0.200.0080.00416.29
7.0.140.0070.07021.95
7.0.60.0070.06719.98
7.0.50.0000.05317.82
7.0.40.0100.08320.08
7.0.30.0200.04020.34
7.0.20.0370.07320.15
7.0.10.0100.08720.18
7.0.00.0100.08320.12
5.6.280.0030.07321.11
5.6.210.0100.08320.56
5.6.200.0070.06318.22
5.6.190.0070.07720.46
5.6.180.3130.03320.61
5.6.170.0230.04320.71
5.6.160.0130.06320.49
5.6.150.0170.07318.12
5.6.140.0000.06018.22
5.6.130.0030.08718.23
5.6.120.0130.07720.98
5.6.110.0130.07020.99
5.6.100.0170.07021.13
5.6.90.0170.05720.96
5.6.80.0070.05320.27
5.6.70.3370.04320.37
5.5.350.0100.08020.39
5.5.340.0000.05717.92
5.5.330.0000.05320.57
5.5.320.0100.04720.29
5.5.310.0230.04020.45
5.5.300.0070.05317.91
5.5.290.0070.08017.88
5.5.280.0070.07320.68
5.5.270.0100.07720.66
5.5.260.0100.08020.75
5.5.250.0070.04020.57
5.5.240.0000.03320.28
5.4.450.0530.06319.10
5.4.440.1330.06719.60
5.4.430.0830.06019.44
5.4.420.0700.11019.33
5.4.410.0530.06019.51
5.4.400.0900.06718.83
5.4.390.1370.06719.08
5.4.380.0200.05318.57
5.4.370.0300.05718.50
5.4.360.0270.03718.70
5.4.350.0070.03311.97
5.4.340.0080.03911.97
5.4.320.0050.04012.45
5.4.310.0040.04012.45
5.4.300.0060.03612.45
5.4.290.0070.03812.45
5.4.280.0090.03312.34
5.4.270.0060.03712.34
5.4.260.0070.03712.31
5.4.250.0070.03812.33
5.4.240.0060.03912.33
5.4.230.0060.03812.32
5.4.220.0040.04112.32
5.4.210.0050.03512.32
5.4.200.0070.03812.32
5.4.190.0050.03912.31
5.4.180.0020.04112.31
5.4.170.0070.04112.33
5.4.160.0070.03612.32
5.4.150.0050.03612.31
5.4.140.0070.03612.00
5.4.130.0040.04211.98
5.4.120.0050.03811.94
5.4.110.0070.04111.94
5.4.100.0090.03911.94
5.4.90.0080.03911.94
5.4.80.0070.03811.94
5.4.70.0060.03611.94
5.4.60.0080.03411.93
5.4.50.0040.03811.94
5.4.40.0060.03611.93
5.4.30.0090.03411.93
5.4.20.0080.04111.92
5.4.10.0090.04111.92
5.4.00.0070.03911.41
5.3.290.0070.03812.80
5.3.280.0080.03612.71
5.3.270.0070.04912.72
5.3.260.0070.04912.72
5.3.250.0070.04212.72
5.3.240.0090.03712.72
5.3.230.0080.03812.71
5.3.220.0070.03612.68
5.3.210.0070.03712.68
5.3.200.0070.03912.68
5.3.190.0070.04112.67
5.3.180.0080.03612.67
5.3.170.0050.03712.67
5.3.160.0090.03612.67
5.3.150.0070.03912.67
5.3.140.0090.03512.66
5.3.130.0090.04612.66
5.3.120.0060.04612.65
5.3.110.0060.04512.66
5.3.100.0070.03612.12
5.3.90.0070.03612.08
5.3.80.0050.03612.07
5.3.70.0040.03912.07
5.3.60.0050.03612.06
5.3.50.0080.03412.00
5.3.40.0030.03912.00
5.3.30.0060.03511.94
5.3.20.0060.03511.71
5.3.10.0050.03511.67
5.3.00.0080.03811.65

preferences:
41.3 ms | 401 KiB | 5 Q