3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "Error": "", "ErrorCode": 0, "Guid": "", "Id": 0, "Success": true, "Value": [ { "MAIN": 225, "PHASE": 219418523, "G": "7TH Division", "GI": "2031892", "DOOR": "8907", "Gate": { "RG": 2, "BNS": "4 Window", "BS": { "SB1": 2 }, "TQ": [ { "Key": 1, "Value": { "T1": 2 } }, { "Key": 2, "Value": {} } ], "MR": -1, "MS": 600 }, "AA": "81", "AI": "8745524" }, { "MAIN": 300, "PHASE": 219418523, "G": "8TH Division", "GI": "4526892", "DOOR": "8877", "GATE": { "RG": 2, "BNS": "5 Window", "BS": { "SB1": 2 }, "TQ": [ { "Key": 1, "Value": { "T1": 2 } }, { "Key": 2, "Value": {} } ], "MR": -1, "MS": 600 }, "AA": "91", "AI": "8758421" }]}'; $parsed = json_decode($json,true); $result = []; if($parsed['Success']){ // check if your api json response is true. foreach($parsed['Value'] as $val){ $result[] = [ "G"=> $val['G'], "GI"=> $val['GI'], "DOOR"=> $val['DOOR'], "AA"=> $val['AA'], "AI"=> $val['AI'] ]; // or what you want. } } echo json_encode($result);

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.4.120.0100.00820.41
8.4.110.0110.00922.48
8.4.100.0160.00617.92
8.4.90.0120.00818.76
8.4.80.0040.00617.75
8.4.70.0040.00518.00
8.4.60.0110.00918.69
8.4.50.0050.00417.80
8.4.40.0130.00719.59
8.4.30.0110.00820.64
8.4.20.0130.00717.96
8.4.10.0060.00319.64
8.3.250.0100.00818.89
8.3.240.0120.00716.41
8.3.230.0110.00716.49
8.3.220.0030.00517.42
8.3.210.0120.00616.61
8.3.200.0050.00416.63
8.3.190.0120.00617.27
8.3.180.0050.00516.44
8.3.170.0100.00918.80
8.3.160.0070.00718.48
8.3.150.0090.00920.56
8.3.140.0090.00916.41
8.3.130.0070.00718.31
8.3.120.0080.00020.98
8.3.110.0030.00618.52
8.3.100.0120.00318.66
8.3.90.0000.00826.77
8.3.80.0100.00019.36
8.3.70.0150.01216.63
8.3.60.0120.00918.43
8.3.50.0070.00724.49
8.3.40.0080.00818.70
8.3.30.0120.00318.84
8.3.20.0040.00420.90
8.3.10.0000.00821.79
8.3.00.0080.00021.58
8.2.290.0050.00420.66
8.2.280.0080.00718.13
8.2.270.0120.00619.10
8.2.260.0040.00418.64
8.2.250.0030.00616.72
8.2.240.0030.01019.11
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0090.00926.77
8.2.200.0060.00318.88
8.2.190.0140.00016.58
8.2.180.0100.01018.54
8.2.170.0080.01122.96
8.2.160.0070.00720.35
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.61
8.2.110.0030.00720.35
8.2.100.0110.00017.72
8.2.90.0040.00417.74
8.2.80.0040.00419.16
8.2.70.0080.00017.63
8.2.60.0040.00417.50
8.2.50.0000.00918.07
8.2.40.0000.00718.16
8.2.30.0040.00418.14
8.2.20.0050.00218.00
8.2.10.0040.00419.31
8.2.00.0000.00719.32
8.1.330.0110.00821.85
8.1.320.0130.00816.30
8.1.310.0110.00718.32
8.1.300.0060.00319.92
8.1.290.0000.00830.84
8.1.280.0150.00725.92
8.1.270.0100.00020.73
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00320.86
8.1.230.0030.00820.69
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0090.00318.43
8.1.160.0000.00718.87
8.1.150.0040.00418.94
8.1.140.0020.00520.82
8.1.130.0040.00421.93
8.1.120.0030.00317.48
8.1.110.0070.00017.49
8.1.100.0050.00317.47
8.1.90.0000.00717.51
8.1.80.0030.00717.37
8.1.70.0000.00817.49
8.1.60.0040.00417.52
8.1.50.0060.00317.50
8.1.40.0030.00617.52
8.1.30.0040.00417.56
8.1.20.0000.00817.49
8.1.10.0040.00417.59
8.1.00.0000.01117.43
8.0.300.0040.00419.98
8.0.290.0040.00416.63
8.0.280.0000.00818.36
8.0.270.0000.00718.02
8.0.260.0070.00019.99
8.0.250.0020.00516.93
8.0.240.0070.00316.98
8.0.230.0000.00716.88
8.0.220.0030.00316.80
8.0.210.0050.00216.83
8.0.200.0000.00716.97
8.0.190.0000.00716.97
8.0.180.0000.00816.82
8.0.170.0040.00416.96
8.0.160.0080.00016.83
8.0.150.0040.00416.79
8.0.140.0000.00716.71
8.0.130.0030.00313.32
8.0.120.0050.00216.77
8.0.110.0070.00016.89
8.0.100.0030.00516.74
8.0.90.0040.00416.84
8.0.80.0100.00616.88
8.0.70.0000.00816.86
8.0.60.0000.00716.80
8.0.50.0040.00416.89
8.0.30.0100.00717.12
8.0.20.0120.00617.07
8.0.10.0000.00716.93
8.0.00.0090.00916.96
7.4.330.0050.00016.77
7.4.320.0000.00716.50
7.4.300.0030.00316.60
7.4.290.0030.00616.61
7.4.280.0000.00716.63
7.4.270.0040.00416.62
7.4.260.0050.00013.29
7.4.250.0040.00416.52
7.4.240.0060.00116.55
7.4.230.0050.00216.59
7.4.220.0020.00516.61
7.4.210.0090.00616.54
7.4.200.0070.00016.70
7.4.130.0150.00616.41
7.4.120.0070.01016.57
7.4.110.0080.00816.46
7.4.100.0080.00816.36
7.4.90.0150.00316.58
7.4.80.0170.00719.39
7.4.70.0110.01116.43
7.4.60.0090.00916.50
7.4.50.0120.00816.53
7.4.40.0120.01016.49
7.4.30.0150.00616.36
7.4.20.0040.01516.47
7.4.10.0070.01115.71
7.4.00.0100.00815.84
7.3.330.0070.00016.35
7.3.320.0050.00013.10
7.3.310.0040.00416.13
7.3.300.0000.00716.24
7.3.290.0060.01016.19
7.3.280.0090.01216.14
7.3.260.0110.00816.31
7.3.230.0050.01316.40
7.3.210.0100.00716.46
7.3.200.0060.01116.26
7.3.190.0080.01216.37
7.3.180.0120.00716.32
7.3.170.0150.00716.21
7.3.160.0070.01216.29
7.3.150.0060.01216.42
7.3.140.0140.00616.29
7.3.130.0100.01015.81
7.3.120.0120.00515.68
7.3.110.0110.00815.83
7.3.100.0060.01315.91
7.3.90.0090.01015.68
7.3.80.0090.00915.84
7.3.70.0090.01015.82
7.3.60.0110.00715.76
7.3.50.0110.00615.66
7.3.40.0100.00815.74
7.3.30.0090.00715.68
7.3.20.0500.01015.79
7.3.10.0080.01015.79
7.3.00.0230.00515.90
7.2.330.0080.00816.74
7.2.320.0090.01216.71
7.2.310.0080.01016.66
7.2.300.0130.00716.65
7.2.290.0130.00716.66
7.2.280.0080.01016.59
7.2.270.0130.00616.57
7.2.260.0110.01016.17
7.2.250.0100.00716.19
7.2.240.0120.00816.15
7.2.230.0120.00816.19
7.2.220.0070.01116.04
7.2.210.0090.00916.13
7.2.200.0070.01315.97
7.2.190.0080.01316.13
7.2.180.0100.00815.93
7.2.170.0100.00815.99
7.2.160.0070.01216.19
7.2.150.0130.00816.02
7.2.140.0070.01516.08
7.2.130.0120.01416.10
7.2.120.0090.01216.13
7.2.110.0070.01116.00
7.2.100.0120.00816.09
7.2.90.0130.00816.10
7.2.80.0100.01016.04
7.2.70.0120.00915.97
7.2.60.0040.01616.06
7.2.50.0120.00716.17
7.2.40.0140.01016.10
7.2.30.0130.00916.28
7.2.20.0080.01316.00
7.2.10.0110.01016.16
7.2.00.0130.01116.04

preferences:
30.49 ms | 403 KiB | 5 Q