3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = array('jan', 'feb', 'mar', 'apr'); array_push($months,'may'); 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.0120.00618.56
8.3.50.0090.00921.08
8.3.40.0120.00618.53
8.3.30.0040.01418.59
8.3.20.0040.00418.70
8.3.10.0030.00520.59
8.3.00.0040.00421.90
8.2.180.0110.00416.38
8.2.170.0070.00722.96
8.2.160.0100.00320.53
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0030.00619.11
8.2.110.0040.00422.24
8.2.100.0070.00417.54
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.91
8.2.50.0050.00318.07
8.2.40.0080.00418.03
8.2.30.0000.00919.66
8.2.20.0000.00817.64
8.2.10.0050.00217.62
8.2.00.0040.00417.72
8.1.280.0090.00925.92
8.1.270.0050.00223.99
8.1.260.0060.01326.35
8.1.250.0090.00028.09
8.1.240.0080.00022.27
8.1.230.0080.00420.68
8.1.220.0040.00418.77
8.1.210.0000.00818.91
8.1.200.0060.00317.13
8.1.190.0000.00817.41
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0000.00818.73
8.1.150.0000.00818.57
8.1.140.0000.00817.38
8.1.130.0000.00717.88
8.1.120.0000.00717.44
8.1.110.0090.00017.37
8.1.100.0040.00417.40
8.1.90.0040.00417.29
8.1.80.0070.00017.39
8.1.70.0030.00317.32
8.1.60.0000.00717.44
8.1.50.0080.00017.31
8.1.40.0060.00317.41
8.1.30.0040.00417.58
8.1.20.0030.00517.52
8.1.10.0000.00717.44
8.1.00.0000.00717.44
8.0.300.0040.00419.89
8.0.290.0050.00317.18
8.0.280.0070.00018.25
8.0.270.0040.00417.19
8.0.260.0060.00016.66
8.0.250.0100.00016.90
8.0.240.0080.00016.92
8.0.230.0000.00816.88
8.0.220.0020.00516.81
8.0.210.0030.00516.85
8.0.200.0070.00016.95
8.0.190.0030.00316.80
8.0.180.0050.00316.76
8.0.170.0040.00416.74
8.0.160.0050.00316.82
8.0.150.0050.00316.80
8.0.140.0040.00416.72
8.0.130.0060.00313.29
8.0.120.0000.00716.80
8.0.110.0040.00416.69
8.0.100.0050.00216.70
8.0.90.0000.00716.71
8.0.80.0070.00716.89
8.0.70.0040.00416.70
8.0.60.0040.00416.70
8.0.50.0000.00816.86
8.0.30.0130.00616.97
8.0.20.0130.00417.40
8.0.10.0000.00716.75
8.0.00.0080.01116.50
7.4.330.0050.00014.71
7.4.320.0060.00016.52
7.4.300.0030.00316.43
7.4.290.0030.00316.54
7.4.280.0070.00016.54
7.4.270.0000.00716.46
7.4.260.0030.00313.21
7.4.250.0000.00816.45
7.4.240.0000.00716.54
7.4.230.0070.00016.19
7.4.220.0030.02116.57
7.4.210.0070.00716.54
7.4.200.0070.00016.63
7.4.190.0030.00316.68
7.4.160.0060.01016.63
7.4.150.0070.01017.40
7.4.140.0120.00517.86
7.4.130.0130.00516.49
7.4.120.0080.00816.37
7.4.110.0100.00716.35
7.4.100.0070.01116.38
7.4.90.0140.00316.48
7.4.80.0090.00619.37
7.4.70.0110.00916.52
7.4.60.0060.00916.46
7.4.50.0020.00216.47
7.4.40.0070.01122.27
7.4.30.0130.00716.42
7.4.00.0030.01014.79
7.3.330.0050.00012.90
7.3.320.0020.00212.85
7.3.310.0000.00716.10
7.3.300.0030.00316.14
7.3.290.0070.01316.09
7.3.280.0120.00816.09
7.3.270.0070.01117.40
7.3.260.0120.00518.24
7.3.250.0130.00916.30
7.3.240.0120.00416.17
7.3.230.0030.01216.45
7.3.210.0090.00716.25
7.3.200.0090.01419.39
7.3.190.0070.01616.52
7.3.180.0060.01016.44
7.3.170.0100.00716.27
7.3.160.0040.01216.15
7.3.120.0030.01314.55
7.2.330.0090.00916.30
7.2.320.0030.01316.23
7.2.310.0070.01216.57
7.2.300.0100.00616.11
7.2.290.0080.00816.31
7.2.00.0030.01419.31
7.1.200.0080.00515.69
7.1.100.0070.00718.05
7.1.70.0050.00217.16
7.1.60.0100.01319.40
7.1.50.0140.00716.58
7.1.00.0030.07722.37
7.0.200.0200.00714.41
7.0.140.0000.06722.18
7.0.60.0070.03720.03
7.0.50.0100.05717.85
7.0.40.0130.07717.73
7.0.30.0100.07717.79
7.0.20.0030.07717.75
7.0.10.0100.06317.75
7.0.00.0030.04317.70
5.6.280.0100.06721.01
5.6.210.0070.06320.46
5.6.200.0100.07318.16
5.6.190.0070.08018.16
5.6.180.0100.06318.17
5.6.170.0070.06018.16
5.6.160.0130.07018.14
5.6.150.0030.04318.19
5.6.140.0100.05718.11
5.6.130.0170.06018.28
5.6.120.0070.04718.28
5.6.110.0100.08318.18
5.6.100.0070.05318.18
5.6.90.0070.09018.27
5.6.80.0070.05017.54
5.6.70.0100.07717.55
5.6.60.0070.04717.65
5.6.50.0100.07317.65
5.6.40.0100.03717.57
5.6.30.0070.05017.63
5.6.20.0030.05017.62
5.6.10.0130.06717.62
5.6.00.0030.05317.63
5.5.350.0170.07720.34
5.5.340.0100.06017.96
5.5.330.0000.08717.97
5.5.320.0070.04317.98
5.5.310.0030.08718.01
5.5.300.0000.09018.05
5.5.290.0130.07718.04
5.5.280.0030.05018.04
5.5.270.0130.05318.08
5.5.260.0100.08018.07
5.5.250.0030.08317.75
5.5.240.0100.07317.40
5.5.230.0070.07717.42
5.5.220.0070.03717.45
5.5.210.0070.04017.33
5.5.200.0100.06017.43
5.5.190.0070.06717.34
5.5.180.0070.07717.26
5.5.160.0070.03717.43
5.5.150.0030.07317.29
5.5.140.0070.05317.41
5.5.130.0200.06017.40
5.5.120.0070.07717.32
5.5.110.0100.03717.30
5.5.100.0030.08017.21
5.5.90.0000.05317.23
5.5.80.0130.07017.20
5.5.70.0030.05717.25
5.5.60.0100.06017.18
5.5.50.0000.05017.20
5.5.40.0070.03317.22
5.5.30.0100.04017.22
5.5.20.0100.03317.33
5.5.10.0030.03717.26
5.5.00.0000.04017.26
5.4.450.0070.07719.46
5.4.440.0130.06019.42
5.4.430.0030.07319.41
5.4.420.0200.05719.35
5.4.410.0100.06719.22
5.4.400.0130.06719.04
5.4.390.0030.08019.01
5.4.380.0030.04319.03
5.4.370.0170.06719.01
5.4.360.0100.04019.12
5.4.350.0030.08018.95
5.4.340.0100.07319.03
5.4.320.0070.07719.05
5.4.310.0070.07319.05
5.4.300.0030.08019.04
5.4.290.0030.07319.01
5.4.280.0100.07318.95
5.4.270.0000.05019.04
5.4.260.0030.08019.12
5.4.250.0070.07719.04
5.4.240.0030.07319.00
5.4.230.0030.06719.12
5.4.220.0100.07018.88
5.4.210.0100.05319.26
5.4.200.0000.04019.01
5.4.190.0070.03719.12
5.4.180.0030.03719.00
5.4.170.0030.03718.94
5.4.160.0000.04019.09
5.4.150.0030.03718.86
5.4.140.0000.03716.41
5.4.130.0100.03016.32
5.4.120.0100.02716.46
5.4.110.0070.06016.38
5.4.100.0070.05316.58
5.4.90.0000.08316.49
5.4.80.0030.06316.47
5.4.70.0100.03716.27
5.4.60.0000.03716.29
5.4.50.0000.03716.38
5.4.40.0070.03016.45
5.4.30.0030.04016.46
5.4.20.0030.03716.54
5.4.10.0000.04716.44
5.4.00.0030.03315.83
5.3.290.0000.08014.66
5.3.280.0100.07314.44
5.3.270.0070.03314.62
5.3.260.0070.03314.66
5.3.250.0030.03314.63
5.3.240.0070.03314.59
5.3.230.0030.04314.55
5.3.220.0070.03314.55
5.3.210.0170.04014.61
5.3.200.0000.04014.59
5.3.190.0100.05014.59
5.3.180.0130.03314.57
5.3.170.0030.03714.76
5.3.160.0030.03714.58
5.3.150.0030.04014.53
5.3.140.0000.03714.50
5.3.130.0000.04014.57
5.3.120.0070.03314.56
5.3.110.0030.03714.54
5.3.100.0030.03714.04
5.3.90.0030.03314.08
5.3.80.0030.03314.10
5.3.70.0000.04714.05
5.3.60.0000.03714.20
5.3.50.0070.03313.92
5.3.40.0000.04014.00
5.3.30.0070.03013.93
5.3.20.0000.03713.78
5.3.10.0000.03713.71
5.3.00.0000.03713.46
5.2.170.0030.02711.15
5.2.160.0030.02711.04
5.2.150.0000.03011.14
5.2.140.0030.02711.23
5.2.130.0070.02310.98
5.2.120.0030.02711.14
5.2.110.0000.03010.99
5.2.100.0130.02011.18
5.2.90.0030.02711.05
5.2.80.0070.02311.13
5.2.70.0000.03011.18
5.2.60.0000.03011.13
5.2.50.0070.02311.05
5.2.40.0000.03010.98
5.2.30.0000.03010.85
5.2.20.0030.06310.98
5.2.10.0070.04710.91
5.2.00.0070.06010.71
5.1.60.0000.06010.02
5.1.50.0000.02710.13
5.1.40.0100.0509.90
5.1.30.0070.05010.21
5.1.20.0070.02310.24
5.1.10.0070.04710.12
5.1.00.0000.06010.02
5.0.50.0000.0438.37
5.0.40.0070.0378.31
5.0.30.0030.0678.24
5.0.20.0100.0378.24
5.0.10.0000.0508.21
5.0.00.0000.0708.12
4.4.90.0000.0207.82
4.4.80.0030.0137.82
4.4.70.0070.0277.82
4.4.60.0000.0277.82
4.4.50.0030.0337.82
4.4.40.0000.0337.82
4.4.30.0070.0137.82
4.4.20.0000.0177.82
4.4.10.0000.0337.82
4.4.00.0030.0577.82
4.3.110.0030.0377.82
4.3.100.0000.0337.82
4.3.90.0000.0337.82
4.3.80.0000.0577.82
4.3.70.0000.0307.82
4.3.60.0000.0237.82
4.3.50.0000.0307.82
4.3.40.0100.0537.82
4.3.30.0000.0207.82
4.3.20.0000.0277.82
4.3.10.0000.0307.82
4.3.00.0000.0337.82

preferences:
39.39 ms | 401 KiB | 5 Q