3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<'EOD' [{ "layout":12, "settings":{ "text":"Lorem", "atts":{ "html":"<div>Ipsum</div>" } } }] EOD; $arr = json_decode($json, true); array_walk_recursive($arr, function ($v, $k) { if ( in_array($k, ['text', 'html']) ) echo "$k -> $v\n"; });

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.0120.00722.35
8.4.110.0130.00618.89
8.4.100.0050.00518.61
8.4.90.0120.00818.71
8.4.80.0070.00218.70
8.4.70.0120.00817.83
8.4.60.0110.00919.03
8.4.50.0120.00818.53
8.4.40.0090.01219.38
8.4.30.0130.00719.21
8.4.20.0030.00717.64
8.4.10.0030.00619.62
8.3.250.0060.00216.83
8.3.240.0100.00916.50
8.3.230.0120.00416.70
8.3.220.0110.00719.11
8.3.210.0140.00616.45
8.3.200.0030.00616.52
8.3.190.0110.00917.36
8.3.180.0090.00517.12
8.3.170.0070.00820.63
8.3.160.0030.01617.20
8.3.150.0070.01319.06
8.3.140.0120.00318.99
8.3.130.0110.00416.51
8.3.120.0030.00620.41
8.3.110.0080.00818.55
8.3.100.0110.00416.49
8.3.90.0090.00626.77
8.3.80.0090.00018.31
8.3.70.0110.00718.31
8.3.60.0040.01118.31
8.3.50.0130.00416.54
8.3.40.0080.00818.73
8.3.30.0080.00618.76
8.3.20.0040.00420.16
8.3.10.0040.00421.96
8.3.00.0000.00819.66
8.2.290.0100.00820.20
8.2.280.0110.00818.21
8.2.270.0030.01517.39
8.2.260.0110.00716.65
8.2.250.0040.00418.38
8.2.240.0050.00318.88
8.2.230.0050.00520.94
8.2.220.0090.00916.34
8.2.210.0060.01326.77
8.2.200.0040.00416.50
8.2.190.0090.00916.58
8.2.180.0070.01416.38
8.2.170.0040.01122.96
8.2.160.0100.00721.20
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00420.57
8.2.120.0040.00426.35
8.2.110.0090.00322.04
8.2.100.0070.00317.72
8.2.90.0000.00817.75
8.2.80.0040.00418.73
8.2.70.0030.00519.66
8.2.60.0090.00018.03
8.2.50.0000.00818.10
8.2.40.0080.00020.46
8.2.30.0000.00719.22
8.2.20.0030.00517.94
8.2.10.0060.00318.18
8.2.00.0070.00017.99
8.1.330.0120.00821.70
8.1.320.0080.01016.34
8.1.310.0080.00016.66
8.1.300.0030.00618.65
8.1.290.0090.00030.84
8.1.280.0110.00325.92
8.1.270.0040.00422.19
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.03
8.1.230.0040.00717.77
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0050.00318.74
8.1.160.0040.00418.88
8.1.150.0070.00018.71
8.1.140.0070.00019.60
8.1.130.0040.00418.85
8.1.120.0040.00417.48
8.1.110.0000.00817.43
8.1.100.0030.00317.45
8.1.90.0000.00717.45
8.1.80.0050.00217.49
8.1.70.0000.00717.46
8.1.60.0040.00417.57
8.1.50.0050.00217.49
8.1.40.0040.00417.43
8.1.30.0050.00217.66
8.1.20.0000.00817.54
8.1.10.0030.00617.47
8.1.00.0000.00817.34
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00518.41
8.0.270.0030.00317.26
8.0.260.0030.00318.90
8.0.250.0030.00317.00
8.0.240.0050.00317.05
8.0.230.0000.00717.04
8.0.220.0040.00416.82
8.0.210.0000.00716.93
8.0.200.0030.00316.93
8.0.190.0000.00816.93
8.0.180.0030.00316.92
8.0.170.0050.00316.90
8.0.160.0080.00416.86
8.0.150.0080.00016.93
8.0.140.0000.00816.94
8.0.130.0050.00213.29
8.0.120.0000.00816.93
8.0.110.0040.00416.98
8.0.100.0000.00716.96
8.0.90.0050.00216.76
8.0.80.0120.00916.89
8.0.70.0050.00316.79
8.0.60.0070.00016.84
8.0.50.0000.00717.00
8.0.30.0110.00716.92
8.0.20.0090.01017.40
8.0.10.0040.00417.03
8.0.00.0170.00016.75
7.4.330.0050.00015.55
7.4.320.0060.00016.49
7.4.300.0050.00216.59
7.4.290.0030.00316.58
7.4.280.0030.00516.51
7.4.270.0060.00016.46
7.4.260.0040.00416.39
7.4.250.0080.00016.48
7.4.240.0060.00316.50
7.4.230.0050.00316.58
7.4.220.0000.01816.68
7.4.210.0090.00616.63
7.4.200.0000.00716.59
7.4.160.0120.00616.52
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0130.00616.57
7.4.120.0130.00816.59
7.4.110.0080.00816.65
7.4.100.0130.00316.60
7.4.90.0110.00816.40
7.4.80.0140.00319.39
7.4.70.0090.00916.61
7.4.60.0120.00316.55
7.4.50.0000.01716.48
7.4.40.0060.01216.58
7.4.30.0060.00916.52
7.4.00.0100.00315.01
7.3.330.0020.00213.36
7.3.320.0050.00013.44
7.3.310.0070.00016.43
7.3.300.0000.00716.54
7.3.290.0090.00716.47
7.3.280.0090.00816.40
7.3.270.0240.01817.40
7.3.260.0110.00516.36
7.3.250.0100.00916.49
7.3.240.0080.01016.48
7.3.230.0040.01116.52
7.3.210.0140.00316.58
7.3.200.0100.01016.60
7.3.190.0060.00916.33
7.3.180.0090.00916.68
7.3.170.0150.00616.40
7.3.160.0130.00316.39
7.3.120.0090.00614.90
7.3.110.0030.01014.64
7.3.100.0030.01414.79
7.3.90.0080.00314.84
7.3.80.0050.00815.08
7.3.70.0030.01314.73
7.3.60.0130.00314.76
7.3.50.0040.00814.50
7.3.40.0030.01014.88
7.3.30.0060.00614.93
7.3.20.0040.01116.45
7.3.10.0070.01016.62
7.3.00.0090.00616.50
7.2.330.0070.01116.76
7.2.320.0090.01416.68
7.2.310.0070.01316.81
7.2.300.0060.01016.71
7.2.290.0030.01416.83
7.2.240.0030.00714.77
7.2.230.0090.00615.03
7.2.220.0030.00914.93
7.2.210.0100.00615.13
7.2.200.0030.00715.17
7.2.190.0070.00715.14
7.2.180.0130.00615.07
7.2.170.0050.01214.86
7.2.160.0030.01415.09
7.2.150.0040.01416.54
7.2.140.0040.00816.92
7.2.130.0090.00316.75
7.2.120.0060.00916.54
7.2.110.0040.01116.59
7.2.100.0000.01416.57
7.2.90.0030.01016.97
7.2.80.0000.01816.77
7.2.70.0060.00916.84
7.2.60.0030.00916.77
7.2.50.0060.00616.80
7.2.40.0070.00716.51
7.2.30.0130.00316.78
7.2.20.0090.00316.64
7.2.10.0060.00716.84
7.2.00.0100.00316.67
7.1.330.0040.01215.68
7.1.320.0070.01015.81
7.1.310.0060.00915.45
7.1.300.0040.01115.53
7.1.290.0030.01015.94
7.1.280.0060.00915.69
7.1.270.0070.00415.73
7.1.260.0030.01315.68
7.1.250.0070.00715.53
7.1.200.0040.00415.51
7.1.80.0180.00615.95
7.1.70.0160.00915.00
7.1.60.0260.01333.28
7.1.50.6960.00333.10
7.1.40.5160.01332.63
7.1.30.5040.02332.37
7.1.20.4550.01032.98
7.1.10.5350.00614.80
7.1.00.5450.01615.00
7.0.200.0170.00314.74
7.0.190.6090.01614.94
7.0.180.4890.01314.18
7.0.170.4760.01614.33
7.0.160.7350.01014.66
7.0.150.5060.01314.40
7.0.140.5000.01214.64
7.0.130.4660.00514.90
7.0.120.4930.00914.70
7.0.110.4630.01014.39
7.0.100.4630.01214.28
7.0.90.5320.01314.58
7.0.80.5710.01314.71
7.0.70.4990.01314.54
7.0.60.6030.01414.40
7.0.50.5470.01714.46
7.0.40.5460.01614.80
7.0.30.5460.00714.79
7.0.20.6030.00714.61
7.0.10.6070.01314.89
7.0.00.5870.01214.59

preferences:
114.03 ms | 403 KiB | 5 Q