3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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,true));
based on E06VK

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0130.00316.66
7.2.00.0220.00019.24
7.1.200.0100.00315.82
7.1.100.0030.00617.66
7.1.70.0060.01016.96
7.1.60.0060.01019.46
7.1.50.0070.01716.89
7.1.00.0030.08022.42
7.0.200.0080.00316.68
7.0.140.0030.05321.91
7.0.60.0100.08719.86
7.0.50.0030.07017.82
7.0.40.0070.06020.30
7.0.30.0370.06720.21
7.0.20.0300.04720.30
7.0.10.0070.05320.02
7.0.00.0070.04720.30
5.6.280.0000.08021.15
5.6.210.0100.08020.56
5.6.200.0200.05018.20
5.6.190.0030.09720.47
5.6.180.0400.04720.34
5.6.170.0200.04020.51
5.6.160.0100.07320.47
5.6.150.0100.06718.13
5.6.140.0070.04718.09
5.6.130.0000.04318.16
5.6.120.0170.08021.02
5.6.110.0100.07321.00
5.6.100.0070.08021.16
5.6.90.0230.07021.01
5.6.80.0130.07320.42
5.5.350.4170.04020.45
5.5.340.0070.08017.97
5.5.330.0100.08020.25
5.5.320.0400.05720.21
5.5.310.0230.04020.23
5.5.300.0170.07317.95
5.5.290.0000.04318.00
5.5.280.0130.07720.91
5.5.270.0170.07020.87
5.5.260.0030.06320.71
5.5.250.0130.08320.62
5.5.240.0070.07020.41
5.4.450.0530.06319.09
5.4.440.0370.06719.57
5.4.430.0230.06019.42
5.4.420.0270.06319.48
5.4.410.0070.06319.19
5.4.400.0200.06019.26
5.4.390.0870.05718.73
5.4.380.1070.05318.50
5.4.370.0970.05318.56
5.4.360.1000.06318.71
5.4.350.1030.06718.50
5.4.340.0930.06318.71
5.4.320.0930.05718.70
5.4.310.0870.05318.71
5.4.300.0800.05018.63
5.4.290.1030.05018.57
5.4.280.1070.06318.65
5.4.270.0900.06318.71
5.4.260.0970.06018.70
5.4.250.1170.07318.55
5.4.240.1230.06718.60
5.4.230.0930.06318.65
5.4.220.0830.05318.54
5.4.210.0830.06018.44
5.4.200.0830.05316.65
5.4.190.0830.04718.50
5.4.180.0900.05018.56
5.4.170.0830.06018.50
5.4.160.0730.06318.79
5.4.150.0830.05018.62
5.4.140.0770.06016.33
5.4.130.0830.05316.32
5.4.120.0730.05316.37
5.4.110.0870.04716.36
5.4.100.0770.06016.36
5.4.90.0900.04316.36
5.4.80.0800.05316.20
5.4.70.0800.05316.34
5.4.60.0900.04016.39
5.4.50.1000.05316.19
5.4.40.0930.04716.22
5.4.30.0970.05716.27
5.4.20.0830.07316.22
5.4.10.0700.06016.28
5.4.00.0930.05315.67
5.3.290.1030.05714.77
5.3.280.1170.05314.65
5.3.270.1000.06014.77
5.3.260.0930.06314.68
5.3.250.0730.05714.65
5.3.240.0770.05314.66
5.3.230.0900.05314.75
5.3.220.1000.05714.58
5.3.210.0830.05714.68
5.3.200.0930.05314.72
5.3.190.0870.05314.54
5.3.180.0870.06014.56
5.3.170.0900.04714.60
5.3.160.0770.06014.55
5.3.150.0800.06714.59
5.3.140.0830.05014.60
5.3.130.0830.06314.54
5.3.120.0830.05714.59
5.3.110.0900.06714.56
5.3.100.1000.05014.17
5.3.90.1130.04714.17
5.3.80.1070.04014.08
5.3.70.0800.06014.01
5.3.60.0800.06014.02
5.3.50.0870.05013.91
5.3.40.0830.05013.93
5.3.30.1070.04313.89
5.3.20.1030.04013.68
5.3.10.0830.05713.66
5.3.00.0800.05713.66
5.2.170.0700.04711.18
5.2.160.0630.04711.18
5.2.150.0800.04711.36
5.2.140.0900.05011.27
5.2.130.0700.04011.23
5.2.120.0630.04711.20
5.2.110.0730.04011.20
5.2.100.0730.04711.11
5.2.90.0730.03711.10
5.2.80.0670.04011.13
5.2.70.0800.04311.30
5.2.60.0700.04311.11
5.2.50.0630.05311.14
5.2.40.0570.03710.99
5.2.30.0600.03711.09
5.2.20.0570.04311.06
5.2.10.0530.04311.04
5.2.00.0570.04710.75
5.1.60.0700.03310.04
5.1.50.0600.03310.12
5.1.40.0630.03310.02
5.1.30.0570.04010.29
5.1.20.0630.03310.48
5.1.10.0630.03710.08
5.1.00.0700.02710.07
5.0.50.0370.0308.57
5.0.40.0330.0278.52
5.0.30.0330.0508.37
5.0.20.0300.0238.30
5.0.10.0370.0378.21
5.0.00.0300.0408.30
4.4.90.0370.0175.93
4.4.80.0270.0235.88
4.4.70.0300.0205.91
4.4.60.0300.0235.82
4.4.50.0270.0205.97
4.4.40.0270.0335.92
4.4.30.0230.0275.88
4.4.20.0230.0235.96
4.4.10.0330.0205.97
4.4.00.0330.0375.89
4.3.110.0330.0205.86
4.3.100.0370.0205.86
4.3.90.0370.0235.80
4.3.80.0270.0335.90
4.3.70.0200.0275.83
4.3.60.0300.0175.82
4.3.50.0400.0205.79
4.3.40.0300.0375.76
4.3.30.0230.0174.64
4.3.20.0130.0274.55
4.3.10.0100.0274.50
4.3.00.0100.0238.69