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.0150.00718.31
8.3.50.0160.00721.99
8.3.40.0100.01318.71
8.3.30.0140.00318.84
8.3.20.0000.00920.39
8.3.10.0060.00321.76
8.3.00.0090.00019.21
8.2.180.0210.00016.38
8.2.170.0160.00622.96
8.2.160.0060.01022.26
8.2.150.0090.00024.18
8.2.140.0090.00024.66
8.2.130.0070.00326.16
8.2.120.0040.00719.41
8.2.110.0000.01222.13
8.2.100.0070.00717.66
8.2.90.0000.00819.06
8.2.80.0040.00417.97
8.2.70.0100.00317.50
8.2.60.0060.00317.91
8.2.50.0060.00318.07
8.2.40.0100.00018.16
8.2.30.0050.00317.90
8.2.20.0000.00817.64
8.2.10.0000.00917.94
8.2.00.0090.00017.69
8.1.280.0120.00625.92
8.1.270.0060.00318.84
8.1.260.0090.00026.35
8.1.250.0100.00028.09
8.1.240.0100.00023.83
8.1.230.0030.00918.97
8.1.220.0070.00317.74
8.1.210.0070.00318.77
8.1.200.0070.00317.23
8.1.190.0080.00017.10
8.1.180.0060.00318.10
8.1.170.0090.00318.64
8.1.160.0030.00621.86
8.1.150.0040.00418.86
8.1.140.0060.00319.17
8.1.130.0040.00417.81
8.1.120.0000.00817.48
8.1.110.0030.00517.47
8.1.100.0060.00317.44
8.1.90.0080.00017.45
8.1.80.0040.00417.43
8.1.70.0080.00017.33
8.1.60.0050.00517.55
8.1.50.0060.00317.41
8.1.40.0000.00917.51
8.1.30.0050.00517.54
8.1.20.0060.00317.65
8.1.10.0060.00317.55
8.1.00.0040.00417.26
8.0.300.0080.00018.77
8.0.290.0000.00816.63
8.0.280.0060.00318.46
8.0.270.0080.00017.22
8.0.260.0040.00417.23
8.0.250.0040.00416.82
8.0.240.0040.00416.89
8.0.230.0040.00416.89
8.0.220.0030.00516.78
8.0.210.0000.00916.77
8.0.200.0000.00716.88
8.0.190.0030.00616.95
8.0.180.0040.00416.88
8.0.170.0000.00816.83
8.0.160.0030.00516.74
8.0.150.0050.00516.84
8.0.140.0000.00916.86
8.0.130.0000.00613.35
8.0.120.0030.00616.89
8.0.110.0000.00816.82
8.0.100.0000.00816.79
8.0.90.0040.00416.77
8.0.80.0030.01516.75
8.0.70.0080.00016.95
8.0.60.0030.00516.75
8.0.50.0080.00016.71
8.0.30.0200.00916.94
8.0.20.0170.01417.40
8.0.10.0000.00816.85
8.0.00.0190.00916.75
7.4.330.0000.00615.03
7.4.320.0070.00016.57
7.4.300.0000.00716.61
7.4.290.0030.00616.48
7.4.280.0050.00316.46
7.4.270.0060.00316.50
7.4.260.0000.00816.58
7.4.250.0000.00816.56
7.4.240.0010.00716.55
7.4.230.0040.00416.59
7.4.220.0100.01416.48
7.4.210.0030.01916.35
7.4.200.0090.00016.29
7.4.160.0180.00316.30
7.4.150.0150.01617.40
7.4.140.0120.01617.86
7.4.130.0150.01116.49
7.4.120.0170.00616.45
7.4.110.0160.01616.45
7.4.100.0230.00916.53
7.4.90.0160.01616.66
7.4.80.0120.00919.39
7.4.70.0030.01916.64
7.4.60.0100.01316.41
7.4.50.0030.00616.55
7.4.40.0120.00916.53
7.4.30.0060.02216.29
7.4.10.0100.01015.11
7.4.00.0080.01314.93
7.3.330.0060.00313.01
7.3.320.0000.00613.11
7.3.310.0030.00716.23
7.3.300.0040.00416.20
7.3.290.0070.01216.18
7.3.280.0070.01416.22
7.3.270.0100.01417.40
7.3.260.0160.00816.41
7.3.250.0160.01516.16
7.3.240.0100.01616.39
7.3.230.0160.00716.42
7.3.210.0120.01216.13
7.3.200.0180.00319.39
7.3.190.0130.00716.17
7.3.180.0070.01416.20
7.3.170.0100.01416.39
7.3.160.0090.01216.49
7.3.130.0180.00014.74
7.3.120.0150.00614.78
7.3.110.0000.02214.93
7.3.100.0140.00414.50
7.3.90.0090.00614.91
7.3.80.0090.00614.68
7.3.70.0110.00714.83
7.3.60.0140.00714.72
7.3.50.0060.00614.72
7.3.40.0090.00614.82
7.3.30.0060.00614.84
7.3.20.0070.01116.46
7.3.10.0090.00616.36
7.3.00.0170.00216.49
7.2.330.0140.01216.53
7.2.320.0070.01816.64
7.2.310.0170.00716.37
7.2.300.0150.00616.24
7.2.290.0090.01316.55
7.2.260.0090.01315.08
7.2.250.0110.01114.80
7.2.240.0130.00714.61
7.2.230.0110.00714.87
7.2.220.0040.01514.49
7.2.210.0060.01315.01
7.2.200.0080.00414.70
7.2.190.0120.00914.79
7.2.180.0060.01015.04
7.2.170.0110.00714.88
7.2.160.0070.01015.03
7.2.150.0080.01116.43
7.2.140.0070.01316.44
7.2.130.0100.00516.74
7.2.120.0100.00516.44
7.2.110.0020.01216.50
7.2.100.0100.00816.66
7.2.90.0030.01016.55
7.2.80.0050.01216.63
7.2.70.0110.00416.89
7.2.60.0090.00916.68
7.2.50.0120.00716.54
7.2.40.0080.00816.81
7.2.30.0100.00716.58
7.2.20.0080.00616.71
7.2.10.0100.00516.73
7.2.00.0070.00716.64
7.1.330.0040.01115.80
7.1.320.0110.00415.85
7.1.310.0060.01015.78
7.1.300.0080.01115.73
7.1.290.0030.01415.85
7.1.280.0140.00015.77
7.1.270.0070.01115.88
7.1.260.0070.01115.69
7.1.250.0050.00815.69
7.1.240.0060.00915.50
7.1.230.0040.01415.79
7.1.220.0030.01015.55
7.1.210.0110.00415.65
7.1.200.0100.00315.42
7.1.190.0060.00615.67
7.1.180.0120.00415.67
7.1.170.0040.01115.34
7.1.160.0070.00715.60
7.1.150.0070.00715.87
7.1.140.0060.00615.85
7.1.130.0090.00915.48
7.1.120.0080.00415.85
7.1.110.0060.00915.45
7.1.100.0130.01015.47
7.1.90.0160.00715.60
7.1.80.0060.01315.70
7.1.70.0140.00616.02
7.1.60.0070.01317.66
7.1.50.0050.01116.23
7.1.40.0070.01015.54
7.1.30.0000.01315.46
7.1.20.0090.00615.52
7.1.10.0130.00315.60
7.1.00.0050.04719.06
7.0.330.0080.00415.36
7.0.320.0070.00715.30
7.0.310.0110.00415.33
7.0.300.0100.01015.34
7.0.290.0070.00415.13
7.0.280.0070.01115.33
7.0.270.0090.00614.98
7.0.260.0030.00715.23
7.0.250.0030.01415.02
7.0.240.0070.00715.37
7.0.230.0140.00415.48
7.0.220.0030.01015.48
7.0.210.0030.01215.39
7.0.200.0060.00615.83
7.0.190.0070.01015.37
7.0.180.0030.00915.50
7.0.170.0100.00715.21
7.0.160.0070.01315.35
7.0.150.0110.00315.27
7.0.140.0080.02318.78
7.0.130.0000.01615.55
7.0.120.0030.00715.36
7.0.110.0070.01115.20
7.0.100.0110.00615.47
7.0.90.0090.00915.11
7.0.80.0040.01115.44
7.0.70.0120.00915.43
7.0.60.0100.04317.58
7.0.50.0050.03216.61
7.0.40.0090.04716.61
7.0.30.0250.02816.74
7.0.20.0120.03116.83
7.0.10.0130.03616.84
7.0.00.0130.04216.76
5.6.400.0030.01313.84
5.6.390.0120.00414.23
5.6.380.0000.01614.33
5.6.370.0060.00714.13
5.6.360.0030.01614.05
5.6.350.0100.00313.93
5.6.340.0070.00314.30
5.6.330.0150.00314.59
5.6.320.0100.00314.16
5.6.310.0040.00914.21
5.6.300.0150.00314.21
5.6.290.0100.01014.31
5.6.280.0070.05017.61
5.6.270.0060.01014.34
5.6.260.0120.00613.95
5.6.250.0060.00613.91
5.6.240.0130.00614.43
5.6.230.0100.00714.40
5.6.220.0140.00714.43
5.6.210.0110.04317.36
5.6.200.0110.04216.29
5.6.190.0030.02817.55
5.6.180.0200.03017.25
5.6.170.0100.03017.34
5.6.160.0070.02817.32
5.6.150.0080.04016.18
5.6.140.0110.04116.31
5.6.130.0040.02916.19
5.6.120.0080.03517.62
5.6.110.0080.04717.73
5.6.100.0070.04417.60
5.6.90.0100.03817.50
5.6.80.0050.03417.35
5.6.70.0060.00614.15
5.6.60.0000.01214.37
5.6.50.0070.00314.14
5.6.40.0030.01414.09
5.6.30.0160.00614.12
5.6.20.0170.00714.02
5.6.10.0060.01014.41
5.6.00.0130.00614.12
5.5.380.0090.00313.98
5.5.370.0130.00714.47
5.5.360.0060.01014.06
5.5.350.2200.02517.30
5.5.340.0100.04315.87
5.5.330.0100.03717.19
5.5.320.0220.04017.22
5.5.310.0150.03617.07
5.5.300.0060.02816.12
5.5.290.0080.02116.00
5.5.280.0050.03717.61
5.5.270.0070.03417.48
5.5.260.0040.03717.72
5.5.250.0050.05117.33
5.5.240.0270.03317.21
5.5.230.0150.00014.21
5.5.220.0070.01114.20
5.5.210.0090.00913.94
5.5.200.0070.01013.95
5.5.190.0100.00713.94
5.5.180.0140.01014.23
5.5.170.0090.00914.26
5.5.160.0030.00913.96
5.5.150.0090.00613.94
5.5.140.0060.00914.21
5.5.130.0070.01014.32
5.5.120.0120.00614.12
5.5.110.0100.01014.29
5.5.100.0030.01313.94
5.5.90.0040.01414.28
5.5.80.0070.00714.15
5.5.70.0030.01314.08
5.5.60.0110.00614.24
5.5.50.0070.01414.24
5.5.40.0130.00713.89
5.5.30.0060.01014.21
5.5.20.0070.01014.19
5.5.10.0100.00714.30
5.5.00.0030.01214.15
5.4.450.0380.02815.80
5.4.440.0310.03215.80
5.4.430.0180.02315.93
5.4.420.0080.03315.94
5.4.410.0080.03615.70
5.4.400.0070.03115.85
5.4.390.0350.03015.44
5.4.380.0480.03015.50
5.4.370.0500.03315.52
5.4.360.0370.03915.46
5.4.350.0360.04015.50
5.4.340.0470.03315.47
5.4.330.0090.00612.36
5.4.320.0420.02815.51
5.4.310.0430.02915.51
5.4.300.0300.03315.53
5.4.290.0320.03015.52
5.4.280.0440.02615.44
5.4.270.0410.02515.44
5.4.260.0320.03515.45
5.4.250.0330.03015.46
5.4.240.0430.03415.53
5.4.230.0350.03715.51
5.4.220.0450.02715.50
5.4.210.0320.03915.44
5.4.200.0550.02414.48
5.4.190.0420.03115.49
5.4.180.0340.03015.50
5.4.170.0470.02715.42
5.4.160.0430.02815.45
5.4.150.0460.03015.51
5.4.140.0480.03314.26
5.4.130.0490.03714.34
5.4.120.0430.02814.29
5.4.110.0530.03714.36
5.4.100.0310.03514.22
5.4.90.0370.03314.29
5.4.80.0440.02914.29
5.4.70.0470.03314.37
5.4.60.0460.02814.31
5.4.50.0400.03314.28
5.4.40.0250.04014.27
5.4.30.0420.03114.37
5.4.20.0330.03114.29
5.4.10.0440.02914.28
5.4.00.0450.03714.02
5.3.290.0970.06714.82
5.3.280.0700.05314.74
5.3.270.1230.06314.60
5.3.260.0700.07014.71
5.3.250.0900.06014.63
5.3.240.0900.04014.58
5.3.230.0700.05314.67
5.3.220.0800.05714.55
5.3.210.0570.06314.63
5.3.200.0830.06014.57
5.3.190.0970.05714.73
5.3.180.0830.05314.57
5.3.170.0830.05714.56
5.3.160.0870.04714.63
5.3.150.0730.05014.62
5.3.140.0730.06714.63
5.3.130.0770.05314.60
5.3.120.0730.05014.53
5.3.110.0730.06314.71
5.3.100.0800.06014.11
5.3.90.0800.04714.14
5.3.80.0800.05713.98
5.3.70.0970.05314.19
5.3.60.1030.07314.07
5.3.50.1100.05014.13
5.3.40.0870.05014.05
5.3.30.1000.06313.98
5.3.20.0670.05013.68
5.3.10.0670.05713.71
5.3.00.0530.06713.69
5.2.170.0630.04311.22
5.2.160.0630.04011.25
5.2.150.0600.05311.27
5.2.140.0670.05711.13
5.2.130.0730.05711.15
5.2.120.0670.04711.15
5.2.110.0800.05311.21
5.2.100.0800.05011.22
5.2.90.0600.05311.18
5.2.80.0730.04711.30
5.2.70.0630.05711.20
5.2.60.0670.03311.17
5.2.50.0570.05011.07
5.2.40.0600.04711.02
5.2.30.0470.04011.09
5.2.20.0630.04010.96
5.2.10.0430.04011.08
5.2.00.0470.04710.80
5.1.60.0430.0539.98
5.1.50.0470.03310.13
5.1.40.0670.03310.04
5.1.30.0570.04010.38
5.1.20.0470.04010.34
5.1.10.0400.04010.15
5.1.00.0630.04710.12
5.0.50.0130.0308.63
5.0.40.0300.0238.56
5.0.30.0300.0578.29
5.0.20.0270.0238.20
5.0.10.0270.0408.26
5.0.00.0230.0478.25
4.4.90.0270.0275.93
4.4.80.0270.0305.88
4.4.70.0330.0235.94
4.4.60.0230.0235.87
4.4.50.0270.0205.91
4.4.40.0270.0405.95
4.4.30.0170.0275.90
4.4.20.0230.0305.97
4.4.10.0270.0235.89
4.4.00.0300.0335.91
4.3.110.0230.0275.89
4.3.100.0330.0175.84
4.3.90.0300.0205.85
4.3.80.0270.0375.87
4.3.70.0230.0235.83
4.3.60.0300.0205.82
4.3.50.0230.0205.89
4.3.40.0270.0305.86
4.3.30.0170.0234.56
4.3.20.0100.0234.63
4.3.10.0130.0234.52
4.3.00.0070.0238.69

preferences:
53.95 ms | 401 KiB | 5 Q