3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "id": -1, "name": "All", "children": [ { "id": "default", "name": "default", "isDefault": true, "children": [ { "id": "AUDCAD", "name": "AUDCAD", "leaf": true }, { "id": "AUDCHF", "name": "AUDCHF", "leaf": true }, { "id": "AUDNZD", "name": "AUDNZD", "leaf": true }, { "id": "AUDSGD", "name": "AUDSGD", "leaf": true }, { "id": "AUDUSD", "name": "AUDUSD", "leaf": true }, { "id": "CADCHF", "name": "CADCHF", "leaf": true }, { "id": "CADHKD", "name": "CADHKD", "leaf": true }, { "id": "CADJPY", "name": "CADJPY", "leaf": true }, { "id": "CHFJPY", "name": "CHFJPY", "leaf": true }, { "id": "CHFSGD", "name": "CHFSGD", "leaf": true }, { "id": "EURAUD", "name": "EURAUD", "leaf": true }, { "id": "EURCHF", "name": "EURCHF", "leaf": true }, { "id": "EURDKK", "name": "EURDKK", "leaf": true }, { "id": "EURGBP", "name": "EURGBP", "leaf": true }, { "id": "EURHKD", "name": "EURHKD", "leaf": true }, { "id": "EURJPY", "name": "EURJPY", "leaf": true }, { "id": "EURNOK", "name": "EURNOK", "leaf": true }, { "id": "EURNZD", "name": "EURNZD", "leaf": true }, { "id": "EURPLN", "name": "EURPLN", "leaf": true }, { "id": "EURRUB", "name": "EURRUB", "leaf": true }, { "id": "EURSEK", "name": "EURSEK", "leaf": true }, { "id": "EURSGD", "name": "EURSGD", "leaf": true }, { "id": "EURTRY", "name": "EURTRY", "leaf": true }, { "id": "EURUSD", "name": "EURUSD", "leaf": true }, { "id": "EURZAR", "name": "EURZAR", "leaf": true }, { "id": "GBPAUD", "name": "GBPAUD", "leaf": true }, { "id": "GBPCAD", "name": "GBPCAD", "leaf": true }, { "id": "GBPCHF", "name": "GBPCHF", "leaf": true }, { "id": "GBPJPY", "name": "GBPJPY", "leaf": true }, { "id": "GBPNZD", "name": "GBPNZD", "leaf": true }, { "id": "GBPTRY", "name": "GBPTRY", "leaf": true }, { "id": "GBPUSD", "name": "GBPUSD", "leaf": true }, { "id": "HKDJPY", "name": "HKDJPY", "leaf": true }, { "id": "NZDCAD", "name": "NZDCAD", "leaf": true }, { "id": "NZDCHF", "name": "NZDCHF", "leaf": true }, { "id": "NZDJPY", "name": "NZDJPY", "leaf": true }, { "id": "NZDUSD", "name": "NZDUSD", "leaf": true }, { "id": "SGDJPY", "name": "SGDJPY", "leaf": true }, { "id": "USDCAD", "name": "USDCAD", "leaf": true }, { "id": "USDCHF", "name": "USDCHF", "leaf": true }, { "id": "USDCNH", "name": "USDCNH", "leaf": true }, { "id": "USDDKK", "name": "USDDKK", "leaf": true }, { "id": "USDHKD", "name": "USDHKD", "leaf": true }, { "id": "USDJPY", "name": "USDJPY", "leaf": true }, { "id": "USDMXN", "name": "USDMXN", "leaf": true }, { "id": "USDNOK", "name": "USDNOK", "leaf": true }, { "id": "USDPLN", "name": "USDPLN", "leaf": true }, { "id": "USDRUB", "name": "USDRUB", "leaf": true }, { "id": "USDRUR", "name": "USDRUR", "leaf": true }, { "id": "USDSEK", "name": "USDSEK", "leaf": true }, { "id": "USDSGD", "name": "USDSGD", "leaf": true }, { "id": "USDTRY", "name": "USDTRY", "leaf": true }, { "id": "USDZAR", "name": "USDZAR", "leaf": true }, { "id": "XAGUSD", "name": "XAGUSD", "leaf": true }, { "id": "XAUUSD", "name": "XAUUSD", "leaf": true } ] }, { "id": "\u0442\u0435\u0441\u0442", "name": "\u0442\u0435\u0441\u0442", "isDefault": false, "children": [ { "id": "AUDJPY", "name": "AUDJPY", "leaf": true }, { "id": "EURCAD", "name": "EURCAD", "leaf": true } ] } ], "success": true }'; print_r(json_decode($json,true));

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.77
8.3.30.0110.00418.67
8.3.20.0070.00020.14
8.3.10.0080.00021.77
8.3.00.0000.00719.14
8.2.170.0090.00622.96
8.2.160.0100.00322.26
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0000.00719.64
8.2.110.0090.00022.07
8.2.100.0030.00917.78
8.2.90.0060.00319.23
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0050.00317.66
8.2.50.0000.00818.07
8.2.40.0040.00718.09
8.2.30.0000.00717.91
8.2.20.0030.00617.55
8.2.10.0040.00417.95
8.2.00.0040.00417.57
8.1.270.0050.00318.89
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00023.86
8.1.230.0070.00419.05
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0000.00817.35
8.1.180.0060.00318.10
8.1.170.0040.00418.64
8.1.160.0020.00521.97
8.1.150.0020.00519.02
8.1.140.0040.00419.23
8.1.130.0040.00417.81
8.1.120.0000.00817.35
8.1.110.0040.00417.42
8.1.100.0050.00217.42
8.1.90.0040.00417.49
8.1.80.0050.00317.35
8.1.70.0040.00417.41
8.1.60.0000.00817.51
8.1.50.0000.00917.50
8.1.40.0040.00417.42
8.1.30.0000.00917.58
8.1.20.0050.00317.65
8.1.10.0040.00417.41
8.1.00.0000.00817.33
8.0.300.0030.00618.77
8.0.290.0080.00016.75
8.0.280.0080.00018.42
8.0.270.0030.00317.20
8.0.260.0000.00717.11
8.0.250.0000.00716.96
8.0.240.0000.00816.83
8.0.230.0000.00716.89
8.0.220.0050.00316.89
8.0.210.0040.00416.89
8.0.200.0040.00416.82
8.0.190.0060.00316.84
8.0.180.0000.00816.82
8.0.170.0070.00016.77
8.0.160.0000.00716.83
8.0.150.0040.00416.72
8.0.140.0040.00416.80
8.0.130.0030.00313.34
8.0.120.0020.00516.70
8.0.110.0020.00516.91
8.0.100.0050.00216.77
8.0.90.0040.00416.75
8.0.80.0090.00616.75
8.0.70.0000.00716.80
8.0.60.0000.00716.78
8.0.50.0000.00716.78
8.0.30.0120.01016.93
8.0.20.0150.00417.40
8.0.10.0040.00417.01
8.0.00.0100.00816.79
7.4.330.0050.00015.03
7.4.320.0060.00016.50
7.4.300.0030.00316.56
7.4.290.0030.00316.50
7.4.280.0030.00616.48
7.4.270.0030.00316.48
7.4.260.0050.00316.46
7.4.250.0090.00016.43
7.4.240.0020.00616.45
7.4.230.0000.00716.59
7.4.220.0110.00716.47
7.4.210.0050.01016.54
7.4.200.0000.00716.52
7.4.160.0180.00016.41
7.4.150.0160.00717.40
7.4.140.0080.00817.86
7.4.130.0050.01216.33
7.4.120.0060.01416.57
7.4.110.0100.00716.68
7.4.100.0090.01516.54
7.4.90.0110.00616.50
7.4.80.0030.01319.39
7.4.70.0070.01416.55
7.4.60.0040.01216.46
7.4.50.0050.00316.64
7.4.40.0030.01316.45
7.4.30.0150.00316.43
7.4.00.0090.00615.07
7.3.330.0000.00713.03
7.3.320.0020.00213.04
7.3.310.0000.00716.13
7.3.300.0070.00016.18
7.3.290.0030.01216.22
7.3.280.0090.00716.21
7.3.270.0140.00617.40
7.3.260.0090.00916.43
7.3.250.0130.00716.29
7.3.240.0140.00316.28
7.3.230.0160.00016.52
7.3.210.0110.00716.44
7.3.200.0100.01119.39
7.3.190.0060.01016.18
7.3.180.0120.00416.55
7.3.170.0060.01516.36
7.3.160.0110.00416.38
7.3.10.0120.00316.15
7.3.00.0080.00816.06
7.2.330.0120.01216.16
7.2.320.0120.00916.52
7.2.310.0090.00916.50
7.2.300.0070.01416.46
7.2.290.0060.01016.52
7.2.130.0160.00616.32
7.2.120.0060.00916.60
7.2.110.0040.01216.63
7.2.100.0030.01116.53
7.2.90.0030.01216.48
7.2.80.0120.00616.45
7.2.70.0110.00416.66
7.2.60.0100.00316.62
7.2.50.0060.01016.32
7.2.40.0040.00816.55
7.2.30.0040.00916.59
7.2.20.0040.00816.39
7.2.10.0040.00716.21
7.2.00.0080.00617.98
7.1.250.0110.00415.18
7.1.200.0070.00415.59
7.1.100.0040.01117.67
7.1.70.0080.00016.97
7.1.60.0110.00719.46
7.1.50.0090.01316.83
7.1.00.0030.07722.30
7.0.200.0110.00416.56
7.0.140.0130.06022.12
7.0.60.0030.08721.86
7.0.50.0100.08317.89
7.0.40.0300.04320.23
7.0.30.0230.05720.13
7.0.20.0400.07320.33
7.0.10.0170.05720.25
7.0.00.0130.06020.22
5.6.280.0200.07021.06
5.6.210.0130.05320.74
5.6.200.0170.08018.15
5.6.190.0030.07320.77
5.6.180.0600.07320.63
5.6.170.0300.03720.44
5.6.160.0230.08720.54
5.6.150.0030.05718.22
5.6.140.0170.03718.14
5.6.130.0130.07018.20
5.6.120.0100.09721.05
5.6.110.0130.07021.14
5.6.100.0070.04721.01
5.6.90.0330.08020.89
5.6.80.0270.07720.56
5.5.350.0300.08720.50
5.5.340.0170.08317.96
5.5.330.0130.08320.13
5.5.320.0470.07020.37
5.5.310.0370.07720.34
5.5.300.0030.09717.97
5.5.290.0100.08317.98
5.5.280.0070.04720.80
5.5.270.0200.06720.76
5.5.260.0200.08320.83
5.5.250.0130.03320.54
5.5.240.0400.06720.11
5.4.450.0470.06019.20
5.4.440.0470.06019.45
5.4.430.0330.04019.68
5.4.420.0200.06319.51
5.4.410.0330.06719.40
5.4.400.0270.05319.18
5.4.390.1130.06018.62
5.4.380.0970.07018.56
5.4.370.0930.05718.77
5.4.360.0900.06718.57
5.4.350.0970.06018.52
5.4.340.0930.05018.55
5.4.320.1030.05318.63
5.4.310.1000.06318.58
5.4.300.0970.05018.64
5.4.290.0830.06018.80
5.4.280.0970.05718.55
5.4.270.1100.07018.55
5.4.260.0870.05718.76
5.4.250.0830.06018.58
5.4.240.0630.05318.73
5.4.230.0870.05318.75
5.4.220.0630.07018.54
5.4.210.0800.07318.73
5.4.200.1300.03716.67
5.4.190.1230.05318.75
5.4.180.1030.06318.70
5.4.170.0700.06718.76
5.4.160.1000.07318.49
5.4.150.1030.08318.70
5.4.140.1470.08016.33
5.4.130.0900.06016.29
5.4.120.1030.06316.33
5.4.110.1370.05016.32
5.4.100.1000.07016.37
5.4.90.0730.07016.38
5.4.80.0900.05716.24
5.4.70.1170.07716.47
5.4.60.0800.07316.32
5.4.50.0930.06016.31
5.4.40.0900.06716.21
5.4.30.1000.05716.26
5.4.20.0930.06716.30
5.4.10.0900.05716.45
5.4.00.1200.06015.83
5.3.290.1130.06714.77
5.3.280.1170.06014.69
5.3.270.1030.06314.80
5.3.260.1200.06014.68
5.3.250.0870.07014.68
5.3.240.1170.04714.65
5.3.230.1070.06714.70
5.3.220.1200.05314.75
5.3.210.1070.06314.68
5.3.200.1100.06314.66
5.3.190.1230.06314.83
5.3.180.0930.05014.66
5.3.170.0830.05014.67
5.3.160.0830.05314.75
5.3.150.1030.05314.64
5.3.140.0800.05314.82
5.3.130.0970.05014.71
5.3.120.1030.04714.64
5.3.110.0870.06314.71
5.3.100.1170.08014.22
5.3.90.0970.05314.21
5.3.80.1000.05014.08
5.3.70.1030.04314.18
5.3.60.0930.06314.06
5.3.50.1000.05714.01
5.3.40.0830.06714.12
5.3.30.0970.05314.02
5.3.20.0970.04313.86
5.3.10.0770.06713.82
5.3.00.0900.04713.77
5.2.170.0630.06311.24
5.2.160.0670.04311.24
5.2.150.0770.06711.25
5.2.140.0730.05311.42
5.2.130.0770.05011.21
5.2.120.0770.05011.18
5.2.110.0870.04011.16
5.2.100.0630.04711.27
5.2.90.0800.03311.37
5.2.80.0800.04711.23
5.2.70.0800.05311.36
5.2.60.0830.04711.09
5.2.50.0930.04311.06
5.2.40.0900.03711.16
5.2.30.0600.04711.23
5.2.20.0800.04711.08
5.2.10.0700.04011.13
5.2.00.0570.04010.79
5.1.60.0530.03310.14
5.1.50.0570.0339.96
5.1.40.0530.03010.10
5.1.30.0530.03710.32
5.1.20.0830.02310.33
5.1.10.0470.05010.22
5.1.00.0530.03310.21
5.0.50.0300.0238.59
5.0.40.0370.0338.55
5.0.30.0300.0408.27
5.0.20.0430.0278.22
5.0.10.0270.0408.30
5.0.00.0270.0408.30
4.4.90.0200.0275.93
4.4.80.0270.0205.92
4.4.70.0300.0205.82
4.4.60.0370.0135.87
4.4.50.0430.0205.87
4.4.40.0270.0335.88
4.4.30.0270.0205.91
4.4.20.0230.0235.95
4.4.10.0230.0235.99
4.4.00.0270.0335.91
4.3.110.0270.0205.80
4.3.100.0300.0175.81
4.3.90.0270.0205.80
4.3.80.0170.0405.83
4.3.70.0270.0205.85
4.3.60.0230.0235.82
4.3.50.0270.0205.92
4.3.40.0270.0335.88
4.3.30.0130.0204.67
4.3.20.0170.0174.59
4.3.10.0170.0204.55
4.3.00.0030.0308.69

preferences:
60.06 ms | 400 KiB | 5 Q