3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonString = '{ "order": { "id": "5RTQNACF", "created_at": "2012-12-09T21:23:41-08:00", "status": "completed", "total_btc": { "cents": 100000000, "currency_iso": "BTC" }, "custom": "order1234" } }'; $array = json_decode($jsonString, true); print_r($array); extract($array); echo $order['custom']; extract($order); echo $id;

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.0120.00318.67
8.3.30.0070.01020.22
8.3.20.0000.00720.08
8.3.10.0050.00321.92
8.3.00.0080.00022.45
8.2.170.0120.00322.96
8.2.160.0070.01322.16
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00419.85
8.2.110.0100.00020.49
8.2.100.0090.00317.91
8.2.90.0080.00018.34
8.2.80.0060.00319.40
8.2.70.0040.00417.50
8.2.60.0040.00418.05
8.2.50.0090.00018.07
8.2.40.0040.00718.22
8.2.30.0040.00419.36
8.2.20.0070.00017.71
8.2.10.0000.00817.81
8.2.00.0090.00017.80
8.1.270.0110.00323.99
8.1.260.0070.00026.35
8.1.250.0070.00728.09
8.1.240.0040.00422.20
8.1.230.0110.00020.96
8.1.220.0090.00017.74
8.1.210.0000.00818.97
8.1.200.0030.00617.11
8.1.190.0000.00917.40
8.1.180.0000.00818.70
8.1.170.0000.01018.51
8.1.160.0000.00718.82
8.1.150.0040.00418.49
8.1.140.0040.00417.39
8.1.130.0000.00717.74
8.1.120.0060.00317.37
8.1.110.0000.00817.43
8.1.100.0040.00417.38
8.1.90.0070.00017.41
8.1.80.0000.00817.35
8.1.70.0060.00317.36
8.1.60.0040.00417.41
8.1.50.0040.00417.35
8.1.40.0040.00417.43
8.1.30.0040.00417.51
8.1.20.0080.00017.55
8.1.10.0030.00617.57
8.1.00.0060.00617.52
8.0.300.0040.00420.04
8.0.290.0040.00417.18
8.0.280.0030.00318.38
8.0.270.0070.00017.30
8.0.260.0040.00416.72
8.0.250.0000.00716.96
8.0.240.0060.00416.85
8.0.230.0070.00016.93
8.0.220.0050.00216.68
8.0.210.0000.00716.74
8.0.200.0030.00316.72
8.0.190.0070.00016.94
8.0.180.0000.00716.84
8.0.170.0070.00016.82
8.0.160.0070.00016.70
8.0.150.0030.00316.79
8.0.140.0030.00516.70
8.0.130.0060.00013.23
8.0.120.0040.00416.82
8.0.110.0000.00716.82
8.0.100.0030.00516.80
8.0.90.0050.00316.89
8.0.80.0060.01116.82
8.0.70.0040.00416.84
8.0.60.0040.00416.82
8.0.50.0040.00416.80
8.0.30.0040.01517.12
8.0.20.0160.00617.40
8.0.10.0050.00316.86
8.0.00.0170.00716.74
7.4.330.0000.00514.91
7.4.320.0040.00416.39
7.4.300.0060.00016.53
7.4.290.0030.00316.39
7.4.280.0040.00416.48
7.4.270.0030.00316.55
7.4.260.0030.00313.21
7.4.250.0080.00016.38
7.4.240.0050.00216.50
7.4.230.0000.00716.56
7.4.220.0070.01716.34
7.4.210.0060.00916.53
7.4.200.0040.00416.65
7.4.190.0000.00716.61
7.4.160.0140.00316.43
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0080.00816.58
7.4.120.0130.00516.45
7.4.110.0070.01116.41
7.4.100.0090.01316.39
7.4.90.0060.01016.30
7.4.80.0070.01019.39
7.4.70.0120.01016.23
7.4.60.0080.00816.46
7.4.50.0040.00416.45
7.4.40.0030.01422.77
7.4.30.0140.00916.36
7.4.00.0100.00714.94
7.3.330.0000.00513.12
7.3.320.0020.00213.19
7.3.310.0000.00716.36
7.3.300.0030.00316.24
7.3.290.0030.01216.37
7.3.280.0090.00616.26
7.3.270.0180.00417.40
7.3.260.0040.01316.29
7.3.250.0090.00816.33
7.3.240.0070.01416.50
7.3.230.0120.01216.41
7.3.210.0110.00516.37
7.3.200.0130.00319.39
7.3.190.0130.00316.50
7.3.180.0090.00616.18
7.3.170.0040.01116.34
7.3.160.0060.01016.21
7.3.120.0030.01414.46
7.2.330.0090.00916.36
7.2.320.0100.01316.45
7.2.310.0190.00316.68
7.2.300.0110.00616.49
7.2.290.0070.01416.67
7.2.00.0040.01419.33
7.1.100.0060.00617.89
7.1.70.0000.01017.13
7.1.60.0070.01619.21
7.1.50.0060.01917.02
7.1.00.0000.05322.42
7.0.200.0060.00316.83
7.0.140.0000.07322.00
7.0.100.0430.07319.89
7.0.90.0470.08019.89
7.0.80.0370.07719.94
7.0.70.0200.06319.91
7.0.60.0430.07320.05
7.0.50.0500.07720.38
7.0.40.0100.07719.91
7.0.30.0100.05020.19
7.0.20.0070.08020.11
7.0.10.0100.08320.12
7.0.00.0070.05320.10
5.6.280.0000.07720.88
5.6.250.0100.07320.59
5.6.240.0100.08020.54
5.6.230.0130.07720.66
5.6.220.0130.07720.59
5.6.210.0100.08020.75
5.6.200.0100.07720.95
5.6.190.0100.07321.00
5.6.180.0230.06720.95
5.6.170.0200.07021.12
5.6.160.0070.07021.08
5.6.150.0170.07320.95
5.6.140.0130.08021.07
5.6.130.0130.06721.04
5.6.120.0100.07321.08
5.6.110.0130.07720.93
5.6.100.0100.07321.08
5.6.90.0200.07021.06
5.6.80.0130.07320.55
5.6.70.0130.07020.54
5.6.60.0100.07020.47
5.6.50.0000.09020.46
5.6.40.0200.06720.40
5.6.30.0070.07320.41
5.6.20.0100.08020.45
5.6.10.0030.07320.49
5.6.00.0100.07720.38
5.5.380.0130.07720.45
5.5.370.0030.08320.45
5.5.360.0000.05720.34
5.5.350.0070.07720.39
5.5.340.0170.07320.68
5.5.330.0100.07320.77
5.5.320.0030.09020.80
5.5.310.0070.08320.88
5.5.300.0070.09020.86
5.5.290.0100.08020.73
5.5.280.0030.08320.81
5.5.270.0100.07320.91
5.5.260.0200.07320.72
5.5.250.0070.07720.66
5.5.240.0100.07720.21
5.5.230.0130.07720.17
5.5.220.0100.07320.29
5.5.210.0070.04720.13
5.5.200.0130.07320.22
5.5.190.0100.07720.21
5.5.180.0130.07020.27
5.5.160.0070.07320.22
5.5.150.0100.07320.13
5.5.140.0070.07320.20
5.5.130.0000.08319.98
5.5.120.0100.07720.11
5.5.110.0100.07320.14
5.5.100.0030.08720.07
5.5.90.0070.08320.06
5.5.80.0070.07720.15
5.5.70.0000.05320.05
5.5.60.0070.07720.05
5.5.50.0070.07320.07
5.5.40.0170.07020.02
5.5.30.0000.07720.09
5.5.20.0070.04020.08
5.5.10.0100.07020.00
5.5.00.0030.08319.96
5.4.450.0000.05319.28
5.4.440.0030.06719.36
5.4.430.0100.08019.22
5.4.420.0030.08019.24
5.4.410.0100.07319.27
5.4.400.0070.07319.04
5.4.390.0000.08319.08
5.4.380.0030.07318.96
5.4.370.0200.06018.82
5.4.360.0100.04719.03
5.4.350.0130.06319.10
5.4.340.0000.08718.82
5.4.320.0130.07318.98
5.4.310.0070.08018.96
5.4.300.0100.07719.06
5.4.290.0070.07019.16
5.4.280.0130.06719.06
5.4.270.0030.07318.98
5.4.260.0070.07719.00
5.4.250.0130.06719.03
5.4.240.0070.07718.97
5.4.230.0070.04318.96
5.4.220.0100.07318.97
5.4.210.0070.06319.07
5.4.200.0070.08019.14
5.4.190.0030.04718.93
5.4.180.0030.08019.03
5.4.170.0170.07018.95
5.4.160.0000.08318.88
5.4.150.0070.07018.96
5.4.140.0130.06316.25
5.4.130.0100.07016.26
5.4.120.0100.04016.23
5.4.110.0070.07016.26
5.4.100.0000.08316.31
5.4.90.0130.06716.21
5.4.80.0030.06716.23
5.4.70.0070.07316.29
5.4.60.0030.07016.30
5.4.50.0130.06016.32
5.4.40.0000.08316.45
5.4.30.0070.06716.31
5.4.20.0070.07316.18
5.4.10.0000.04016.23
5.4.00.0000.06715.81
5.3.290.0070.07714.63
5.3.280.0070.07714.56
5.3.270.0100.07714.52
5.3.260.0130.07014.57
5.3.250.0100.05714.55
5.3.240.0030.06314.60
5.3.230.0070.07314.59
5.3.220.0000.05314.55
5.3.210.0030.07714.55
5.3.200.0100.04314.56
5.3.190.0100.07314.39
5.3.180.0070.06714.56
5.3.170.0100.07014.43
5.3.160.0000.08014.52
5.3.150.0070.04714.50
5.3.140.0030.07714.41
5.3.130.0100.07014.52
5.3.120.0130.06314.55
5.3.110.0070.07714.53
5.3.100.0130.07014.00
5.3.90.0070.07713.93
5.3.80.0070.07013.88
5.3.70.0100.06313.88
5.3.60.0100.06713.86
5.3.50.0000.08313.93
5.3.40.0170.06013.80
5.3.30.0030.07013.87
5.3.20.0130.06313.66
5.3.10.0070.06313.64
5.3.00.0030.04713.63
5.2.170.0070.06311.18
5.2.160.0100.06010.95
5.2.150.0070.06311.01
5.2.140.0000.07010.96
5.2.130.0030.06311.05
5.2.120.0000.06010.96
5.2.110.0000.06710.94
5.2.100.0000.06310.89
5.2.90.0000.04310.98
5.2.80.0030.06711.14
5.2.70.0070.04711.13
5.2.60.0030.06310.89
5.2.50.0070.05711.07
5.2.40.0030.04310.96
5.2.30.0070.05310.82
5.2.20.0000.06310.95
5.2.10.0030.05710.80
5.2.00.0030.05010.72
5.1.60.0070.04310.05
5.1.50.0030.05310.04
5.1.40.0030.0579.99
5.1.30.0070.05710.36
5.1.20.0070.05010.27
5.1.10.0030.0439.91
5.1.00.0070.05310.07
5.0.50.0070.0438.58
5.0.40.0030.0408.47
5.0.30.0030.0378.27
5.0.20.0030.0378.28
5.0.10.0030.0438.16
5.0.00.0070.0538.24
4.4.90.0070.0307.96
4.4.80.0000.0407.96
4.4.70.0000.0377.96
4.4.60.0000.0237.96
4.4.50.0000.0377.96
4.4.40.0070.0477.96
4.4.30.0030.0207.96
4.4.20.0000.0407.96
4.4.10.0070.0307.96
4.4.00.0000.0537.96
4.3.110.0070.0307.96
4.3.100.0030.0337.96
4.3.90.0030.0307.96
4.3.80.0070.0477.96
4.3.70.0030.0337.96
4.3.60.0000.0377.96
4.3.50.0070.0277.96
4.3.40.0000.0537.96
4.3.30.0030.0337.96
4.3.20.0030.0377.96
4.3.10.0000.0407.96
4.3.00.0070.0307.96

preferences:
42.66 ms | 400 KiB | 5 Q