3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('23' => 23); $b = array('32' => 32); $ret = array_merge($a,$b); print_r($ret); $s = ''; $ret = json_decode($s , true); print_r($ret);

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.0070.00718.18
8.3.50.0180.00318.20
8.3.40.0080.00618.67
8.3.30.0100.00319.14
8.3.20.0030.00520.16
8.3.10.0030.00521.51
8.3.00.0040.00417.63
8.2.180.0040.01118.27
8.2.170.0070.01022.96
8.2.160.0130.00320.38
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0100.00317.48
8.2.110.0070.00321.06
8.2.100.0060.00617.63
8.2.90.0080.00019.17
8.2.80.0040.00417.97
8.2.70.0040.00417.61
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0090.00019.76
8.2.30.0020.00517.85
8.2.20.0040.00417.49
8.2.10.0000.00817.98
8.2.00.0040.00418.26
8.1.280.0100.00725.92
8.1.270.0040.00420.09
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00920.84
8.1.230.0100.00017.64
8.1.220.0020.00517.74
8.1.210.0040.00418.77
8.1.200.0040.00717.23
8.1.190.0040.00417.23
8.1.180.0080.00018.10
8.1.170.0050.00320.38
8.1.160.0040.00422.05
8.1.150.0030.00618.92
8.1.140.0000.00717.38
8.1.130.0030.00317.73
8.1.120.0000.00717.32
8.1.110.0000.00717.28
8.1.100.0030.00517.26
8.1.90.0040.00417.32
8.1.80.0000.00717.29
8.1.70.0070.00017.33
8.1.60.0040.00417.48
8.1.50.0050.00317.48
8.1.40.0030.00517.34
8.1.30.0030.00617.55
8.1.20.0050.00517.54
8.1.10.0020.00517.38
8.1.00.0000.00717.38
8.0.300.0000.00818.77
8.0.290.0030.00616.63
8.0.280.0030.00318.29
8.0.270.0000.00717.12
8.0.260.0030.00317.17
8.0.250.0000.00716.78
8.0.240.0030.00316.94
8.0.230.0030.00516.79
8.0.220.0030.00516.81
8.0.210.0070.00016.82
8.0.200.0030.00316.89
8.0.190.0040.00416.87
8.0.180.0020.00516.73
8.0.170.0090.00016.73
8.0.160.0070.00016.82
8.0.150.0030.00316.73
8.0.140.0000.00716.75
8.0.130.0030.00313.21
8.0.120.0040.00416.83
8.0.110.0000.00716.79
8.0.100.0070.00016.64
8.0.90.0030.00316.77
8.0.80.0100.01016.82
8.0.70.0000.00816.70
8.0.60.0080.00016.79
8.0.50.0040.00416.62
8.0.30.0190.00617.03
8.0.20.0080.01417.40
8.0.10.0040.00416.91
8.0.00.0060.01416.70
7.4.330.0000.00515.09
7.4.320.0060.00316.45
7.4.300.0030.00316.48
7.4.290.0000.00716.33
7.4.280.0040.00416.50
7.4.270.0030.00316.58
7.4.260.0030.00316.56
7.4.250.0040.00416.41
7.4.240.0040.00416.44
7.4.230.0000.00716.34
7.4.220.0110.00716.53
7.4.210.0140.00016.31
7.4.200.0030.00316.53
7.4.160.0120.00316.21
7.4.150.0100.00717.40
7.4.140.0130.00517.86
7.4.130.0090.01016.36
7.4.120.0080.00816.36
7.4.110.0150.00916.40
7.4.100.0110.00716.54
7.4.90.0120.00616.14
7.4.80.0060.01919.39
7.4.70.0130.00316.23
7.4.60.0100.00616.21
7.4.50.0020.00216.11
7.4.40.0070.01116.47
7.4.30.0090.00916.48
7.4.00.0060.00914.91
7.3.330.0040.00412.99
7.3.320.0070.00413.07
7.3.310.0030.00316.13
7.3.300.0060.00016.18
7.3.290.0050.01016.09
7.3.280.0090.00616.15
7.3.270.0030.02217.40
7.3.260.0120.00616.34
7.3.250.0090.00916.39
7.3.240.0070.01716.17
7.3.230.0030.01916.41
7.3.210.0130.00316.27
7.3.200.0120.00619.39
7.3.190.0120.00316.25
7.3.180.0120.00316.05
7.3.170.0070.01016.27
7.3.160.0100.00516.16
7.3.120.0070.01114.60
7.3.110.0060.00914.56
7.3.100.0050.01114.83
7.3.90.0070.00514.64
7.3.80.0030.01014.42
7.3.70.0050.00914.72
7.3.60.0050.00714.74
7.3.50.0080.00614.65
7.3.40.0050.00714.63
7.3.30.0050.00914.74
7.3.20.0050.00816.60
7.3.10.0080.00416.40
7.3.00.0090.00616.38
7.2.330.0110.00716.51
7.2.320.0030.01316.26
7.2.310.0140.00316.36
7.2.300.0140.00316.57
7.2.290.0070.01016.54
7.2.250.0050.01314.94
7.2.240.0090.01114.73
7.2.230.0030.01114.75
7.2.220.0090.00615.08
7.2.210.0070.00814.75
7.2.200.0020.01114.84
7.2.190.0060.00914.86
7.2.180.0040.00814.75
7.2.170.0040.00814.85
7.2.00.0070.00718.87
7.1.330.0060.00915.77
7.1.320.0040.00815.69
7.1.310.0040.01015.78
7.1.300.0080.00615.75
7.1.290.0070.00515.64
7.1.280.0090.00615.57
7.1.270.0050.00815.54
7.1.260.0030.01015.70
7.1.100.0060.00918.19
7.1.70.0030.01417.07
7.1.60.0070.00719.50
7.1.50.0090.00916.99
7.1.00.0070.07322.28
7.0.200.0040.00816.32
7.0.60.0000.06719.97
7.0.50.0000.06017.94
7.0.40.0030.05320.24
7.0.30.0370.07320.20
7.0.20.0270.04320.24
7.0.10.0030.07320.11
7.0.00.0030.04720.14
5.6.280.0070.07021.09
5.6.210.0000.09020.50
5.6.200.0030.09018.20
5.6.190.0100.07320.39
5.6.180.0470.06720.48
5.6.170.0370.03320.56
5.6.160.0200.03020.57
5.6.150.0030.04318.27
5.6.140.0100.06718.28
5.6.130.0100.08318.18
5.6.120.0100.05020.93
5.6.110.0030.04321.07
5.6.100.0070.08321.13
5.6.90.0100.07321.09
5.6.80.0030.08720.50
5.5.350.0100.04320.40
5.5.340.0130.06318.09
5.5.330.0100.06320.25
5.5.320.0300.07720.30
5.5.310.0200.06320.50
5.5.300.0070.08017.95
5.5.290.0100.07017.91
5.5.280.0000.05720.95
5.5.270.0000.07020.95
5.5.260.0130.07020.75
5.5.250.0100.07320.56
5.5.240.0370.06320.18
5.4.450.0900.06319.48
5.4.440.0870.03319.54
5.4.430.0900.06319.54
5.4.420.0200.04719.43
5.4.410.0130.06019.08
5.4.400.0430.07318.80
5.4.390.0430.06318.63
5.4.380.0630.05718.54
5.4.370.0430.05718.80
5.4.360.0330.06318.79
5.4.350.0370.05318.61
5.4.340.0430.05318.69
5.4.320.0430.05318.79
5.4.310.0500.05718.82
5.4.300.0330.06318.49
5.4.290.0330.06018.74
5.4.280.0330.06318.78
5.4.270.1130.07018.76
5.4.260.0430.05018.45
5.4.250.0430.05318.58
5.4.240.0270.06718.54
5.4.230.0270.05718.45
5.4.220.0370.05718.77
5.4.210.0270.06318.48
5.4.200.0470.04716.78
5.4.190.0430.05318.59
5.4.180.0400.05718.80
5.4.170.0400.05718.48
5.4.160.0300.05318.66
5.4.150.0470.07018.77
5.4.140.0130.07716.33
5.4.130.0400.07316.33
5.4.120.0470.06716.19
5.4.110.0300.07316.30
5.4.100.0370.07016.30
5.4.90.0330.06716.43
5.4.80.0500.06316.29
5.4.70.0330.08316.20
5.4.60.1170.06316.18
5.4.50.0600.06716.41
5.4.40.0230.07316.41
5.4.30.0330.05316.19
5.4.20.0400.04716.24
5.4.10.0230.05316.13
5.4.00.0500.05015.78
5.3.290.2600.08014.68
5.3.280.0370.07714.64
5.3.270.0430.07714.63
5.3.260.0500.07714.64
5.3.250.0470.06014.78
5.3.240.0270.05714.65
5.3.230.0330.06014.75
5.3.220.0300.05314.61
5.3.210.0170.06014.55
5.3.200.1900.05714.60
5.3.190.0330.06314.62
5.3.180.0400.05014.66
5.3.170.0370.05714.68
5.3.160.0530.06714.69
5.3.150.0270.06314.53
5.3.140.0330.06014.60
5.3.130.0200.07014.67
5.3.120.0430.06014.67
5.3.110.0430.05314.65
5.3.100.0330.05314.25
5.3.90.0270.06014.11
5.3.80.0330.04714.07
5.3.70.0300.04714.12
5.3.60.0430.06014.07
5.3.50.0270.06014.04
5.3.40.0400.06013.99
5.3.30.0400.05013.95
5.3.20.3400.06313.73
5.3.10.0470.05013.88
5.3.00.0370.07013.75
5.2.170.0330.05311.24
5.2.160.0430.03711.13
5.2.150.0270.05711.24
5.2.140.0370.03311.23
5.2.130.0370.03711.08
5.2.120.0370.05011.22
5.2.110.0370.05011.14
5.2.100.0330.05311.13
5.2.90.0300.05311.10
5.2.80.0270.05711.16
5.2.70.0270.06011.21
5.2.60.0270.05711.12
5.2.50.0270.06011.01
5.2.40.0330.04011.03
5.2.30.0270.06310.99
5.2.20.0230.05311.17
5.2.10.0270.05310.98
5.2.00.0230.05710.81
5.1.60.0470.03310.11
5.1.50.0300.03710.11
5.1.40.0300.04710.00
5.1.30.0170.05310.36
5.1.20.0170.06010.43
5.1.10.0270.05010.18
5.1.00.0430.03010.10
5.0.50.0170.0338.54
5.0.40.0170.0308.47
5.0.30.0070.0538.25
5.0.20.0200.0238.32
5.0.10.0130.0338.25
5.0.00.0200.0408.19
4.4.90.0100.0337.17
4.4.80.0170.0207.17
4.4.70.0070.0277.17
4.4.60.0100.0277.17
4.4.50.0130.0307.17
4.4.40.0230.0377.17
4.4.30.0130.0207.17
4.4.20.0130.0277.17
4.4.10.0170.0237.17
4.4.00.0070.0407.17
4.3.110.0030.0277.17
4.3.100.0030.0237.17
4.3.90.0200.0207.17
4.3.80.0100.0407.17
4.3.70.0130.0207.17
4.3.60.0100.0207.17
4.3.50.0100.0277.17
4.3.40.0100.0407.17
4.3.30.0070.0237.17
4.3.20.0130.0207.17
4.3.10.0100.0307.17
4.3.00.0470.03014.57

preferences:
34.66 ms | 400 KiB | 5 Q