3v4l.org

run code in 500+ PHP versions simultaneously
<?php $json = '{ "status": "400", "msg": "List Of Lotteries", "lotteryRes": { "result": { "Disawar": [ "Disawar" ], "DL Bazzar": [ "DL Bazzar" ], "Faridabad": [ "Faridabad" ], "Gaziyabad": [ "Gaziyabad" ], "X90": [ "X90" ], "Gali": [ "Gali" ], "RAJASTHAN ROYAL": [ "RAJASTHAN ROYAL" ], "Rajasthan Bazaar": [ "Rajasthan Bazaar" ] }, "lottery_date": [ "2018-03-25 05:30:00", "2018-03-31 15:20:00", "2018-03-30 18:15:00", "2018-03-31 20:20:00", "2018-04-04 23:00:00", "2018-04-02 23:25:00", "2018-04-14 16:00:00", "2018-04-13 14:00:00" ] } }'; // $json = file_get_contents('url'); $array = json_decode($json, true); foreach (array_values($array['lotteryRes']['result']) as $key => $result) { echo array_values($result)[0].' '.$array['lotteryRes']['lottery_date'][$key].PHP_EOL; }

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.30.0130.00519.31
8.5.20.0110.00819.43
8.5.10.0100.00816.85
8.5.00.0110.01020.00
8.4.180.0140.00819.55
8.4.170.0130.00920.42
8.4.160.0130.01023.77
8.4.150.0050.00716.83
8.4.140.0180.01217.43
8.4.130.0050.00617.71
8.4.120.0100.01024.00
8.4.110.0040.00422.34
8.4.100.0140.00717.83
8.4.90.0080.01018.64
8.4.80.0140.00619.38
8.4.70.0080.00517.87
8.4.60.0080.01218.76
8.4.50.0080.00518.51
8.4.40.0130.00617.57
8.4.30.0100.01017.60
8.4.20.0070.00417.70
8.4.10.0060.00317.83
8.3.300.0110.00920.88
8.3.290.0110.00920.78
8.3.280.0120.00918.30
8.3.270.0140.00516.48
8.3.260.0120.00516.80
8.3.250.0120.00718.61
8.3.240.0100.00617.38
8.3.230.0100.01216.37
8.3.220.0030.00619.12
8.3.210.0030.00418.54
8.3.200.0040.00516.59
8.3.190.0110.00716.96
8.3.180.0130.00816.27
8.3.170.0150.00318.78
8.3.160.0040.00417.17
8.3.150.0070.01419.16
8.3.140.0120.00618.86
8.3.130.0000.00818.48
8.3.120.0130.00318.71
8.3.110.0000.00920.94
8.3.100.0040.00416.35
8.3.90.0070.00018.40
8.3.80.0030.00718.30
8.3.70.0110.01116.50
8.3.60.0160.00318.56
8.3.50.0100.00717.88
8.3.40.0100.01018.91
8.3.30.0100.00518.63
8.3.20.0070.00021.95
8.3.10.0000.00823.48
8.3.00.0030.00623.71
8.2.300.0110.00922.18
8.2.290.0120.00720.36
8.2.280.0090.01018.46
8.2.270.0080.01118.87
8.2.260.0150.00316.71
8.2.250.0080.00616.50
8.2.240.0070.00317.18
8.2.230.0030.00622.58
8.2.220.0090.00037.54
8.2.210.0000.00826.77
8.2.200.0030.00616.38
8.2.190.0110.00316.58
8.2.180.0070.00716.38
8.2.170.0100.01019.04
8.2.160.0100.00322.96
8.2.150.0050.00224.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0000.00721.12
8.2.110.0100.00319.09
8.2.100.0040.00817.84
8.2.90.0050.00519.30
8.2.80.0030.00617.97
8.2.70.0000.00817.93
8.2.60.0050.00318.05
8.2.50.0050.00618.20
8.2.40.0030.00719.30
8.2.30.0000.00719.38
8.2.20.0080.00018.23
8.2.10.0000.00818.11
8.2.00.0040.00418.20
8.1.340.0100.00917.64
8.1.330.0090.00922.00
8.1.320.0080.01116.24
8.1.310.0110.01118.45
8.1.300.0060.00318.36
8.1.290.0040.00430.84
8.1.280.0030.01225.92
8.1.270.0030.00322.18
8.1.260.0000.00926.35
8.1.250.0000.00828.09
8.1.240.0080.00322.39
8.1.230.0040.00717.83
8.1.220.0030.00517.77
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0030.00617.13
8.1.180.0030.00518.10
8.1.170.0080.00018.35
8.1.160.0050.00218.86
8.1.150.0040.00419.06
8.1.140.0030.00617.44
8.1.130.0000.00718.99
8.1.120.0000.00717.36
8.1.110.0000.00817.34
8.1.100.0000.00917.50
8.1.90.0040.00417.45
8.1.80.0040.00417.47
8.1.70.0030.00317.46
8.1.60.0000.00817.59
8.1.50.0040.00417.41
8.1.40.0000.00817.52
8.1.30.0080.00017.63
8.1.20.0000.00717.53
8.1.10.0000.00817.55
8.1.00.0040.00417.51
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00718.45
8.0.270.0000.00716.82
8.0.260.0030.00317.26
8.0.250.0000.00716.98
8.0.240.0030.00316.84
8.0.230.0030.00316.94
8.0.220.0050.00316.73
8.0.210.0000.00616.88
8.0.200.0060.00016.99
8.0.190.0060.00316.95
8.0.180.0000.00716.88
8.0.170.0030.00616.91
8.0.160.0000.00716.78
8.0.150.0000.00716.90
8.0.140.0060.00316.86
8.0.130.0000.00613.36
8.0.120.0060.00316.90
8.0.110.0040.00416.71
8.0.100.0000.00716.83
8.0.90.0040.00416.98
8.0.80.0090.01216.84
8.0.70.0040.00416.82
8.0.60.0050.00216.72
8.0.50.0070.00016.87
8.0.30.0090.00917.04
8.0.20.0110.01117.40
8.0.10.0000.00717.04
8.0.00.0090.00916.74
7.4.330.0020.00215.55
7.4.320.0030.00316.59
7.4.300.0000.00616.41
7.4.290.0030.00316.57
7.4.280.0040.00416.51
7.4.270.0060.00016.61
7.4.260.0040.00416.61
7.4.250.0070.00016.54
7.4.240.0060.00316.51
7.4.230.0030.00516.50
7.4.220.0040.00416.49
7.4.210.0100.00816.53
7.4.200.0000.00716.65
7.4.160.0060.01316.53
7.4.140.0130.00717.86
7.4.130.0090.01616.54
7.4.120.0100.00816.46
7.4.110.0130.00316.48
7.4.100.0030.01616.57
7.4.90.0150.00816.54
7.4.80.0140.00819.39
7.4.70.0070.01216.49
7.4.60.0090.01116.52
7.4.50.0090.00916.54
7.4.40.0090.01216.52
7.4.30.0070.01416.57
7.4.20.0070.01116.25
7.4.10.0090.00916.45
7.4.00.0120.00915.78
7.3.330.0020.00213.10
7.3.320.0050.00013.09
7.3.310.0030.00316.22
7.3.300.0030.00316.25
7.3.290.0030.00316.12
7.3.280.0100.00616.33
7.3.260.0110.00716.37
7.3.240.0080.01116.43
7.3.230.0070.01116.37
7.3.210.0140.00916.49
7.3.200.0070.01116.59
7.3.190.0150.00516.41
7.3.180.0090.00916.35
7.3.170.0180.00016.26
7.3.160.0120.00616.18
7.3.150.0140.01016.08
7.3.140.0130.00516.24
7.3.130.0210.00016.18
7.3.120.0140.01116.46
7.3.110.0170.00716.20
7.3.100.0150.00316.40
7.3.90.0040.01216.43
7.3.80.0070.01316.48
7.3.70.0110.00516.34
7.3.60.0000.01916.22
7.3.50.0150.00316.39
7.3.40.0030.01316.43
7.3.30.0050.01016.13
7.3.20.0070.01016.24
7.3.10.0210.00715.86
7.3.00.0190.00415.82
7.2.330.0110.00616.69
7.2.320.0050.01516.75
7.2.310.0130.01116.69
7.2.300.0170.00716.77
7.2.290.0190.00616.78
7.2.280.0140.01016.54
7.2.270.0180.00016.69
7.2.260.0030.01616.74
7.2.250.0100.01016.61
7.2.240.0060.01216.36
7.2.230.0090.01416.76
7.2.220.0100.00716.67
7.2.210.0150.00516.58
7.2.200.0120.00916.48
7.2.190.0140.00616.61
7.2.180.0030.01416.54
7.2.170.0120.00616.53
7.2.160.0120.00616.43
7.2.150.0170.00316.66
7.2.140.0080.01116.73
7.2.130.0170.00716.19
7.2.120.0170.01016.20
7.2.110.0180.00716.15
7.2.100.0230.00616.13
7.2.90.0250.00916.11
7.2.80.0210.00916.12
7.2.70.0150.01116.19
7.2.60.0200.00916.45
7.2.50.0150.00916.40
7.2.40.0400.01016.92
7.2.30.0320.00716.63
7.2.20.0320.00816.62
7.2.10.0360.01216.50
7.2.00.0310.01016.60
7.1.330.0210.00915.73
7.1.320.0220.00815.70
7.1.310.0190.01315.62
7.1.300.0200.00815.66
7.1.290.0310.00315.41
7.1.280.0130.01415.50
7.1.270.0180.00915.58
7.1.260.0410.00015.47
7.1.250.0180.01015.10
7.1.240.0280.00614.53
7.1.230.0300.00914.74
7.1.220.0300.00914.60
7.1.210.0330.01014.78
7.1.200.0220.01015.09
7.1.190.0350.00314.68
7.1.180.0290.00914.81
7.1.170.0310.00814.63
7.1.160.0390.01015.45
7.1.150.0670.01015.36
7.1.140.0530.00815.40
7.1.130.0400.00715.29
7.1.120.0390.01115.33
7.1.110.0410.00915.23
7.1.100.0340.01015.17
7.1.90.0450.00515.20
7.1.80.0480.01015.24
7.1.70.0480.00814.89
7.1.60.0610.00820.84
7.1.50.0850.00820.77
7.1.40.0540.00820.55
7.1.30.0590.00520.66
7.1.20.0510.00920.81
7.1.10.0480.00714.68
7.1.00.0390.00614.77
7.0.330.0390.00714.39
7.0.320.0150.01315.20
7.0.310.0200.01415.09
7.0.300.0200.01215.03
7.0.290.0490.00715.16
7.0.280.0250.01115.10
7.0.270.0210.01515.27
7.0.260.0320.00415.09
7.0.250.0220.01114.96
7.0.240.0380.00715.28
7.0.230.0210.01115.11
7.0.220.0190.01215.02
7.0.210.0310.00415.23
7.0.200.0400.00715.12
7.0.190.0190.01315.21
7.0.180.0190.00814.87
7.0.170.0230.00815.20
7.0.160.0240.01315.30
7.0.150.0230.00915.41
7.0.140.0180.01815.12
7.0.130.0250.00614.94
7.0.120.0260.00315.28
7.0.110.0170.01115.06
7.0.100.0220.00815.16
7.0.90.0220.00815.27
7.0.80.0270.00615.05
7.0.70.0170.01015.14
7.0.60.0240.00315.34
7.0.50.0250.01014.94
7.0.40.0230.01015.30
7.0.30.0290.00615.05
7.0.20.0240.01215.30
7.0.10.0130.02115.09
7.0.00.0320.00915.12
5.6.400.0240.00415.91
5.6.390.0180.00916.14
5.6.380.0130.01415.20
5.6.370.0270.00616.06
5.6.360.0220.01716.00
5.6.350.0210.00816.10
5.6.340.0160.01315.37
5.6.330.0290.01116.21
5.6.320.0310.01315.94
5.6.310.0140.01715.83
5.6.300.0270.01115.69
5.6.290.0250.00715.82
5.6.280.0230.00816.07
5.6.270.0210.01016.10
5.6.260.0140.01816.16
5.6.250.0320.00716.22
5.6.240.0150.01516.04
5.6.230.0160.01615.94
5.6.220.0190.01215.89
5.6.210.0220.00615.93
5.6.200.0180.00816.01
5.6.190.0250.00916.17
5.6.180.0300.00415.66
5.6.170.0310.00615.98
5.6.160.0210.01415.88
5.6.150.0190.01415.69
5.6.140.0300.00816.05
5.6.130.0300.01315.97
5.6.120.0190.01315.96
5.6.110.0190.01115.89
5.6.100.0170.01515.94
5.6.90.0220.00815.95
5.6.80.0220.01015.93
5.6.70.0300.00015.80
5.6.60.0250.01415.73
5.6.50.0120.01916.03
5.6.40.0170.01715.95
5.6.30.0200.00915.97
5.6.20.0200.01015.81
5.6.10.0120.00915.96
5.6.00.0110.00815.82

preferences:
61.96 ms | 2040 KiB | 5 Q