3v4l.org

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

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.0100.00718.19
8.3.50.0140.00719.82
8.3.40.0060.00818.42
8.3.30.0040.01118.46
8.3.20.0070.00021.77
8.3.10.0040.00421.69
8.3.00.0040.00420.77
8.2.180.0070.01018.26
8.2.170.0060.00922.96
8.2.160.0130.00020.43
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00419.64
8.2.120.0040.00426.35
8.2.110.0090.00022.25
8.2.100.0120.00017.59
8.2.90.0050.00317.72
8.2.80.0040.00417.97
8.2.70.0040.00417.65
8.2.60.0000.00718.03
8.2.50.0000.00818.10
8.2.40.0030.00622.32
8.2.30.0040.00419.06
8.2.20.0000.00717.98
8.2.10.0040.00418.00
8.2.00.0000.00717.66
8.1.280.0120.00325.92
8.1.270.0040.00420.34
8.1.260.0030.00526.35
8.1.250.0030.00528.09
8.1.240.0070.00423.88
8.1.230.0060.00622.68
8.1.220.0040.00717.74
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0090.00018.53
8.1.160.0070.00018.72
8.1.150.0040.00420.17
8.1.140.0030.00519.54
8.1.130.0030.00318.91
8.1.120.0000.00717.24
8.1.110.0000.00717.35
8.1.100.0040.00417.40
8.1.90.0000.00817.30
8.1.80.0000.00717.30
8.1.70.0030.00317.43
8.1.60.0000.00917.49
8.1.50.0080.00017.48
8.1.40.0030.00617.49
8.1.30.0030.00617.62
8.1.20.0080.00017.43
8.1.10.0040.00417.37
8.1.00.0050.00317.23
8.0.300.0000.00719.60
8.0.290.0050.00316.63
8.0.280.0000.00818.29
8.0.270.0000.00917.09
8.0.260.0000.00617.14
8.0.250.0000.00716.82
8.0.240.0000.00816.75
8.0.230.0050.00216.87
8.0.220.0000.00716.71
8.0.210.0000.00716.75
8.0.200.0000.00616.93
8.0.190.0050.00216.80
8.0.180.0000.01216.74
8.0.170.0040.00416.85
8.0.160.0040.00416.74
8.0.150.0030.00516.79
8.0.140.0040.00316.78
8.0.130.0000.00513.20
8.0.120.0000.00716.82
8.0.110.0000.00816.80
8.0.100.0070.00016.70
8.0.90.0040.00416.88
8.0.80.0070.00716.79
8.0.70.0040.00416.87
8.0.60.0040.00316.61
8.0.50.0040.00416.69
8.0.30.0120.00716.87
8.0.20.0150.00517.40
8.0.10.0040.00416.79
8.0.00.0100.00716.56
7.4.330.0000.00615.55
7.4.320.0000.00616.57
7.4.300.0030.00316.57
7.4.290.0040.00416.42
7.4.280.0070.00016.33
7.4.270.0070.00016.34
7.4.260.0000.00816.45
7.4.250.0000.00816.41
7.4.240.0070.00016.44
7.4.230.0000.00716.24
7.4.220.0070.02016.35
7.4.210.0060.00916.41
7.4.200.0000.00716.58
7.4.160.0100.01016.47
7.4.150.0040.01417.40
7.4.140.0120.00517.86
7.4.130.0130.00616.37
7.4.120.0090.00816.41
7.4.110.0150.00616.48
7.4.100.0070.01116.27
7.4.90.0070.01016.31
7.4.80.0130.00319.39
7.4.70.0080.00916.27
7.4.60.0060.01016.23
7.4.50.0040.01116.13
7.4.40.0120.01116.58
7.4.30.0000.01816.27
7.4.10.0040.01414.95
7.4.00.0030.01214.64
7.3.330.0030.00313.00
7.3.320.0030.00312.93
7.3.310.0030.00316.27
7.3.300.0070.00016.15
7.3.290.0070.00716.10
7.3.280.0090.01016.11
7.3.270.0150.00517.40
7.3.260.0100.01216.43
7.3.250.0080.01016.27
7.3.240.0070.01516.13
7.3.230.0100.00716.30
7.3.210.0060.01016.44
7.3.200.0090.00919.39
7.3.190.0200.00016.32
7.3.180.0100.00616.23
7.3.170.0150.00016.19
7.3.160.0170.00016.38
7.3.130.0100.00714.45
7.3.120.0140.00714.68
7.3.110.0030.01514.62
7.3.100.0060.00914.67
7.3.90.0100.00314.43
7.3.80.0070.00314.70
7.3.70.0070.00714.62
7.3.60.0160.00014.80
7.3.50.0100.00714.45
7.3.40.0040.00414.60
7.3.30.0080.00014.65
7.3.20.0040.01216.41
7.3.10.0090.00316.46
7.3.00.0100.00216.56
7.2.330.0120.00616.51
7.2.320.0150.00316.34
7.2.310.0070.01016.45
7.2.300.0150.00316.20
7.2.290.0110.00716.43
7.2.260.0090.00614.63
7.2.250.0070.01014.80
7.2.240.0030.01214.52
7.2.230.0000.01814.90
7.2.220.0000.01415.04
7.2.210.0030.01014.73
7.2.200.0030.01314.78
7.2.190.0040.01514.75
7.2.180.0000.01414.55
7.2.170.0000.01514.96
7.2.160.0120.00414.92
7.2.150.0130.00016.95
7.2.140.0000.00916.75
7.2.130.0040.00816.57
7.2.120.0100.00716.64
7.2.110.0060.00616.70
7.2.100.0050.00516.36
7.2.90.0030.00716.71
7.2.80.0030.00916.77
7.2.70.0040.01416.91
7.2.60.0030.01416.32
7.2.50.0040.00916.79
7.2.40.0040.01216.45
7.2.30.0030.00616.72
7.2.20.0040.00816.36
7.2.10.0060.00916.76
7.2.00.0030.00916.51
7.1.330.0030.00915.90
7.1.320.0120.00615.92
7.1.310.0040.00715.84
7.1.300.0030.01315.52
7.1.290.0040.00715.54
7.1.280.0030.01015.93
7.1.270.0080.00415.97
7.1.260.0060.01215.88
7.1.250.0040.01115.68
7.1.240.0070.01015.52
7.1.230.0030.00915.80
7.1.220.0070.00715.74
7.1.210.0030.00715.71
7.1.200.0000.00815.54
7.1.190.0000.01515.64
7.1.180.0050.00515.68
7.1.170.0030.00615.45
7.1.160.0070.00715.76
7.1.150.0090.00615.73
7.1.140.0000.01515.89
7.1.130.0080.00815.63
7.1.120.0040.01115.79
7.1.110.0060.00315.68
7.1.100.0100.00615.58
7.1.90.0040.01115.53
7.1.80.0060.01015.68
7.1.70.0000.01116.40
7.1.60.0050.00716.43
7.1.50.0000.01415.82
7.1.40.0060.00915.50
7.1.30.0000.01115.64
7.1.20.0000.01115.52
7.1.10.0170.03217.88
7.1.00.0180.04218.15
7.0.330.0100.00615.38
7.0.320.0030.01015.52
7.0.310.0030.01015.34
7.0.300.0030.01015.23
7.0.290.0040.00815.26
7.0.280.0050.00515.37
7.0.270.0060.00615.41
7.0.260.0030.01015.26
7.0.250.0070.00715.35
7.0.240.0040.01115.55
7.0.230.0030.01015.28
7.0.220.0110.00415.30
7.0.210.0100.00315.25
7.0.200.0030.01016.11
7.0.190.0000.01715.23
7.0.180.0040.01115.35
7.0.170.0060.00915.23
7.0.160.0070.00715.13
7.0.150.0130.03717.69
7.0.140.0170.03417.68
7.0.130.0160.03217.74
7.0.120.0170.02917.82
7.0.110.0170.04417.76
7.0.100.0130.04917.78
7.0.90.0120.04817.59
7.0.80.0160.04217.73
7.0.70.0170.03417.62
7.0.60.0120.03417.67
7.0.50.0200.04017.65
7.0.40.0080.03316.78
7.0.30.0130.03016.59
7.0.20.0200.04416.57
7.0.10.0140.03016.77
7.0.00.0140.03316.78
5.6.400.0070.00714.25
5.6.390.0060.00914.42
5.6.380.0100.00314.31
5.6.370.0060.00914.22
5.6.360.0040.00813.91
5.6.350.0100.00314.31
5.6.340.0060.00313.95
5.6.330.0070.00314.14
5.6.320.0030.00713.86
5.6.310.0060.00614.45
5.6.300.0100.00314.12
5.6.290.0030.01713.98
5.6.280.0060.00613.87
5.6.270.0040.01214.40
5.6.260.0040.00714.05
5.6.250.0030.01014.14
5.6.240.0060.00314.29
5.6.230.0000.01614.33
5.6.220.0070.00714.18
5.6.210.0090.00014.03
5.6.200.0060.00914.30
5.6.190.0130.00314.25
5.6.180.0030.00614.34
5.6.170.0000.00813.92
5.6.160.0090.00014.11
5.6.150.0060.00913.80
5.6.140.0060.00314.44
5.6.130.0090.00313.93
5.6.120.0090.00614.10
5.6.110.0030.01314.13
5.6.100.0150.00314.12
5.6.90.0100.00314.09
5.6.80.0060.00614.23
5.6.70.0040.00414.10
5.6.60.0030.00614.16
5.6.50.0060.00614.27
5.6.40.0060.00614.05
5.6.30.0120.00314.19
5.6.20.0100.00714.17
5.6.10.0120.00314.36
5.6.00.0120.00014.18

preferences:
59.98 ms | 401 KiB | 5 Q