3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array( 'notices' => array( 'a','b','c' ) ); $xml = new SimpleXMLElement('<root/>'); array_walk_recursive($a, array ($xml, 'addChild')); //var_dump($xml->nichts->hasChildren()); $b = $xml->nichts->children(); print_r($b->count()); if ($b) { foreach ($b as $c) { //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.3.60.0110.00416.59
8.3.50.0130.00921.14
8.3.40.0040.01118.89
8.3.30.0090.00618.92
8.3.20.0040.00418.98
8.3.10.0080.00023.82
8.3.00.0080.00021.09
8.2.180.0100.01017.13
8.2.170.0040.01122.96
8.2.160.0160.00019.37
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00522.41
8.2.120.0000.00826.35
8.2.110.0000.00922.41
8.2.100.0060.00617.80
8.2.90.0040.00419.38
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0000.00818.29
8.2.50.0040.00418.10
8.2.40.0070.00020.75
8.2.30.0040.00420.83
8.2.20.0000.00718.02
8.2.10.0040.00418.16
8.2.00.0000.00718.26
8.1.280.0100.01325.92
8.1.270.0080.00024.16
8.1.260.0090.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00722.66
8.1.230.0080.00319.33
8.1.220.0040.00417.91
8.1.210.0060.00318.77
8.1.200.0060.00317.48
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0050.00318.83
8.1.160.0060.00321.03
8.1.150.0040.00419.20
8.1.140.0050.00219.84
8.1.130.0000.00717.78
8.1.120.0000.00717.72
8.1.110.0040.00417.62
8.1.100.0040.00317.66
8.1.90.0050.00317.68
8.1.80.0000.00817.63
8.1.70.0040.00417.53
8.1.60.0080.00017.82
8.1.50.0040.00417.74
8.1.40.0040.00417.60
8.1.30.0050.00317.91
8.1.20.0040.00417.79
8.1.10.0000.00817.52
8.1.00.0080.00017.56
8.0.300.0070.00018.77
8.0.290.0040.00417.00
8.0.280.0000.00818.56
8.0.270.0000.00717.49
8.0.260.0030.00317.35
8.0.250.0030.00317.14
8.0.240.0040.00417.31
8.0.230.0000.00717.16
8.0.220.0030.00517.09
8.0.210.0030.00317.17
8.0.200.0000.00717.16
8.0.190.0060.00317.25
8.0.180.0050.00317.26
8.0.170.0040.00417.09
8.0.160.0000.00717.11
8.0.150.0070.00316.98
8.0.140.0000.00717.01
8.0.130.0000.00513.54
8.0.120.0050.00317.04
8.0.110.0040.00417.10
8.0.100.0000.00717.17
8.0.90.0000.00716.91
8.0.80.0090.00917.18
8.0.70.0050.00317.10
8.0.60.0030.00617.17
8.0.50.0040.00416.95
8.0.30.0120.00517.37
8.0.20.0130.00717.46
8.0.10.0040.00417.14
8.0.00.0110.01217.08
7.4.330.0000.00515.08
7.4.320.0000.00616.71
7.4.300.0030.00316.63
7.4.290.0040.00416.73
7.4.280.0050.00216.61
7.4.270.0030.00316.69
7.4.260.0030.00616.70
7.4.250.0040.00416.69
7.4.240.0070.00016.72
7.4.230.0070.00016.89
7.4.220.0230.00316.74
7.4.210.0100.00716.84
7.4.200.0000.00716.60
7.4.160.0060.01016.72
7.4.150.0110.01417.40
7.4.140.0080.01017.86
7.4.130.0080.01016.76
7.4.120.0050.01316.68
7.4.110.0120.01316.77
7.4.100.0090.00816.74
7.4.90.0070.01116.79
7.4.80.0080.00819.39
7.4.70.0150.00616.54
7.4.60.0050.01416.53
7.4.50.0070.00716.75
7.4.40.0130.00316.83
7.4.30.0090.01516.58
7.4.00.0030.01215.12
7.3.330.0000.00513.23
7.3.320.0030.00313.35
7.3.310.0030.00316.59
7.3.300.0030.00316.50
7.3.290.0070.01016.55
7.3.280.0060.01316.53
7.3.270.0140.01017.40
7.3.260.0090.00916.52
7.3.250.0130.00416.56
7.3.240.0100.01016.66
7.3.230.0100.00716.63
7.3.210.0030.01616.53
7.3.200.0100.00716.70
7.3.190.0120.00616.55
7.3.180.0060.00916.45
7.3.170.0110.00616.66
7.3.160.0000.01716.61
7.3.120.0060.01014.74
7.3.110.0030.01014.88
7.3.100.0080.00414.79
7.3.90.0080.00814.85
7.3.80.0070.01014.76
7.3.70.0000.00814.94
7.3.60.0040.00414.70
7.3.50.0110.00315.04
7.3.40.0060.00614.86
7.3.30.0000.01715.13
7.3.20.0080.00416.51
7.3.10.0030.00816.77
7.3.00.0000.01416.42
7.2.330.0170.00016.54
7.2.320.0110.00716.78
7.2.310.0000.01716.85
7.2.300.0000.01816.72
7.2.290.0100.00616.78
7.2.250.0070.01415.18
7.2.240.0040.01215.14
7.2.230.0030.01315.21
7.2.220.0030.01014.86
7.2.210.0000.01415.07
7.2.200.0090.00615.18
7.2.190.0040.01114.94
7.2.180.0070.00414.96
7.2.170.0000.01515.20
7.2.00.0000.01419.42
7.1.330.0070.01015.66
7.1.320.0070.01015.98
7.1.310.0030.01016.05
7.1.300.0090.00015.60
7.1.290.0000.01316.00
7.1.280.0000.01315.63
7.1.270.0100.00315.80
7.1.260.0090.00315.88
7.1.100.0030.01017.96
7.1.70.0000.00717.18
7.1.60.0030.02020.41
7.1.00.0070.07322.39
7.0.200.0130.00914.70
7.0.60.0330.08019.99
7.0.50.0000.04717.89
7.0.40.0870.05320.14
7.0.30.0800.05020.37
7.0.20.1000.04320.42
7.0.10.0700.06720.26
7.0.00.0900.06320.10
5.6.280.0000.07721.07
5.6.210.0130.07720.70
5.6.200.0100.04718.20
5.6.190.0630.06320.75
5.6.180.0670.06020.66
5.6.170.0600.05320.75
5.6.160.0600.07320.61
5.6.150.0470.07720.37
5.6.140.0630.05320.36
5.6.130.0770.05720.59
5.6.120.0230.04320.54
5.6.110.0130.05720.36
5.6.100.0270.05720.43
5.6.90.0570.06020.57
5.6.80.0600.05720.03
5.6.70.0800.06719.95
5.6.60.0800.05319.92
5.6.50.0830.05319.89
5.6.40.0670.05019.85
5.6.30.0700.07019.86
5.6.20.0730.04719.89
5.6.10.0900.05319.71
5.6.00.0630.05319.83
5.5.350.0330.07320.48
5.5.340.0100.03318.04
5.5.330.0530.04720.32
5.5.320.0600.05720.40
5.5.310.0570.05720.47
5.5.300.0900.06320.37
5.5.290.0670.07320.37
5.5.280.0030.07320.19
5.5.270.0100.06320.21
5.5.260.0630.06020.16
5.5.250.0700.06020.15
5.5.240.0700.05019.69
5.5.230.0930.06319.54
5.5.220.0700.06319.61
5.5.210.0670.06719.54
5.5.200.0830.05719.47
5.5.190.0800.05719.72
5.5.180.0570.05319.55
5.5.160.0670.04319.69
5.5.150.0430.07019.42
5.5.140.0630.05319.51
5.5.130.0800.05319.63
5.5.120.0630.06019.58
5.5.110.0700.04019.60
5.5.100.0570.05719.70
5.5.90.0670.04319.45
5.5.80.0630.04719.44
5.5.70.0700.06719.52
5.5.60.0670.04719.60
5.5.50.0570.05719.25
5.5.40.0870.05019.62
5.5.30.0800.06019.36
5.5.20.0670.06319.60
5.5.10.0730.06019.46
5.5.00.0630.06019.61

preferences:
32.53 ms | 401 KiB | 5 Q