3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"1":1,"b":2,"c":3,"d":4,"e":5}'; var_dump(json_decode($json)); var_dump(json_decode($json, true)); count(var_dump($json)); unset($json); ?>

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.70.0000.01518.23
8.3.60.0070.00716.88
8.3.50.0040.01621.04
8.3.40.0140.00418.77
8.3.30.0110.00418.71
8.3.20.0040.00420.31
8.3.10.0040.00423.48
8.3.00.0040.00422.22
8.2.180.0100.01016.75
8.2.170.0040.01122.96
8.2.160.0070.00722.30
8.2.150.0040.00424.18
8.2.140.0070.01324.66
8.2.130.0050.00326.16
8.2.120.0000.01017.63
8.2.110.0060.00321.07
8.2.100.0090.00317.72
8.2.90.0060.00317.88
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0000.01021.18
8.2.30.0050.00319.90
8.2.20.0040.00417.67
8.2.10.0000.00718.11
8.2.00.0000.00918.09
8.1.280.0090.00625.92
8.1.270.0060.00320.34
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00322.23
8.1.230.0040.00721.04
8.1.220.0000.00817.91
8.1.210.0080.00018.77
8.1.200.0030.00617.48
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0040.00718.53
8.1.160.0050.00323.75
8.1.150.0000.00818.92
8.1.140.0040.00417.44
8.1.130.0070.00017.69
8.1.120.0040.00417.47
8.1.110.0040.00417.35
8.1.100.0000.00717.51
8.1.90.0000.00817.37
8.1.80.0040.00417.39
8.1.70.0000.00717.46
8.1.60.0080.00417.58
8.1.50.0030.00617.37
8.1.40.0040.00417.33
8.1.30.0000.00817.57
8.1.20.0050.00317.66
8.1.10.0040.00417.54
8.1.00.0040.00417.60
8.0.300.0040.00420.07
8.0.290.0040.00416.75
8.0.280.0030.00318.29
8.0.270.0000.00717.09
8.0.260.0030.00517.17
8.0.250.0070.00016.99
8.0.240.0000.00716.83
8.0.230.0070.00016.81
8.0.220.0000.00716.91
8.0.210.0070.00016.85
8.0.200.0030.00316.85
8.0.190.0000.00917.05
8.0.180.0080.00016.95
8.0.170.0000.00817.01
8.0.160.0070.00016.91
8.0.150.0000.01116.98
8.0.140.0040.00416.86
8.0.130.0060.00013.37
8.0.120.0070.00016.91
8.0.110.0000.00717.01
8.0.100.0030.00516.74
8.0.90.0050.00317.06
8.0.80.0100.00616.86
8.0.70.0040.00416.89
8.0.60.0020.00516.98
8.0.50.0000.00716.81
8.0.30.0120.00717.10
8.0.20.0110.00917.40
8.0.10.0070.00017.07
8.0.00.0110.00616.81
7.4.330.0000.00515.18
7.4.320.0040.00416.54
7.4.300.0000.00616.60
7.4.290.0030.00316.45
7.4.280.0040.00416.59
7.4.270.0000.00716.45
7.4.260.0000.00716.59
7.4.250.0070.00016.44
7.4.240.0020.00516.57
7.4.230.0000.00716.33
7.4.220.0090.00716.45
7.4.210.0140.00016.61
7.4.200.0030.00316.34
7.4.160.0100.00716.70
7.4.150.0110.01217.40
7.4.140.0160.00817.86
7.4.130.0160.00116.58
7.4.120.0060.01416.60
7.4.110.0080.01116.48
7.4.100.0090.00916.59
7.4.90.0040.01516.56
7.4.80.0030.01619.39
7.4.70.0110.00716.52
7.4.60.0070.01016.62
7.4.50.0030.00616.57
7.4.40.0150.00316.54
7.4.30.0120.00816.48
7.4.00.0080.00815.11
7.3.330.0040.00313.20
7.3.320.0030.00313.05
7.3.310.0040.00216.31
7.3.300.0050.00216.25
7.3.290.0060.01016.27
7.3.280.0090.01016.24
7.3.270.0090.00917.40
7.3.260.0150.00316.16
7.3.250.0100.00816.27
7.3.240.0000.01716.28
7.3.230.0180.00016.39
7.3.210.0150.00416.56
7.3.200.0100.00716.39
7.3.190.0090.00916.56
7.3.180.0120.00416.44
7.3.170.0080.00816.29
7.3.160.0040.01516.42
7.3.120.0060.00614.74
7.3.110.0100.00314.64
7.3.100.0040.00714.93
7.3.90.0070.01014.64
7.3.80.0070.00714.71
7.3.70.0070.00714.62
7.3.60.0100.00314.81
7.3.50.0060.00914.57
7.3.40.0080.00414.52
7.3.30.0060.00614.52
7.3.20.0030.01316.79
7.3.10.0090.00616.70
7.3.00.0110.00416.43
7.2.330.0110.00716.65
7.2.320.0130.00316.56
7.2.310.0140.01016.27
7.2.300.0110.00516.53
7.2.290.0110.00516.57
7.2.240.0060.00915.04
7.2.230.0080.00814.96
7.2.220.0050.00514.90
7.2.210.0060.00615.12
7.2.200.0140.00315.03
7.2.190.0140.00014.77
7.2.180.0060.00915.00
7.2.170.0080.00814.83
7.2.160.0070.00714.54
7.2.150.0030.00916.86
7.2.140.0100.00716.47
7.2.130.0090.00316.87
7.2.120.0060.01216.98
7.2.110.0040.00816.51
7.2.100.0030.01016.92
7.2.90.0040.01516.87
7.2.80.0040.01116.45
7.2.70.0000.01816.67
7.2.60.0030.01016.78
7.2.50.0000.01316.85
7.2.40.0030.01216.68
7.2.30.0030.01116.85
7.2.20.0060.00916.99
7.2.10.0080.00416.96
7.2.00.0160.00918.05
7.1.330.0000.00915.77
7.1.320.0050.00815.65
7.1.310.0070.00715.49
7.1.300.0120.00315.54
7.1.290.0040.00815.87
7.1.280.0090.00615.50
7.1.270.0100.00715.71
7.1.260.0070.00315.50
7.1.250.0060.01015.91
7.1.200.0040.01115.80
7.1.100.0120.00617.88
7.1.70.0000.01417.10
7.1.60.0100.01619.18
7.1.50.0080.00616.89
7.1.00.0030.07722.31
7.0.200.0170.00316.42
7.0.60.0130.05719.96
7.0.50.0070.08317.80
7.0.40.0000.06320.23
7.0.30.0230.07720.02
7.0.20.0370.05320.20
7.0.10.0030.09320.04
7.0.00.0000.09020.11
5.6.280.0030.06021.11
5.6.210.0000.09020.47
5.6.200.0100.04018.22
5.6.190.0170.08020.60
5.6.180.0100.06720.57
5.6.170.0270.06320.48
5.6.160.0070.08720.44
5.6.150.0070.07718.19
5.6.140.0100.06318.11
5.6.130.0070.05318.14
5.6.120.0100.09021.01
5.6.110.0000.09320.98
5.6.100.0070.04321.09
5.6.90.0100.05720.99
5.6.80.0000.04320.37
5.5.350.0070.07320.42
5.5.340.0100.08017.98
5.5.330.0070.08320.43
5.5.320.0270.06320.46
5.5.310.0230.04320.33
5.5.300.0070.04717.98
5.5.290.0000.08717.96
5.5.280.0100.08020.73
5.5.270.0030.09020.66
5.5.260.0000.04720.75
5.5.250.0170.05320.68
5.5.240.3130.03720.34
5.4.450.0700.05719.13
5.4.440.0770.05019.51
5.4.430.0670.05719.29
5.4.420.0730.05019.51
5.4.410.0600.06019.01
5.4.400.0670.05718.99
5.4.390.0700.07019.14
5.4.380.0700.04718.77
5.4.370.0730.05319.30
5.4.360.0700.05718.92
5.4.350.0570.05719.30
5.4.340.0700.05018.94
5.4.320.0700.04718.91
5.4.310.0600.05718.80
5.4.300.0700.04718.77
5.4.290.0600.05319.14
5.4.280.0670.07018.93
5.4.270.0670.04719.18
5.4.260.0600.05319.18
5.4.250.0670.05019.14
5.4.240.0630.05319.15
5.4.230.0900.04318.77
5.4.220.0570.06018.80
5.4.210.0700.04719.28
5.4.200.0800.04716.75
5.4.190.0530.06318.86
5.4.180.0670.05319.12
5.4.170.0630.05719.06
5.4.160.0670.05019.16
5.4.150.0770.05719.07
5.4.140.0870.05316.31
5.4.130.0670.06016.49
5.4.120.0630.05016.25
5.4.110.0730.04016.43
5.4.100.0630.05316.38
5.4.90.0730.04716.25
5.4.80.0770.05716.27
5.4.70.0830.05316.23
5.4.60.0770.05316.35
5.4.50.0830.04716.36
5.4.40.0770.03716.29
5.4.30.0630.05016.56
5.4.20.0670.05016.17
5.4.10.0600.05316.35
5.4.00.0730.04715.77
5.3.290.0700.06314.51
5.3.280.0770.04314.54
5.3.270.0770.05014.49
5.3.260.0700.05014.46
5.3.250.0700.04314.55
5.3.240.0700.05014.54
5.3.230.0530.06314.59
5.3.220.0730.05014.55
5.3.210.0800.05314.40
5.3.200.0770.05014.53
5.3.190.0700.06014.40
5.3.180.0830.04014.41
5.3.170.0700.05714.55
5.3.160.0770.05014.41
5.3.150.0770.05014.44
5.3.140.0600.06014.49
5.3.130.0600.06014.56
5.3.120.0770.05014.43
5.3.110.0730.05714.43
5.3.100.0800.04713.99
5.3.90.0730.05014.00
5.3.80.0630.05013.89
5.3.70.0830.04313.85
5.3.60.0730.05713.94
5.3.50.0800.05313.96
5.3.40.0800.05713.96
5.3.30.0700.05313.71
5.3.20.0730.05013.64
5.3.10.0600.06013.59
5.3.00.0770.04713.52
5.2.170.0730.03311.16
5.2.160.0670.04011.16
5.2.150.0730.03711.18
5.2.140.0670.06010.99
5.2.130.0770.03010.95
5.2.120.0630.03710.99
5.2.110.0700.04710.95
5.2.100.0730.03711.18
5.2.90.0630.04011.04
5.2.80.0630.04011.03
5.2.70.0670.04010.96
5.2.60.0700.03710.98
5.2.50.0600.03311.06
5.2.40.0400.04310.93
5.2.30.0430.04010.76
5.2.20.0500.03310.81
5.2.10.0400.04010.72
5.2.00.0400.04310.62
5.1.60.0400.0509.85
5.1.50.0430.0339.96
5.1.40.0430.0339.86
5.1.30.0530.03010.21
5.1.20.0400.04010.29
5.1.10.0500.03010.11
5.1.00.0400.04010.11
5.0.50.0230.0378.43
5.0.40.0230.0278.49
5.0.30.0200.0438.20
5.0.20.0300.0308.14
5.0.10.0230.0278.31
5.0.00.0170.0478.12
4.4.90.0230.0277.80
4.4.80.0300.0137.80
4.4.70.0230.0207.80
4.4.60.0230.0207.80
4.4.50.0230.0207.80
4.4.40.0200.0377.80
4.4.30.0230.0237.80
4.4.20.0270.0177.80
4.4.10.0230.0207.80
4.4.00.0270.0277.80
4.3.110.0230.0237.80
4.3.100.0330.0237.80
4.3.90.0200.0237.80
4.3.80.0170.0407.80
4.3.70.0230.0207.80
4.3.60.0230.0177.80
4.3.50.0230.0207.80
4.3.40.0270.0337.80
4.3.30.0130.0207.80
4.3.20.0100.0277.80
4.3.10.0100.0237.80
4.3.00.0100.0237.11

preferences:
58.94 ms | 401 KiB | 5 Q