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 }'; var_dump(json_decode($json,false));

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.60.0100.01018.00
8.3.50.0170.00718.30
8.3.40.0110.00718.63
8.3.30.0100.01018.89
8.3.20.0090.00020.34
8.3.10.0050.00521.72
8.3.00.0030.00619.16
8.2.180.0200.00016.63
8.2.170.0160.01022.96
8.2.160.0100.00622.08
8.2.150.0030.00624.18
8.2.140.0100.00024.66
8.2.130.0030.00626.16
8.2.120.0000.01020.79
8.2.110.0070.00421.12
8.2.100.0130.00017.76
8.2.90.0090.00019.22
8.2.80.0030.00617.97
8.2.70.0090.00017.50
8.2.60.0060.00317.80
8.2.50.0070.00318.10
8.2.40.0040.00420.59
8.2.30.0040.00419.09
8.2.20.0060.00317.75
8.2.10.0000.00918.00
8.2.00.0030.00617.54
8.1.280.0070.01325.92
8.1.270.0090.00023.99
8.1.260.0100.00026.35
8.1.250.0090.00028.09
8.1.240.0080.00422.74
8.1.230.0030.01017.89
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0070.00317.11
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0030.00618.46
8.1.160.0000.00918.77
8.1.150.0000.00918.75
8.1.140.0090.00019.09
8.1.130.0040.00417.93
8.1.120.0060.00317.44
8.1.110.0030.00617.44
8.1.100.0060.00317.34
8.1.90.0080.00017.47
8.1.80.0080.00017.42
8.1.70.0000.00817.37
8.1.60.0030.00617.54
8.1.50.0000.00917.50
8.1.40.0030.00617.55
8.1.30.0040.00417.54
8.1.20.0000.00917.55
8.1.10.0040.00417.36
8.1.00.0030.00617.40
8.0.300.0080.00318.77
8.0.290.0000.00816.63
8.0.280.0030.00518.33
8.0.270.0040.00417.23
8.0.260.0050.00217.23
8.0.250.0040.00416.82
8.0.240.0080.00016.90
8.0.230.0040.00416.82
8.0.220.0040.00416.78
8.0.210.0060.00316.76
8.0.200.0000.00816.90
8.0.190.0060.00316.81
8.0.180.0000.00816.89
8.0.170.0030.00516.89
8.0.160.0030.00616.88
8.0.150.0060.00316.76
8.0.140.0030.00616.83
8.0.130.0030.00313.26
8.0.120.0040.00416.89
8.0.110.0030.00616.86
8.0.100.0080.00016.77
8.0.90.0030.00516.74
8.0.80.0100.00916.82
8.0.70.0030.00516.95
8.0.60.0000.00816.83
8.0.50.0050.00316.74
8.0.30.0170.01117.08
8.0.20.0140.01417.40
8.0.10.0040.00416.93
8.0.00.0110.01416.73
7.4.330.0030.00315.04
7.4.320.0040.00416.57
7.4.300.0000.00716.54
7.4.290.0020.00516.36
7.4.280.0090.00016.39
7.4.270.0070.00016.63
7.4.260.0080.00016.59
7.4.250.0040.00416.42
7.4.240.0030.00616.54
7.4.230.0040.00416.32
7.4.220.0030.02016.61
7.4.210.0060.01216.50
7.4.200.0080.00016.66
7.4.160.0180.00516.31
7.4.150.0160.00817.40
7.4.140.0170.01217.86
7.4.130.0150.01116.51
7.4.120.0170.00716.43
7.4.110.0150.00916.50
7.4.100.0170.00616.42
7.4.90.0040.01916.50
7.4.80.0110.01119.39
7.4.70.0170.00616.44
7.4.60.0140.01016.46
7.4.50.0030.00616.29
7.4.40.0130.01116.40
7.4.30.0160.00816.42
7.4.00.0090.00915.09
7.3.330.0030.00812.97
7.3.320.0030.00313.02
7.3.310.0090.00016.24
7.3.300.0030.00516.17
7.3.290.0060.01216.14
7.3.280.0080.01316.19
7.3.270.0180.00917.40
7.3.260.0120.01216.14
7.3.250.0170.01316.33
7.3.240.0180.00716.42
7.3.230.0120.01916.39
7.3.210.0100.01616.37
7.3.200.0120.00919.39
7.3.190.0120.00916.20
7.3.180.0110.00916.13
7.3.170.0170.00716.27
7.3.160.0150.00616.18
7.3.00.0220.01116.54
7.2.330.0110.01416.28
7.2.320.0190.00316.47
7.2.310.0080.01516.20
7.2.300.0120.01216.57
7.2.290.0130.00916.54
7.2.130.0250.00816.40
7.2.120.0220.01416.71
7.2.110.0110.01716.42
7.2.100.0240.00916.46
7.2.90.0240.01216.75
7.2.80.0290.01016.78
7.2.70.0190.01916.59
7.2.60.0260.01216.50
7.2.50.0300.01016.68
7.2.40.0160.01916.50
7.2.30.0190.01116.59
7.2.20.0290.00516.68
7.2.10.0150.01516.73
7.2.00.0080.01117.93
7.1.250.0190.01015.50
7.1.240.0220.01015.82
7.1.230.0170.01415.49
7.1.220.0210.00815.47
7.1.210.0230.01315.71
7.1.200.0270.00615.55
7.1.190.0180.01215.77
7.1.180.0160.01615.61
7.1.170.0200.01415.68
7.1.160.0220.00915.84
7.1.150.0240.00915.38
7.1.140.0150.01515.48
7.1.130.0190.01515.64
7.1.120.0230.01315.51
7.1.110.0260.01115.66
7.1.100.0090.01116.91
7.1.90.0250.01415.88
7.1.80.0130.01315.77
7.1.70.0150.00816.25
7.1.60.0110.00817.67
7.1.50.0200.00716.27
7.1.40.0060.01015.77
7.1.30.0200.00715.65
7.1.20.0190.01115.54
7.1.10.0220.00615.66
7.1.00.0160.04218.92
7.0.330.0190.00914.96
7.0.320.0250.00815.14
7.0.310.0200.01015.52
7.0.300.0200.00515.48
7.0.290.0150.01515.34
7.0.280.0100.02315.42
7.0.270.0220.00915.06
7.0.260.0210.00915.18
7.0.250.0180.01415.38
7.0.240.0260.00715.44
7.0.230.0210.00815.28
7.0.220.0210.00615.45
7.0.210.0140.01015.19
7.0.200.0100.00816.15
7.0.190.0220.00615.27
7.0.180.0260.00215.07
7.0.170.0250.00515.21
7.0.160.0150.00914.97
7.0.150.0160.01315.25
7.0.140.0100.03118.68
7.0.130.0120.01615.32
7.0.120.0260.00615.38
7.0.110.0180.00615.49
7.0.100.0250.00715.39
7.0.90.0240.00615.34
7.0.80.0170.00915.29
7.0.70.0120.01515.30
7.0.60.0100.04717.58
7.0.50.0160.04316.58
7.0.40.0050.03916.83
7.0.30.0300.03516.74
7.0.20.0230.04116.76
7.0.10.0050.03216.79
7.0.00.0100.03516.65
5.6.380.0210.00514.08
5.6.370.0170.01014.46
5.6.360.0220.00614.22
5.6.350.0160.01614.20
5.6.340.0270.00414.42
5.6.330.0170.01314.19
5.6.320.0170.01314.38
5.6.310.0130.01314.41
5.6.300.0150.00914.27
5.6.290.0180.00714.37
5.6.280.0080.04517.67
5.6.270.0200.00814.28
5.6.260.0250.00314.62
5.6.250.0100.01714.33
5.6.240.0240.00513.87
5.6.230.0140.00914.25
5.6.220.0110.01114.07
5.6.210.0200.04317.48
5.6.200.0160.02016.05
5.6.190.0090.04117.47
5.6.180.0340.01817.35
5.6.170.0230.02817.49
5.6.160.0070.03017.42
5.6.150.0060.04616.03
5.6.140.0070.04316.31
5.6.130.0040.02916.23
5.6.120.0050.02517.68
5.6.110.0100.04017.65
5.6.100.0070.04717.59
5.6.90.0130.04017.52
5.6.80.0110.02517.23
5.6.70.0080.00814.22
5.6.60.0110.00414.14
5.6.50.0120.00414.26
5.6.40.0130.00014.23
5.6.30.0000.01014.09
5.6.20.0110.00314.07
5.6.10.0000.01614.09
5.6.00.0090.00314.27
5.5.380.0160.00611.18
5.5.370.0150.00911.18
5.5.360.0080.01211.18
5.5.350.2160.02515.76
5.5.340.0150.04314.55
5.5.330.0120.04615.82
5.5.320.0080.02315.72
5.5.310.0230.04315.71
5.5.300.0030.02314.55
5.5.290.0130.04014.55
5.5.280.0050.02715.99
5.5.270.0070.02615.99
5.5.260.0070.04716.00
5.5.250.0120.02715.98
5.5.240.0020.03715.72
5.5.230.0070.00711.18
5.5.220.0040.01111.18
5.5.210.0040.00711.18
5.5.200.0040.00811.18
5.5.190.0060.00611.18
5.5.180.0070.00711.18
5.5.170.0030.01011.18
5.5.160.0070.01111.18
5.5.150.0100.00311.18
5.5.140.0150.00311.18
5.5.130.0070.00311.18
5.5.120.0060.00311.18
5.5.110.0120.00311.18
5.5.100.0110.00611.18
5.5.90.0050.00511.18
5.5.80.0090.00011.18
5.5.70.0090.00311.18
5.5.60.0060.01011.18
5.5.50.0080.00811.18
5.5.40.0030.01211.18
5.5.30.0090.00611.18
5.5.20.0090.00311.18
5.5.10.0120.00311.18
5.5.00.0060.00311.18
5.4.450.0400.03415.28
5.4.440.0250.03515.30
5.4.430.0100.04115.32
5.4.420.0180.02615.35
5.4.410.0190.03315.35
5.4.400.0140.04015.07
5.4.390.0580.02814.96
5.4.380.0570.03714.87
5.4.370.0340.03214.93
5.4.360.0500.03214.84
5.4.350.0550.02814.84
5.4.340.0570.03314.84
5.4.330.0180.00411.18
5.4.320.0530.03014.92
5.4.310.0760.03614.91
5.4.300.0570.02714.84
5.4.290.0570.03114.90
5.4.280.0500.03114.90
5.4.270.0560.02814.93
5.4.260.0490.02814.96
5.4.250.0490.03514.91
5.4.240.0620.03514.80
5.4.230.0460.03414.84
5.4.220.0640.03214.86
5.4.210.0610.02814.90
5.4.200.0680.02513.87
5.4.190.0570.03014.92
5.4.180.0690.03514.89
5.4.170.0580.03314.88
5.4.160.0490.02614.86
5.4.150.0520.03614.93
5.4.140.0580.02613.75
5.4.130.0560.02813.70
5.4.120.0430.03813.64
5.4.110.0600.02713.70
5.4.100.0520.03013.70
5.4.90.0470.02913.66
5.4.80.0600.04013.74
5.4.70.0560.03813.68
5.4.60.0540.03513.67
5.4.50.0470.03813.69
5.4.40.0510.04313.70
5.4.30.0570.03013.72
5.4.20.0590.03213.68
5.4.10.0550.03213.60
5.4.00.0350.03013.45
5.3.290.0440.02812.94
5.3.280.0390.03912.88
5.3.270.0420.03812.90
5.3.260.0370.03212.98
5.3.250.0460.02612.88
5.3.240.0540.02412.90
5.3.230.0420.03612.91
5.3.220.0520.03112.86
5.3.210.0490.03312.85
5.3.200.0460.02612.88
5.3.190.0420.03012.88
5.3.180.0500.02712.90
5.3.170.0330.03312.95
5.3.160.0510.02612.95
5.3.150.0500.02712.94
5.3.140.0360.02912.95
5.3.130.0460.02712.89
5.3.120.0390.03612.92
5.3.110.0380.03312.88
5.3.100.0500.02912.60
5.3.90.0470.03012.68
5.3.80.0420.03312.65
5.3.70.0390.03312.67
5.3.60.0340.03512.62
5.3.50.0460.02612.59
5.3.40.0390.03712.65
5.3.30.0470.03212.62
5.3.20.0400.02412.46
5.3.10.0470.02412.42
5.3.00.0410.03112.46
5.2.170.0390.02411.21
5.2.160.0280.02211.27
5.2.150.0380.02311.21
5.2.140.0430.02511.17
5.2.130.0340.02211.24
5.2.120.0320.02311.14
5.2.110.0400.02111.24
5.2.100.0290.02511.19
5.2.90.0340.02211.19
5.2.80.0340.02611.13
5.2.70.0380.02211.15
5.2.60.0350.02311.17
5.2.50.0330.02811.11
5.2.40.0380.02411.11
5.2.30.0380.02111.09
5.2.20.0360.01711.08
5.2.10.0290.02411.04
5.2.00.0350.02711.01
5.1.60.0320.01310.67
5.1.50.0200.02510.61
5.1.40.0320.02210.61
5.1.30.0330.02410.77
5.1.20.0250.02410.78
5.1.10.0230.01810.69
5.1.00.0280.02210.69
5.0.50.0170.0179.85
5.0.40.0140.0169.81
5.0.30.0150.0279.76
5.0.20.0170.0169.75
5.0.10.0200.0149.68
5.0.00.0200.0199.68
4.4.90.0150.0118.52
4.4.80.0060.0138.51
4.4.70.0090.0178.55
4.4.60.0150.0158.55
4.4.50.0180.0128.53
4.4.40.0130.0218.53
4.4.30.0200.0108.52
4.4.20.0140.0118.55
4.4.10.0140.0158.56
4.4.00.0150.0228.53
4.3.110.0110.0158.48
4.3.100.0220.0088.50
4.3.90.0170.0148.49
4.3.80.0130.0188.48
4.3.70.0130.0128.53
4.3.60.0160.0158.48
4.3.50.0120.0178.49
4.3.40.0130.0218.47
4.3.30.0100.0137.91
4.3.20.0120.0117.88
4.3.10.0130.0187.88
4.3.00.0080.0129.93

preferences:
49.16 ms | 400 KiB | 5 Q