3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{ "files": [ { "fileUri": "/dictionaries/sample_en.json", "fileType": "json", }, ] }'; $result = json_decode($string); // Result: object(stdClass)#1 (2) { ["foo"]=> string(3) "bar" ["cool"]=> string(4) "attr" } var_dump($result);

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.0110.00418.71
8.3.30.0130.00018.92
8.3.20.0040.00420.21
8.3.10.0080.00023.66
8.3.00.0040.00420.81
8.2.170.0110.00722.96
8.2.160.0120.00320.47
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00020.73
8.2.110.0030.00622.18
8.2.100.0060.00619.30
8.2.90.0040.00419.22
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0040.00817.79
8.2.50.0000.00918.07
8.2.40.0030.00619.51
8.2.30.0040.00418.13
8.2.20.0080.00017.69
8.2.10.0030.00617.97
8.2.00.0000.00717.55
8.1.270.0040.01123.88
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.94
8.1.230.0100.00319.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.22
8.1.190.0080.00017.23
8.1.180.0000.00718.10
8.1.170.0050.00318.57
8.1.160.0050.00221.93
8.1.150.0000.00718.53
8.1.140.0040.00417.38
8.1.130.0050.00317.77
8.1.120.0000.00717.30
8.1.110.0080.00017.24
8.1.100.0070.00017.38
8.1.90.0050.00217.34
8.1.80.0000.00717.28
8.1.70.0070.00017.41
8.1.60.0060.00617.48
8.1.50.0040.00417.39
8.1.40.0050.00317.51
8.1.30.0040.00417.52
8.1.20.0070.00017.52
8.1.10.0040.00417.50
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0040.00417.18
8.0.280.0030.00318.30
8.0.270.0040.00417.24
8.0.260.0080.00017.22
8.0.250.0070.00016.86
8.0.240.0030.00316.91
8.0.230.0000.00816.91
8.0.220.0030.00316.71
8.0.210.0000.00716.89
8.0.200.0000.00616.88
8.0.190.0060.00316.92
8.0.180.0050.00316.74
8.0.170.0040.00416.79
8.0.160.0000.00716.72
8.0.150.0000.00716.85
8.0.140.0040.00416.74
8.0.130.0030.00313.22
8.0.120.0040.00416.90
8.0.110.0070.00016.72
8.0.100.0000.00816.78
8.0.90.0040.00416.64
8.0.80.0060.00916.79
8.0.70.0040.00416.82
8.0.60.0000.00716.88
8.0.50.0040.00416.82
8.0.30.0120.00616.88
8.0.20.0080.01117.40
8.0.10.0000.00716.89
8.0.00.0100.00816.63
7.4.330.0030.00315.00
7.4.320.0060.00016.44
7.4.300.0000.00616.57
7.4.290.0030.00316.44
7.4.280.0040.00416.41
7.4.270.0030.00316.43
7.4.260.0070.00016.42
7.4.250.0030.00516.39
7.4.240.0010.00616.53
7.4.230.0060.00016.19
7.4.220.0070.01016.48
7.4.210.0100.00516.48
7.4.200.0040.00416.46
7.4.190.0040.00416.32
7.4.160.0060.01016.27
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0100.01016.51
7.4.120.0080.00916.35
7.4.110.0170.00016.47
7.4.100.0060.01216.27
7.4.90.0150.00616.62
7.4.80.0070.01119.39
7.4.70.0040.01216.46
7.4.60.0120.00916.44
7.4.50.0050.00316.09
7.4.40.0090.00916.64
7.4.30.0080.00816.36
7.4.00.0100.00715.08
7.3.330.0070.00012.98
7.3.320.0000.00512.98
7.3.310.0000.00716.11
7.3.300.0000.00716.17
7.3.290.0120.00316.14
7.3.280.0090.00916.17
7.3.270.0030.01317.40
7.3.260.0070.01016.33
7.3.250.0110.00816.49
7.3.240.0090.00916.25
7.3.230.0160.00616.39
7.3.210.0100.01016.08
7.3.200.0100.00919.39
7.3.190.0100.01016.16
7.3.180.0130.00316.27
7.3.170.0040.01116.27
7.3.160.0110.00516.37
7.3.120.0140.00014.38
7.3.10.0110.00416.29
7.3.00.0060.00916.52
7.2.330.0030.01516.45
7.2.320.0130.01016.58
7.2.310.0160.00316.61
7.2.300.0090.00916.27
7.2.290.0070.01816.59
7.2.130.0030.01016.47
7.2.120.0070.00716.63
7.2.110.0060.00916.61
7.2.100.0040.01116.52
7.2.90.0030.01016.64
7.2.80.0040.00816.29
7.2.70.0060.00316.30
7.2.60.0050.01016.68
7.2.50.0040.00816.43
7.2.40.0080.00316.67
7.2.30.0030.01316.80
7.2.20.0060.00616.51
7.2.10.0060.00916.64
7.2.00.0100.00517.93
7.1.250.0090.00615.55
7.1.200.0080.00415.78
7.1.100.0070.00717.96
7.1.70.0070.00017.09
7.1.60.0070.01319.46
7.1.50.0000.01817.02
7.1.00.0030.07722.45
7.0.200.0000.00816.64
7.0.140.0030.07022.00
7.0.60.0030.04719.90
7.0.50.0000.07717.90
7.0.40.0100.04020.25
7.0.30.0200.04320.05
7.0.20.0430.05020.02
7.0.10.0100.04320.12
7.0.00.0130.03720.17
5.6.280.0070.07021.02
5.6.210.0070.08320.55
5.6.200.0200.07318.15
5.6.190.0000.07320.64
5.6.180.0130.08320.56
5.6.170.0270.08320.42
5.6.160.0000.04720.38
5.6.150.0070.03318.17
5.6.140.0070.08318.18
5.6.130.0100.08018.18
5.6.120.0070.08320.97
5.6.110.0030.09020.93
5.6.100.0070.06021.12
5.6.90.0070.07720.97
5.6.80.0070.06720.41
5.5.350.0000.08720.43
5.5.340.0070.08317.91
5.5.330.0030.04720.19
5.5.320.0000.05720.27
5.5.310.0300.07320.41
5.5.300.0070.04718.01
5.5.290.0030.07318.00
5.5.280.0170.07320.71
5.5.270.0130.03720.79
5.5.260.0200.06020.78
5.5.250.0070.03720.77
5.5.240.0030.08320.17
5.4.450.0570.06319.48
5.4.440.0900.06019.32
5.4.430.0070.06019.52
5.4.420.1330.07719.54
5.4.410.0770.06319.40
5.4.400.1030.05019.21
5.4.390.0730.05018.95
5.4.380.0070.06018.61
5.4.370.0170.04718.54
5.4.360.0200.05018.57
5.4.350.0170.05018.72
5.4.340.0130.05318.54
5.4.320.0060.03712.45
5.4.310.0060.05212.46
5.4.300.0080.03712.45
5.4.290.0060.03812.45
5.4.280.0080.03312.35
5.4.270.0050.03712.35
5.4.260.0050.03912.35
5.4.250.0070.03712.35
5.4.240.0090.03212.35
5.4.230.0070.03612.34
5.4.220.0090.04012.34
5.4.210.0080.03312.34
5.4.200.0050.03812.34
5.4.190.0040.03812.34
5.4.180.0070.03512.34
5.4.170.0040.03812.35
5.4.160.0030.03912.35
5.4.150.0070.03312.34
5.4.140.0090.03312.02
5.4.130.0060.03412.01
5.4.120.0070.03511.97
5.4.110.0050.03811.96
5.4.100.0080.03311.97
5.4.90.0040.03911.97
5.4.80.0060.03611.96
5.4.70.0050.03611.96
5.4.60.0040.03711.96
5.4.50.0060.03511.96
5.4.40.0080.03311.95
5.4.30.0040.03811.95
5.4.20.0080.03311.95
5.4.10.0080.03311.95
5.4.00.0030.03911.45
5.3.290.0060.04212.80
5.3.280.0060.03812.71
5.3.270.0050.04012.72
5.3.260.0070.03812.72
5.3.250.0070.03512.72
5.3.240.0070.03612.71
5.3.230.0080.03512.71
5.3.220.0070.03612.68
5.3.210.0080.04512.68
5.3.200.0040.03812.68
5.3.190.0050.03912.68
5.3.180.0090.03412.67
5.3.170.0090.03512.67
5.3.160.0050.03812.68
5.3.150.0050.03912.67
5.3.140.0050.03912.66
5.3.130.0080.03812.66
5.3.120.0020.04412.66
5.3.110.0050.04112.66
5.3.100.0060.03812.12
5.3.90.0100.04712.08
5.3.80.0110.04412.07
5.3.70.0080.04512.07
5.3.60.0060.03812.06
5.3.50.0060.04012.00
5.3.40.0110.03312.00
5.3.30.0060.03611.96
5.3.20.0030.03811.73
5.3.10.0100.03111.69
5.3.00.0050.03611.68
5.2.170.0030.0329.18
5.2.160.0060.0289.17
5.2.150.0020.0339.18
5.2.140.0050.0309.17
5.2.130.0040.0309.13
5.2.120.0030.0299.13
5.2.110.0030.0349.14
5.2.100.0080.0419.14
5.2.90.0060.0289.14
5.2.80.0050.0319.13
5.2.70.0020.0339.13
5.2.60.0030.0319.09
5.2.50.0040.0359.05
5.2.40.0040.0309.03
5.2.30.0070.0279.01
5.2.20.0020.0329.00
5.2.10.0040.0288.92
5.2.00.0050.0288.78
5.1.60.0030.0348.07
5.1.50.0060.0288.06
5.1.40.0060.0328.04
5.1.30.0050.0278.39
5.1.20.0040.0268.41
5.1.10.0030.0288.14
5.1.00.0100.0258.14
5.0.50.0050.0196.62
5.0.40.0040.0226.48
5.0.30.0030.0326.29
5.0.20.0070.0266.26
5.0.10.0030.0216.24
5.0.00.0040.0306.23
4.4.90.0040.0144.78
4.4.80.0030.0154.76
4.4.70.0050.0134.75
4.4.60.0020.0164.75
4.4.50.0030.0154.77
4.4.40.0040.0244.71
4.4.30.0020.0164.75
4.4.20.0030.0164.84
4.4.10.0010.0174.85
4.4.00.0010.0274.76
4.3.110.0030.0164.67
4.3.100.0060.0134.67
4.3.90.0060.0134.63
4.3.80.0040.0234.58
4.3.70.0020.0154.63
4.3.60.0000.0174.63
4.3.50.0040.0144.63
4.3.40.0030.0244.54
4.3.30.0010.0173.28
4.3.20.0010.0173.25
4.3.10.0020.0163.22
4.3.00.0000.0236.87

preferences:
42.85 ms | 400 KiB | 5 Q