3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( 'id' => 1, 'name' => 'Jacopo', 'male' => true, 'birthday' => new DateTime('1988-07-26'), 'hobbies' => array( 'Programming', 'TV Shows', 'Skiing' ) ); $xml = new SimpleXMLElement('<root/>'); array_walk_recursive($a, array ($xml, 'addChild')); print $xml->asXML();

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.00717.21
7.2.00.0080.00519.34
7.1.200.0070.00715.80
7.1.100.0000.01218.46
7.1.70.0000.00717.46
7.1.60.0170.00719.32
7.1.50.0110.01117.21
7.1.00.0000.08022.61
7.0.200.0130.00315.28
7.0.140.0070.07322.20
7.0.100.0270.03720.02
7.0.90.0100.04720.13
7.0.80.0130.03719.89
7.0.70.0000.05019.94
7.0.60.0070.04019.88
7.0.50.0100.04020.23
7.0.40.0100.05720.13
7.0.30.0130.03020.14
7.0.20.0030.09020.17
7.0.10.0130.07720.09
7.0.00.0100.06720.13
5.6.280.0100.06720.96
5.6.250.0000.04320.70
5.6.240.0070.04020.81
5.6.230.0030.04320.71
5.6.220.0070.04320.74
5.6.210.0030.04020.88
5.6.200.0100.03721.11
5.6.190.0030.04021.05
5.6.180.0100.03721.04
5.6.170.0070.04021.13
5.6.160.0100.08021.10
5.6.150.0070.08321.18
5.6.140.0070.07320.92
5.6.130.0100.08321.22
5.6.120.0030.08721.08
5.6.110.0130.08021.15
5.6.100.0070.08021.19
5.6.90.0100.07320.90
5.6.80.0130.07020.59
5.6.70.0100.04320.50
5.6.60.0170.06720.45
5.6.50.0130.06320.61
5.6.40.0070.06720.45
5.6.30.0070.04320.54
5.6.20.0070.04320.30
5.6.10.0100.07320.30
5.6.00.0000.06320.56
5.5.380.0030.04720.40
5.5.370.0070.03320.52
5.5.360.0030.04320.41
5.5.350.0000.04720.54
5.5.340.0030.04020.97
5.5.330.0030.04020.92
5.5.320.0100.04320.84
5.5.310.0070.05320.97
5.5.300.0030.08320.98
5.5.290.0100.05320.93
5.5.280.0130.06720.72
5.5.270.0170.06020.81
5.5.260.0030.06320.79
5.5.250.0030.07320.73
5.5.240.0030.07320.18
5.5.230.0030.08020.32
5.5.220.0130.07720.25
5.5.210.0030.09020.10
5.5.200.0170.06320.24
5.5.190.0070.08320.24
5.5.180.0070.08320.29
5.5.160.0170.07320.33
5.5.150.0100.08020.11
5.5.140.0070.07320.34
5.5.130.0030.07020.18
5.5.120.0030.05320.14
5.5.110.0070.04020.06
5.5.100.0100.07720.22
5.5.90.0170.06720.06
5.5.80.0000.08020.06
5.5.70.0030.05019.99
5.5.60.0130.06320.19
5.5.50.0130.07020.19
5.5.40.0030.06320.17
5.5.30.0070.08319.98
5.5.20.0070.06720.05
5.5.10.0030.07320.09
5.5.00.0000.07720.09
5.4.450.0100.08019.45
5.4.440.0100.06319.21
5.4.430.0070.08019.34
5.4.420.0100.07319.70
5.4.410.0130.03719.05
5.4.400.0100.04318.89
5.4.390.0100.06719.19
5.4.380.0100.07019.39
5.4.370.0100.07019.16
5.4.360.0000.04319.37
5.4.350.0030.08319.16
5.4.340.0070.07719.03
5.4.320.0070.07719.20
5.4.310.0070.07319.32
5.4.300.0070.07019.19
5.4.290.0030.08319.01
5.4.280.0070.08019.10
5.4.270.0030.07719.36
5.4.260.0130.03719.38
5.4.250.0100.04019.15
5.4.240.0130.07019.16
5.4.230.0130.06019.12
5.4.220.0200.06719.17
5.4.210.0130.06018.88
5.4.200.0070.07019.19
5.4.190.0100.06319.21
5.4.180.0130.05319.15
5.4.170.0070.08019.09
5.4.160.0170.07319.09
5.4.150.0100.07019.08
5.4.140.0100.07316.34
5.4.130.0200.04716.53
5.4.120.0030.06716.21
5.4.110.0100.04016.52
5.4.100.0100.07316.36
5.4.90.0130.06716.46
5.4.80.0030.04016.54
5.4.70.0130.07016.55
5.4.60.0030.03716.52
5.4.50.0070.07316.44
5.4.40.0070.04016.44
5.4.30.0070.07316.47
5.4.20.0000.08016.44
5.4.10.0000.04716.43
5.4.00.0000.04315.70
5.3.290.0100.07714.73
5.3.280.0100.06714.66
5.3.270.0130.07314.55
5.3.260.0100.06714.75
5.3.250.0130.03714.66
5.3.240.0030.08014.51
5.3.230.0030.07714.53
5.3.220.0070.06714.63
5.3.210.0030.07014.63
5.3.200.0100.03714.60
5.3.190.0070.07314.63
5.3.180.0070.07014.64
5.3.170.0130.07014.70
5.3.160.0030.07714.57
5.3.150.0030.05314.50
5.3.140.0030.04314.46
5.3.130.0070.07014.63
5.3.120.0030.06714.69
5.3.110.0100.06014.70
5.3.100.0100.07713.94
5.3.90.0030.03714.07
5.3.80.0070.03313.86
5.3.70.0030.07014.08
5.3.60.0130.07014.08
5.3.50.0000.07314.02
5.3.40.0070.07714.01
5.3.30.0070.07713.75
5.3.20.0030.04013.76
5.3.10.0130.03313.80
5.3.00.0030.07313.79
5.2.170.0070.05711.17
5.2.160.0030.06711.20
5.2.150.0000.05011.33
5.2.140.0070.03711.03
5.2.130.0070.06011.29
5.2.120.0030.06011.19
5.2.110.0100.05311.19
5.2.100.0030.06011.30
5.2.90.0100.05311.29
5.2.80.0070.06310.99
5.2.70.0070.06011.14
5.2.60.0030.05710.95
5.2.50.0070.06311.08
5.2.40.0030.06711.06
5.2.30.0030.05311.03
5.2.20.0100.03310.91
5.2.10.0030.05711.07
5.2.00.0030.05010.85
5.1.60.0030.05010.03
5.1.50.0000.05010.02
5.1.40.0030.05710.00
5.1.30.0000.05710.23
5.1.20.0000.05710.37
5.1.10.0030.05710.11
5.1.00.0100.05010.06
5.0.50.0070.0438.38
5.0.40.0100.0378.44
5.0.30.0000.0578.21
5.0.20.0030.0438.17
5.0.10.0070.0378.28
5.0.00.0130.0578.23
4.4.90.0070.0237.57
4.4.80.0000.0377.57
4.4.70.0030.0337.57
4.4.60.0000.0337.57
4.4.50.0070.0307.57
4.4.40.0100.0407.57
4.4.30.0000.0377.57
4.4.20.0070.0337.57
4.4.10.0000.0407.57
4.4.00.0000.0577.57
4.3.110.0070.0377.57
4.3.100.0070.0307.57
4.3.90.0000.0377.57
4.3.80.0000.0607.57
4.3.70.0000.0377.57
4.3.60.0100.0307.57
4.3.50.0030.0337.57
4.3.40.0000.0537.57
4.3.30.0030.0237.57
4.3.20.0000.0337.57
4.3.10.0000.0337.57
4.3.00.0030.0307.57