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']; echo "\n"; 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.60.0090.00918.27
8.3.50.0100.01021.21
8.3.40.0080.00618.67
8.3.30.0100.00320.20
8.3.20.0040.00420.04
8.3.10.0040.00422.04
8.3.00.0040.00422.29
8.2.180.0000.01516.75
8.2.170.0090.00922.96
8.2.160.0070.00719.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0000.00820.79
8.2.110.0080.00022.13
8.2.100.0090.00317.84
8.2.90.0060.00319.17
8.2.80.0040.00419.23
8.2.70.0040.00417.75
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0050.00519.63
8.2.30.0000.00719.36
8.2.20.0050.00217.80
8.2.10.0030.00517.74
8.2.00.0000.00817.73
8.1.280.0110.00425.92
8.1.270.0050.00323.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.72
8.1.230.0080.00319.06
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0030.00517.17
8.1.180.0060.00318.89
8.1.170.0080.00018.50
8.1.160.0000.00718.75
8.1.150.0040.00418.51
8.1.140.0050.00217.31
8.1.130.0000.00717.82
8.1.120.0040.00417.45
8.1.110.0040.00417.33
8.1.100.0000.00817.40
8.1.90.0040.00417.30
8.1.80.0000.00717.46
8.1.70.0030.00317.42
8.1.60.0040.00417.40
8.1.50.0070.00017.47
8.1.40.0040.00417.33
8.1.30.0000.00717.50
8.1.20.0000.00817.53
8.1.10.0050.00317.49
8.1.00.0020.00917.40
8.0.300.0070.00018.77
8.0.290.0030.00517.05
8.0.280.0030.00318.44
8.0.270.0000.00717.17
8.0.260.0070.00016.80
8.0.250.0030.00316.97
8.0.240.0030.00716.93
8.0.230.0070.00016.78
8.0.220.0030.00316.73
8.0.210.0050.00216.71
8.0.200.0030.00316.93
8.0.190.0040.00416.90
8.0.180.0000.00816.83
8.0.170.0000.00716.90
8.0.160.0000.00716.78
8.0.150.0030.00516.72
8.0.140.0000.00816.80
8.0.130.0060.00013.26
8.0.120.0040.00416.67
8.0.110.0030.00316.73
8.0.100.0040.00416.70
8.0.90.0080.00016.79
8.0.80.0090.00616.84
8.0.70.0030.00316.88
8.0.60.0000.00716.93
8.0.50.0040.00416.81
8.0.30.0090.00916.97
8.0.20.0090.01217.40
8.0.10.0050.00216.76
8.0.00.0140.00516.79
7.4.330.0040.00014.87
7.4.320.0000.00716.54
7.4.300.0000.00616.45
7.4.290.0060.00016.44
7.4.280.0040.00416.56
7.4.270.0000.00816.49
7.4.260.0070.00013.23
7.4.250.0040.00316.40
7.4.240.0020.00516.46
7.4.230.0030.00316.57
7.4.220.0090.00916.54
7.4.210.0080.00816.51
7.4.200.0000.00716.48
7.4.190.0030.00316.49
7.4.160.0120.00416.55
7.4.150.0140.00317.40
7.4.140.0140.00617.86
7.4.130.0090.00916.57
7.4.120.0080.00816.57
7.4.110.0100.00616.43
7.4.100.0030.01616.51
7.4.90.0040.01316.28
7.4.80.0030.01319.39
7.4.70.0110.00616.27
7.4.60.0060.00916.42
7.4.50.0030.00516.55
7.4.40.0050.00822.77
7.4.30.0080.00916.55
7.4.00.0090.00915.18
7.3.330.0050.00013.00
7.3.320.0000.00612.98
7.3.310.0020.00516.33
7.3.300.0030.00316.10
7.3.290.0120.00316.27
7.3.280.0110.00516.27
7.3.270.0150.00317.40
7.3.260.0100.01316.60
7.3.250.0090.01416.31
7.3.240.0030.01316.38
7.3.230.0070.01016.39
7.3.210.0090.00916.24
7.3.200.0120.00919.39
7.3.190.0100.00716.59
7.3.180.0150.00316.50
7.3.170.0090.00916.51
7.3.160.0100.00616.65
7.3.120.0070.01014.97
7.2.330.0150.00816.53
7.2.320.0130.01016.79
7.2.310.0100.01316.60
7.2.300.0100.00716.63
7.2.290.0040.01616.41
7.2.60.0030.01016.71
7.1.200.0000.01115.55
7.1.100.0070.00718.15
7.1.70.0000.00716.95
7.1.60.0040.00717.13
7.1.50.0000.01016.99
7.1.40.0000.01016.62
7.1.30.0000.01116.77
7.1.20.0050.00516.66
7.1.10.0060.00316.57
7.1.00.0030.00516.73
7.0.200.0000.00716.79
7.0.190.0050.00516.93
7.0.180.0050.00516.34
7.0.170.0000.00716.31
7.0.160.0070.00016.33
7.0.150.0000.00816.24
7.0.140.0000.00816.37
7.0.130.0080.00016.55
7.0.120.0050.00316.59
7.0.110.0000.00816.61
7.0.100.0080.00016.27
7.0.90.0030.00516.20
7.0.80.0060.00616.47
7.0.70.0000.00916.43
7.0.60.0110.00716.23
7.0.50.0030.00616.68
7.0.40.0040.00714.78
7.0.30.0020.00514.81
7.0.20.0030.00614.78
7.0.10.0070.00314.78
7.0.00.0040.00414.78
5.6.300.0000.04321.00
5.6.290.0000.05120.90
5.6.280.0030.04020.97
5.6.270.0230.04021.07
5.6.260.0070.05021.00
5.6.250.0060.03920.96
5.6.240.0000.04820.84
5.6.230.0070.08220.86
5.6.220.0030.04520.96
5.6.210.0290.03820.64
5.6.200.0070.04520.80
5.6.190.0100.04520.86
5.6.180.0000.05820.93
5.6.170.0100.04020.98
5.6.160.0100.04420.77
5.6.150.0330.04620.76
5.6.140.0100.04220.92
5.6.130.0070.04220.97
5.6.120.0060.03820.84
5.6.110.0030.04120.85
5.6.100.0070.04121.01
5.6.90.0000.04820.83
5.6.80.0000.04620.32
5.6.70.0030.04220.42
5.6.60.0000.04620.34
5.6.50.0030.04120.38
5.6.40.0070.04720.39
5.6.30.0030.03920.29
5.6.20.0000.04620.27
5.6.10.0100.03520.17
5.6.00.0030.04120.26
5.5.380.0000.04217.54
5.5.370.0030.05617.61
5.5.360.0100.04017.39
5.5.350.0060.03617.45
5.5.340.0000.04717.88
5.5.330.0070.03718.11
5.5.320.0030.04017.96
5.5.310.0000.04117.96
5.5.300.0030.03817.96
5.5.290.0060.04117.70
5.5.280.0030.04418.03
5.5.270.0030.04817.93
5.5.260.0070.03718.05
5.5.250.0000.04417.93
5.5.240.0060.03617.13
5.5.230.0000.04517.34
5.5.220.0140.04517.21
5.5.210.0000.04317.41
5.5.200.0030.03917.29
5.5.190.0130.04317.29
5.5.180.0030.04317.07
5.5.160.0030.03617.29
5.5.150.0000.04317.05
5.5.140.0070.04317.29
5.5.130.0040.03617.38
5.5.120.0030.04017.28
5.5.110.0040.03617.18
5.5.100.0000.04617.00
5.5.90.0170.04017.31
5.5.80.0030.03716.99
5.5.70.0030.04117.20
5.5.60.0030.03817.27
5.5.50.0040.03917.27
5.5.40.0030.03817.31
5.5.30.0030.03917.30
5.5.20.0030.04116.94
5.5.10.0000.05017.27
5.5.00.0060.04117.29
5.4.450.0000.05119.21
5.4.440.0060.03919.44
5.4.430.0030.04019.30
5.4.420.0030.03919.46
5.4.410.0030.04219.36
5.4.400.0290.03619.01
5.4.390.0460.03019.19
5.4.380.0000.04519.09
5.4.370.0070.03518.99
5.4.360.0070.03919.09
5.4.350.0030.03819.15
5.4.340.0060.03619.16
5.4.320.0000.04619.07
5.4.310.0000.04218.94
5.4.300.0030.03818.97
5.4.290.0040.03519.04
5.4.280.0070.04719.06
5.4.270.0030.03518.88
5.4.260.0030.03919.07
5.4.250.0130.03619.05
5.4.240.0030.04719.09
5.4.230.0060.03518.82
5.4.220.0000.05219.06
5.4.210.0000.03919.16
5.4.200.0030.03919.05
5.4.190.0070.03418.81
5.4.180.0000.04119.09
5.4.170.0030.04518.99
5.4.160.0200.03619.05
5.4.150.0000.05219.10
5.4.140.0060.03116.57
5.4.130.0000.03916.43
5.4.120.0000.04116.64
5.4.110.0060.03516.66
5.4.100.0030.03816.50
5.4.90.0030.03916.58
5.4.80.0000.04116.33
5.4.70.0000.03716.60
5.4.60.0030.03316.39
5.4.50.0070.03016.56
5.4.40.0030.03416.53
5.4.30.0030.03516.32
5.4.20.0000.03616.39
5.4.10.0030.03916.35
5.4.00.0000.04515.96
5.3.290.0000.04314.78
5.3.280.0000.04014.78
5.3.270.0030.03714.78
5.3.260.0000.03914.80
5.3.250.0070.05414.78
5.3.240.0000.04014.78
5.3.230.0340.03114.78
5.3.220.0000.04214.78
5.3.210.0000.04614.78
5.3.200.0000.03814.78
5.3.190.0030.04114.78
5.3.180.0000.04214.78
5.3.170.0000.04214.78
5.3.160.0030.03914.78
5.3.150.0060.03114.78
5.3.140.0000.04214.78
5.3.130.0070.05314.78
5.3.120.0030.06214.78
5.3.110.0030.07114.78
5.3.100.0000.04014.78
5.3.90.0030.04314.78
5.3.80.0170.03414.78
5.3.70.0000.03714.78
5.3.60.0030.03514.78
5.3.50.0070.03014.78
5.3.40.0030.04214.78
5.3.30.0030.03414.78
5.3.20.0000.03614.78
5.3.10.0030.03914.78
5.3.00.0170.03114.78
5.2.170.0000.04914.78
5.2.160.0000.03314.78
5.2.150.0000.03014.78
5.2.140.0030.02714.78
5.2.130.0000.03414.78
5.2.120.0030.05514.78
5.2.110.0040.02914.78
5.2.100.0030.03114.78
5.2.90.0030.02714.78
5.2.80.0030.03114.78
5.2.70.0030.04114.78
5.2.60.0030.04114.78
5.2.50.0030.03114.78
5.2.40.0000.03114.78
5.2.30.0070.02414.78
5.2.20.0030.05514.78
5.2.10.0030.06214.78
5.2.00.0000.04514.78
5.1.60.0000.03414.78
5.1.50.0000.03114.78
5.1.40.0000.05214.78
5.1.30.0030.02614.78
5.1.20.0100.02614.78
5.1.10.0000.02914.78
5.1.00.0000.02814.78
5.0.50.0000.02414.78
5.0.40.0030.01714.78
5.0.30.0030.03114.78
5.0.20.0030.01914.78
5.0.10.0000.03014.78
5.0.00.0030.03014.78
4.4.90.0030.01414.78
4.4.80.0000.01614.78
4.4.70.0000.02814.78
4.4.60.0030.01914.78
4.4.50.0040.02514.78
4.4.40.0030.02314.78
4.4.30.0030.01314.78
4.4.20.0040.01514.78
4.4.10.0040.01414.78
4.4.00.0030.02514.78
4.3.110.0030.01314.78
4.3.100.0000.01614.78
4.3.90.0040.01414.78
4.3.80.0030.02314.78
4.3.70.0030.01314.78
4.3.60.0000.01614.78
4.3.50.0030.01314.78
4.3.40.0090.01914.78
4.3.30.0000.03314.78
4.3.20.0000.02314.78
4.3.10.0000.02514.78
4.3.00.0030.02014.78

preferences:
58.99 ms | 401 KiB | 5 Q