3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{"success":true,"data":{"HKT":{"0":{"price":34455,"airline":"I4","flight_number":9557,"departure_at":"2018-03-16T20:10:00Z","return_at":"2018-03-28T12:00:00Z","expires_at":"2018-01-15T22:54:59Z"},"1":{"price":27967,"airline":"CZ","flight_number":356,"departure_at":"2018-03-21T21:40:00Z","return_at":"2018-03-28T16:50:00Z","expires_at":"2018-01-15T11:50:37Z"},"2":{"price":26520,"airline":"CZ","flight_number":6002,"departure_at":"2018-03-13T21:40:00Z","return_at":"2018-03-25T16:50:00Z","expires_at":"2018-01-16T21:19:06Z"},"3":{"price":27570,"airline":"CZ","flight_number":6002,"departure_at":"2018-03-06T21:40:00Z","return_at":"2018-03-28T16:50:00Z","expires_at":"2018-01-14T17:57:13Z"},"4":{"price":49088,"airline":"S7","flight_number":181,"departure_at":"2018-03-06T17:20:00Z","return_at":"2018-03-07T22:45:00Z","expires_at":"2018-01-15T09:47:34Z"},"5":{"price":85262,"airline":"SU","flight_number":8153,"departure_at":"2018-03-06T09:20:00Z","return_at":"2018-03-26T04:30:00Z","expires_at":"2018-01-15T08:51:51Z"}}},"error":null,"currency":"rub"}'; $array = json_decode(utf8_decode($str), true); print_r($array); echo $array['data']['PAR'][0]['airline'];

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.0060.01218.75
8.3.30.0140.00018.73
8.3.20.0090.00018.73
8.3.10.0000.00723.66
8.3.00.0040.00717.62
8.2.170.0070.01022.96
8.2.160.0100.00319.02
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00719.27
8.2.120.0000.00726.35
8.2.110.0030.00620.99
8.2.100.0000.01118.03
8.2.90.0050.00318.09
8.2.80.0000.00819.30
8.2.70.0100.00017.93
8.2.60.0000.00817.93
8.2.50.0030.00518.10
8.2.40.0050.00320.29
8.2.30.0080.00019.25
8.2.20.0050.00318.16
8.2.10.0090.00018.07
8.2.00.0030.00518.31
8.1.270.0040.00420.00
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00323.82
8.1.230.0110.00420.95
8.1.220.0020.00517.74
8.1.210.0080.00018.77
8.1.200.0000.00817.22
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0070.00018.74
8.1.150.0030.00618.73
8.1.140.0040.00419.12
8.1.130.0030.00518.89
8.1.120.0000.00717.30
8.1.110.0040.00417.40
8.1.100.0030.00617.30
8.1.90.0040.00417.40
8.1.80.0040.00417.41
8.1.70.0040.00417.40
8.1.60.0090.00017.54
8.1.50.0060.00617.46
8.1.40.0040.00417.51
8.1.30.0000.00817.56
8.1.20.0030.00617.56
8.1.10.0000.00817.47
8.1.00.0040.00417.40
8.0.300.0000.00919.91
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0000.00717.17
8.0.260.0000.00617.29
8.0.250.0070.00016.96
8.0.240.0030.00616.99
8.0.230.0030.00316.93
8.0.220.0060.00016.91
8.0.210.0030.00416.77
8.0.200.0030.00316.98
8.0.190.0000.00716.94
8.0.180.0000.00716.93
8.0.170.0000.00816.95
8.0.160.0000.00716.97
8.0.150.0030.00316.73
8.0.140.0030.00316.86
8.0.130.0060.00013.32
8.0.120.0040.00416.84
8.0.110.0000.00716.75
8.0.100.0020.00516.87
8.0.90.0040.00417.01
8.0.80.0120.00616.81
8.0.70.0040.00416.79
8.0.60.0000.00716.82
8.0.50.0050.00316.89
8.0.30.0090.01216.86
8.0.20.0070.01317.40
8.0.10.0060.00317.13
8.0.00.0120.00616.79
7.4.330.0000.00516.71
7.4.320.0000.00716.53
7.4.300.0000.00716.54
7.4.290.0030.00316.58
7.4.280.0000.00716.54
7.4.270.0000.00716.61
7.4.260.0030.00316.51
7.4.250.0000.00716.48
7.4.240.0030.00316.55
7.4.230.0050.00316.19
7.4.220.0030.00516.55
7.4.210.0040.01616.61
7.4.200.0030.00316.55
7.4.160.0120.00516.48
7.4.150.0030.01517.40
7.4.140.0120.01017.86
7.4.130.0140.00816.55
7.4.120.0090.01016.61
7.4.110.0120.00916.39
7.4.100.0100.00716.52
7.4.90.0080.01216.38
7.4.80.0120.00619.39
7.4.70.0060.01716.48
7.4.60.0130.01016.63
7.4.50.0040.01116.52
7.4.40.0090.00616.40
7.4.00.0130.00314.77
7.3.330.0000.00613.06
7.3.320.0000.00513.14
7.3.310.0000.00716.27
7.3.300.0000.00616.11
7.3.290.0100.00816.32
7.3.280.0080.00816.28
7.3.270.0100.01017.40
7.3.260.0110.00616.40
7.3.250.0110.00816.47
7.3.240.0060.01116.38
7.3.230.0110.00716.35
7.3.210.0100.00716.45
7.3.200.0130.01016.57
7.3.190.0100.00716.54
7.3.180.0040.01216.42
7.3.170.0090.00916.22
7.3.160.0060.01016.39
7.2.330.0150.00916.56
7.2.320.0070.01016.71
7.2.310.0120.00916.79
7.2.300.0060.01216.64
7.2.290.0090.00616.73
7.2.60.0080.00416.87
7.2.10.0350.00618.09
7.2.00.0210.01117.77
7.1.200.0060.00615.49
7.1.130.0330.00716.98
7.1.120.0190.01116.89
7.1.110.0220.00716.02
7.1.100.0250.00916.14
7.1.90.0340.00716.33
7.1.80.0180.01516.23
7.1.70.0210.00915.03
7.1.60.0320.01333.36
7.1.50.0290.01533.04
7.1.40.0390.00632.67
7.1.30.0710.01032.53
7.1.20.0390.00732.70
7.1.10.0190.00914.61
7.1.00.0240.01814.75

preferences:
58.46 ms | 400 KiB | 5 Q