3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"BTC_BCN":{"id":7,"last":"0.00000018","lowestAsk":"0.00000018","highestBid":"0.00000017","percentChange":"0.00000000","baseVolume":"58.73610647","quoteVolume":"328275043.97652394","isFrozen":"0","high24hr":"0.00000019","low24hr":"0.00000017"},"BTC_BELA":{"id":8,"last":"0.00001191","lowestAsk":"0.00001191","highestBid":"0.00001174","percentChange":"0.13536701","baseVolume":"6.33896473","quoteVolume":"572949.02508918","isFrozen":"0","high24hr":"0.00001200","low24hr":"0.00001033"}}'; $arr = json_decode($json, true); Foreach($arr as $key => $val){ Extract($val); Echo $key ."\n"; Echo $last ."\n"; Echo $baseVolume ."\n\n"; }

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.5.00.0170.00819.81
8.4.150.0030.00014.05
8.4.140.0180.00317.38
8.4.130.0140.00718.79
8.4.120.0110.00923.97
8.4.110.0080.00919.07
8.4.100.0120.00818.86
8.4.90.0090.00620.58
8.4.80.0130.00818.58
8.4.70.0050.00719.06
8.4.60.0090.01218.76
8.4.50.0100.01019.52
8.4.40.0100.01020.47
8.4.30.0080.00017.72
8.4.20.0070.00417.62
8.4.10.0060.00319.36
8.3.280.0120.00818.29
8.3.270.0090.01016.55
8.3.260.0120.00716.59
8.3.250.0080.00919.05
8.3.240.0080.00917.22
8.3.230.0100.00916.28
8.3.220.0060.00219.11
8.3.210.0050.00416.63
8.3.200.0040.00716.51
8.3.190.0120.00717.07
8.3.180.0090.00616.79
8.3.170.0070.01018.77
8.3.160.0070.01016.49
8.3.150.0070.01320.74
8.3.140.0080.00018.93
8.3.130.0060.00318.55
8.3.120.0130.00318.86
8.3.110.0060.00320.94
8.3.100.0080.00024.06
8.3.90.0070.00316.49
8.3.80.0040.00417.97
8.3.70.0120.00918.31
8.3.60.0100.00718.43
8.3.50.0110.00618.21
8.3.40.0090.00618.89
8.3.30.0110.00418.63
8.3.20.0060.00320.21
8.3.10.0080.00021.60
8.3.00.0040.00423.39
8.2.290.0070.00520.58
8.2.280.0100.00619.81
8.2.270.0110.00416.96
8.2.260.0040.00416.68
8.2.250.0100.01416.41
8.2.240.0050.00317.23
8.2.230.0000.00922.58
8.2.220.0060.00337.54
8.2.210.0110.00826.77
8.2.200.0060.00318.16
8.2.190.0110.00416.75
8.2.180.0140.00316.36
8.2.170.0070.00722.96
8.2.160.0060.00820.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00421.05
8.2.120.0040.00426.16
8.2.110.0110.00721.08
8.2.100.0040.00717.91
8.2.90.0000.00819.89
8.2.80.0040.00420.57
8.2.70.0000.00917.50
8.2.60.0080.00017.50
8.2.50.0050.00317.63
8.2.40.0050.00320.45
8.2.30.0000.00821.02
8.2.20.0040.00417.95
8.2.10.0040.00418.18
8.2.00.0000.00718.19
8.1.330.0130.00622.02
8.1.320.0110.00915.94
8.1.310.0000.00818.38
8.1.300.0060.00316.07
8.1.290.0030.00630.84
8.1.280.0120.00325.92
8.1.270.0090.00021.95
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0120.00922.03
8.1.230.0080.00422.63
8.1.220.0080.00017.79
8.1.210.0000.00818.86
8.1.200.0040.00417.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0040.00418.57
8.1.160.0040.00418.89
8.1.150.0040.00420.67
8.1.140.0050.00218.96
8.1.130.0000.00718.86
8.1.120.0070.00017.38
8.1.110.0070.00017.45
8.1.100.0040.00417.54
8.1.90.0070.00017.36
8.1.80.0030.00717.46
8.1.70.0030.00317.38
8.1.60.0000.00817.53
8.1.50.0080.00017.56
8.1.40.0040.00417.56
8.1.30.0060.00317.70
8.1.20.0040.00417.67
8.1.10.0050.00217.58
8.1.00.0000.00817.42
8.0.300.0040.00420.09
8.0.290.0080.00016.75
8.0.280.0000.00718.49
8.0.270.0050.00316.83
8.0.260.0000.00716.83
8.0.250.0040.00416.99
8.0.240.0070.00016.85
8.0.230.0070.00017.02
8.0.220.0000.00716.88
8.0.210.0040.00416.94
8.0.200.0000.00616.97
8.0.190.0030.00616.88
8.0.180.0040.00416.93
8.0.170.0030.00616.82
8.0.160.0080.00016.94
8.0.150.0040.00416.91
8.0.140.0000.00716.85
8.0.130.0000.00813.29
8.0.120.0040.00416.86
8.0.110.0000.00716.91
8.0.100.0070.00016.79
8.0.90.0040.00417.00
8.0.80.0030.01316.95
8.0.70.0030.00616.94
8.0.60.0000.00717.01
8.0.50.0000.00716.78
8.0.30.0110.00717.17
8.0.20.0110.00717.40
8.0.10.0040.00417.00
8.0.00.0110.01216.62
7.4.330.0000.00515.55
7.4.320.0060.00016.50
7.4.300.0000.00616.52
7.4.290.0070.00316.60
7.4.280.0070.00016.52
7.4.270.0000.00716.53
7.4.260.0000.00716.55
7.4.250.0030.00416.52
7.4.240.0070.00016.54
7.4.230.0000.00716.71
7.4.220.0070.01116.60
7.4.210.0070.01016.55
7.4.200.0050.00316.61
7.4.160.0090.00816.39
7.4.150.0040.01417.40
7.4.140.0100.01017.86
7.4.130.0070.01116.55
7.4.120.0120.00716.48
7.4.110.0070.01016.56
7.4.100.0100.01016.38
7.4.90.0080.00816.60
7.4.80.0060.01219.39
7.4.70.0140.00516.56
7.4.60.0030.01416.60
7.4.50.0110.00716.66
7.4.40.0100.01016.47
7.4.30.0080.00716.68
7.4.00.0060.01014.96
7.3.330.0060.00213.17
7.3.320.0020.00213.25
7.3.310.0030.00316.36
7.3.300.0040.00416.18
7.3.290.0080.00816.21
7.3.280.0030.01616.24
7.3.270.0040.01517.40
7.3.260.0110.00616.29
7.3.250.0080.01016.37
7.3.240.0090.00816.40
7.3.230.0110.00616.71
7.3.210.0120.00916.20
7.3.200.0110.00616.64
7.3.190.0120.01316.29
7.3.180.0080.00816.22
7.3.170.0030.01416.38
7.3.160.0120.00816.35
7.3.120.0120.00314.75
7.3.110.0090.00915.12
7.3.100.0090.00614.71
7.3.90.0000.01214.81
7.3.80.0030.01014.92
7.3.70.0040.01114.84
7.3.60.0080.00814.86
7.3.50.0060.01314.49
7.3.40.0040.00714.65
7.3.30.0000.01614.54
7.3.20.0060.00916.50
7.3.10.0030.01016.71
7.3.00.0120.00416.68
7.2.330.0060.01416.53
7.2.320.0040.01416.74
7.2.310.0080.00916.65
7.2.300.0140.00316.34
7.2.290.0120.00416.47
7.2.250.0080.01115.13
7.2.240.0060.01314.91
7.2.230.0070.00715.25
7.2.220.0000.00914.97
7.2.210.0040.01215.09
7.2.200.0110.00415.16
7.2.190.0040.01115.16
7.2.180.0060.01315.24
7.2.170.0060.00915.06
7.2.60.0040.00716.98
7.2.00.0100.01319.61
7.1.330.0030.01015.79
7.1.320.0090.00615.88
7.1.310.0070.00715.91
7.1.300.0000.01515.92
7.1.290.0090.00615.77
7.1.280.0040.00415.63
7.1.270.0030.01315.80
7.1.260.0040.01115.65
7.1.200.0060.00915.79
7.1.120.0030.01218.73
7.1.110.0030.01218.16
7.1.100.0030.01218.11
7.1.90.0040.01218.20
7.1.80.0050.01418.39
7.1.70.0060.01217.20
7.1.60.0160.01635.16
7.1.50.0140.01434.80
7.1.40.0190.01834.51
7.1.30.0220.00934.33
7.1.20.0200.01634.38
7.1.10.0040.01216.57
7.1.00.0090.01116.70

preferences:
239.99 ms | 403 KiB | 5 Q