3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = range(1, 12); $months = array_map(function ($element) { return str_pad($element, 2, 0, STR_PAD_LEFT); }, $months); $months = array_combine($months, $months); var_dump($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.40.0060.00918.85
8.3.30.0140.00018.92
8.3.20.0070.00020.29
8.3.10.0050.00223.48
8.3.00.0000.00819.08
8.2.170.0090.00622.96
8.2.160.0070.00719.36
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.53
8.2.110.0030.00721.11
8.2.100.0040.00717.72
8.2.90.0040.00417.75
8.2.80.0000.00817.97
8.2.70.0050.00517.93
8.2.60.0000.00818.09
8.2.50.0000.00818.10
8.2.40.0080.00019.02
8.2.30.0040.00419.30
8.2.20.0000.00817.75
8.2.10.0040.00418.00
8.2.00.0040.00417.67
8.1.270.0090.00618.83
8.1.260.0090.00526.35
8.1.250.0070.00028.09
8.1.240.0090.00023.96
8.1.230.0070.00419.11
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0120.00017.35
8.1.190.0040.00417.35
8.1.180.0050.00518.10
8.1.170.0040.00418.61
8.1.160.0050.00318.81
8.1.150.0000.00718.89
8.1.140.0040.00417.42
8.1.130.0070.00017.38
8.1.120.0030.00517.49
8.1.110.0070.00017.46
8.1.100.0000.00717.46
8.1.90.0040.00417.48
8.1.80.0040.00417.39
8.1.70.0000.00817.36
8.1.60.0030.00517.61
8.1.50.0030.00517.46
8.1.40.0030.00717.43
8.1.30.0000.00917.69
8.1.20.0040.00417.57
8.1.10.0040.00417.39
8.1.00.0080.00017.38
8.0.300.0040.00419.73
8.0.290.0080.00316.75
8.0.280.0070.00018.40
8.0.270.0070.00017.20
8.0.260.0030.00316.86
8.0.250.0000.00716.80
8.0.240.0000.00616.83
8.0.230.0040.00416.98
8.0.220.0050.00316.92
8.0.210.0040.00416.88
8.0.200.0000.00616.98
8.0.190.0000.00717.03
8.0.180.0000.00716.97
8.0.170.0060.00316.89
8.0.160.0000.00716.98
8.0.150.0060.00316.99
8.0.140.0000.00816.83
8.0.130.0000.00713.40
8.0.120.0090.00016.84
8.0.110.0000.00716.93
8.0.100.0030.00516.89
8.0.90.0040.00416.81
8.0.80.0060.01316.94
8.0.70.0030.00417.07
8.0.60.0000.00716.79
8.0.50.0000.00716.85
8.0.30.0090.01316.98
8.0.20.0090.01117.40
8.0.10.0000.00816.97
8.0.00.0130.00616.88
7.4.330.0000.00515.05
7.4.320.0050.00216.61
7.4.300.0000.00616.60
7.4.290.0040.00416.50
7.4.280.0080.00416.52
7.4.270.0050.00316.62
7.4.260.0030.00316.64
7.4.250.0050.00316.47
7.4.240.0020.00516.61
7.4.230.0000.00716.61
7.4.220.0260.00016.57
7.4.210.0060.00916.62
7.4.200.0070.00016.32
7.4.160.0040.01116.54
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0080.00916.65
7.4.120.0050.01216.59
7.4.110.0200.00416.38
7.4.100.0060.01016.42
7.4.90.0100.01316.56
7.4.80.0070.01419.39
7.4.70.0150.00716.47
7.4.60.0070.00916.54
7.4.50.0040.00416.64
7.4.40.0130.00516.22
7.4.30.0130.00616.39
7.4.10.0070.01115.02
7.4.00.0070.01014.96
7.3.330.0000.00713.38
7.3.320.0000.00513.14
7.3.310.0040.00416.34
7.3.300.0020.00516.25
7.3.290.0100.00616.33
7.3.280.0120.00816.28
7.3.270.0090.00917.40
7.3.260.0030.01916.62
7.3.250.0160.00716.53
7.3.240.0070.01116.24
7.3.230.0170.00716.39
7.3.210.0150.00516.64
7.3.200.0120.00619.39
7.3.190.0100.00716.44
7.3.180.0030.01216.22
7.3.170.0130.00416.39
7.3.160.0070.01116.39
7.3.130.0090.01014.79
7.3.120.0100.00714.75
7.3.110.0070.01014.78
7.3.100.0080.00814.74
7.3.90.0060.01014.74
7.3.80.0080.00414.72
7.3.70.0020.00914.75
7.3.60.0040.00914.54
7.3.50.0080.00614.83
7.3.40.0060.01114.74
7.3.30.0080.00514.76
7.3.20.0040.00916.58
7.3.10.0050.00716.68
7.3.00.0030.00916.59
7.2.330.0060.01416.50
7.2.320.0090.00916.57
7.2.310.0090.00616.64
7.2.300.0050.01116.43
7.2.290.0080.00816.67
7.2.260.0080.01114.97
7.2.250.0090.01014.83
7.2.240.0050.01014.92
7.2.230.0080.00714.87
7.2.220.0060.00915.07
7.2.210.0060.00914.94
7.2.200.0050.00514.93
7.2.190.0030.01114.81
7.2.180.0080.00814.95
7.2.170.0020.01214.99
7.2.160.0050.00914.74
7.2.150.0060.01116.86
7.2.140.0040.01016.78
7.2.130.0050.01016.79
7.2.120.0080.00616.89
7.2.110.0070.00716.72
7.2.100.0060.00716.76
7.2.90.0030.01316.79
7.2.80.0070.00616.99
7.2.70.0100.00416.91
7.2.60.0060.01016.84
7.2.50.0040.00916.77
7.2.40.0060.01016.67
7.2.30.0080.00716.98
7.2.20.0040.00716.82
7.2.10.0070.00616.84
7.2.00.0060.00817.24
7.1.330.0040.01115.72
7.1.320.0040.00815.60
7.1.310.0060.00715.43
7.1.300.0050.00815.83
7.1.290.0040.01215.74
7.1.280.0020.01315.76
7.1.270.0060.00515.65
7.1.260.0050.00715.65
7.1.250.0040.00815.75
7.1.240.0020.01015.70
7.1.230.0040.00815.66
7.1.220.0080.00615.76
7.1.210.0070.00615.73
7.1.200.0070.00415.65
7.1.190.0040.00815.75
7.1.180.0060.00615.63
7.1.170.0030.00915.58
7.1.160.0030.01315.68
7.1.150.0040.01015.65
7.1.140.0040.01115.82
7.1.130.0060.00415.74
7.1.120.0050.00615.67
7.1.110.0050.00715.76
7.1.100.0040.00716.28
7.1.90.0070.00415.77
7.1.80.0040.00615.75
7.1.70.0040.00616.00
7.1.60.0040.01016.62
7.1.50.0060.00815.93
7.1.40.0090.00515.66
7.1.30.0010.01115.65
7.1.20.0060.00515.63
7.1.10.0040.01115.61
7.1.00.0050.02617.43
7.0.330.0080.00715.43
7.0.320.0070.00315.37
7.0.310.0030.00815.32
7.0.300.0020.00915.42
7.0.290.0040.00815.31
7.0.280.0050.00715.20
7.0.270.0040.00815.33
7.0.260.0050.00715.30
7.0.250.0050.00715.34
7.0.240.0060.00315.28
7.0.230.0030.00615.38
7.0.220.0080.00515.34
7.0.210.0050.00715.36
7.0.200.0040.00715.63
7.0.190.0050.00915.24
7.0.180.0070.00615.33
7.0.170.0070.00515.34
7.0.160.0040.00715.33
7.0.150.0030.00915.38
7.0.140.0060.01417.00
7.0.130.0040.00815.28
7.0.120.0060.00715.36
7.0.110.0020.00815.36
7.0.100.0060.00615.26
7.0.90.0060.00515.28
7.0.80.0070.00615.26
7.0.70.0060.00815.17
7.0.60.0060.01816.43
7.0.50.0070.02316.00
7.0.40.0050.01815.13
7.0.30.0150.02015.04
7.0.20.0060.01815.15
7.0.10.0060.02815.05
7.0.00.0040.01815.02
5.6.400.0050.00814.24
5.6.390.0050.01014.24
5.6.380.0070.00614.52
5.6.370.0060.00814.21
5.6.360.0060.00914.38
5.6.350.0070.00514.26
5.6.340.0080.00514.08
5.6.330.0060.00914.18
5.6.320.0050.00914.04
5.6.310.0060.00914.27
5.6.300.0060.00814.37
5.6.290.0040.00914.16
5.6.280.0070.02015.85
5.6.270.0070.00614.26
5.6.260.0020.00814.13
5.6.250.0070.00714.30
5.6.240.0050.00814.30
5.6.230.0080.00414.14
5.6.220.0070.00314.23
5.6.210.0120.01815.76
5.6.200.0070.02215.19
5.6.190.0060.01615.90
5.6.180.0140.02215.77
5.6.170.0100.02515.73
5.6.160.0040.02215.89
5.6.150.0070.02215.08
5.6.140.0070.02315.11
5.6.130.0050.01915.23
5.6.120.0060.02615.87
5.6.110.0080.02515.87
5.6.100.0080.02515.98
5.6.90.0100.02215.94
5.6.80.0040.02715.74
5.6.70.0140.02215.67
5.6.60.0050.00714.08
5.6.50.0070.00314.06
5.6.40.0060.00614.19
5.6.30.0060.00914.08
5.6.20.0060.00614.02
5.6.10.0070.00514.16
5.6.00.0070.00614.11
5.5.380.0070.00414.04
5.5.370.0060.00814.16
5.5.360.0030.01114.25
5.5.350.0030.02115.71
5.5.340.0060.02515.35
5.5.330.0060.02715.62
5.5.320.0070.01815.67
5.5.310.0140.02315.60
5.5.300.0050.02715.13
5.5.290.0060.02215.04
5.5.280.0050.01815.80
5.5.270.0050.02815.66
5.5.260.0070.02515.81
5.5.250.0060.02315.74
5.5.240.0060.02515.58
5.5.230.0080.00614.04
5.5.220.0050.00714.05
5.5.210.0080.00614.13
5.5.200.0060.00614.22
5.5.190.0090.00514.06
5.5.180.0040.00814.18
5.5.170.0060.00814.12
5.5.160.0080.00514.19
5.5.150.0030.00914.07
5.5.140.0070.00713.86
5.5.130.0060.00614.11
5.5.120.0050.00713.85
5.5.110.0030.01114.15
5.5.100.0080.00413.93
5.5.90.0040.00714.09
5.5.80.0040.00714.06
5.5.70.0030.00914.13
5.5.60.0080.00914.16
5.5.50.0060.00714.07
5.5.40.0030.01014.14
5.5.30.0090.00614.04
5.5.20.0020.00914.00
5.5.10.0050.01014.02
5.5.00.0060.00714.02
5.4.450.0240.01613.47
5.4.440.0230.02113.43
5.4.430.0250.01713.49
5.4.420.0240.01613.47
5.4.410.0320.02113.40
5.4.400.0260.01613.37
5.4.390.0240.01913.40
5.4.380.0110.02413.19
5.4.370.0080.02613.22
5.4.360.0110.02113.27
5.4.350.0110.02213.23
5.4.340.0110.02213.27
5.4.330.0030.00711.41
5.4.320.0100.02313.17
5.4.310.0120.01813.25
5.4.300.0120.02113.32
5.4.290.0120.02313.27
5.4.280.0130.02313.14
5.4.270.0080.02413.25
5.4.260.0110.02113.18
5.4.250.0090.02313.17
5.4.240.0120.02013.30
5.4.230.0100.02013.18
5.4.220.0130.01613.23
5.4.210.0100.01913.33
5.4.200.0050.02212.71
5.4.190.0140.02013.16
5.4.180.0090.01913.18
5.4.170.0140.01913.22
5.4.160.0080.02413.19
5.4.150.0100.01913.26
5.4.140.0090.02312.65
5.4.130.0070.02112.62
5.4.120.0110.01812.73
5.4.110.0030.02612.71
5.4.100.0060.02312.57
5.4.90.0120.01912.68
5.4.80.0080.02012.59
5.4.70.0120.01412.61
5.4.60.0110.01812.66
5.4.50.0090.01912.65
5.4.40.0080.02512.65
5.4.30.0160.01212.64
5.4.20.0100.02112.67
5.4.10.0090.02112.68
5.4.00.0110.02012.50
5.3.290.0300.07314.71
5.3.280.0270.05014.59
5.3.270.0300.07014.74
5.3.260.0200.06014.66
5.3.250.0370.06714.64
5.3.240.0370.06314.66
5.3.230.0330.07014.64
5.3.220.0130.08714.63
5.3.210.0200.08314.51
5.3.200.0170.06014.56
5.3.190.0200.05314.75
5.3.180.0270.06014.73
5.3.170.0230.07314.76
5.3.160.0230.06014.60
5.3.150.0400.04314.61
5.3.140.0300.07314.60
5.3.130.0230.08014.75
5.3.120.0130.07714.73
5.3.110.0330.07014.59
5.3.100.0470.07014.02
5.3.90.0300.04314.15
5.3.80.0270.07014.01
5.3.70.0230.05714.16
5.3.60.0370.06314.02
5.3.50.0430.05713.96
5.3.40.0370.06313.97
5.3.30.0200.07713.96
5.3.20.0370.06013.82
5.3.10.0330.06713.70
5.3.00.0230.07013.86
5.2.170.0130.05711.18
5.2.160.0070.05311.06
5.2.150.0170.06011.14
5.2.140.0370.04011.19
5.2.130.0170.05311.07
5.2.120.0330.03311.11
5.2.110.0130.04311.13
5.2.100.0230.05711.16
5.2.90.0300.05011.07
5.2.80.0130.06711.08
5.2.70.0170.06711.08
5.2.60.0300.05711.00
5.2.50.0370.04011.19
5.2.40.0100.05310.91
5.2.30.0130.04310.88
5.2.20.0170.04710.89
5.2.10.0230.04010.84
5.2.00.0100.06710.72
5.1.60.0170.04710.01
5.1.50.0200.04310.09
5.1.40.0230.04310.10
5.1.30.0230.04710.35
5.1.20.0270.04310.40
5.1.10.0230.04710.04
5.1.00.0230.04310.06
5.0.50.0070.0478.57
5.0.40.0100.0438.40
5.0.30.0030.0508.36
5.0.20.0130.0338.33
5.0.10.0130.0408.36
5.0.00.0200.0478.24
4.4.90.0030.0405.90
4.4.80.0070.0335.89
4.4.70.0100.0335.91
4.4.60.0100.0305.88
4.4.50.0100.0305.86
4.4.40.0030.0505.86
4.4.30.0130.0275.89
4.4.20.0130.0275.95
4.4.10.0070.0335.96
4.4.00.0100.0435.91
4.3.110.0070.0335.83
4.3.100.0200.0205.88
4.3.90.0070.0305.80
4.3.80.0070.0475.80
4.3.70.0100.0275.78
4.3.60.0070.0305.76
4.3.50.0070.0335.89
4.3.40.0130.0405.84
4.3.30.0000.0274.96
4.3.20.0030.0234.96
4.3.10.0000.0274.96
4.3.00.0130.0277.57

preferences:
51.73 ms | 400 KiB | 5 Q