3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = <<<XML <?xml version="1.0"?> <a> <b>Some String</b> </a> XML; $b = simplexml_load_string($xml)->xpath('/a/b'); var_dump((string)$b[0]); var_dump((bool)$b[0]);

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.3.0rc40.0140.01198.97
7.3.0rc30.0160.01016.65
7.3.0beta10.0070.00012.76
7.3.0alpha10.0040.00412.84
7.2.60.0120.00316.87
7.2.00.0000.01419.35
7.1.200.0070.00715.90
7.1.100.0060.00818.29
7.1.70.0000.02017.46
7.1.60.0030.01019.82
7.1.50.0070.01417.07
7.1.00.0030.03322.70
7.0.200.0040.00416.70
7.0.140.0030.07722.24
7.0.60.0030.04020.04
7.0.50.0000.04718.05
7.0.40.0170.07320.48
7.0.30.0300.07320.21
7.0.20.0300.06020.23
7.0.10.0270.04320.43
7.0.00.0070.03720.32
5.6.280.0030.07320.94
5.6.210.0000.09020.82
5.6.200.0130.05718.36
5.6.190.0070.08320.54
5.6.180.2900.03720.63
5.6.170.0330.07020.77
5.6.160.0070.04320.69
5.6.150.0100.04718.38
5.6.140.0130.05318.30
5.6.130.0170.07718.39
5.6.120.0100.04021.25
5.6.110.0070.04321.11
5.6.100.0100.07021.18
5.6.90.0100.08321.18
5.6.80.0100.08020.59
5.6.70.0270.08020.57
5.5.350.0100.06020.50
5.5.340.0030.04018.11
5.5.330.0130.03720.41
5.5.320.0170.04020.54
5.5.310.0330.05020.47
5.5.300.0100.03318.09
5.5.290.0070.04718.11
5.5.280.0100.07720.91
5.5.270.0070.06321.15
5.5.260.0200.05720.98
5.5.250.0170.07720.76
5.5.240.0100.05020.40
5.4.450.1000.04719.43
5.4.440.0870.05719.61
5.4.430.0100.06019.75
5.4.420.0670.04719.74
5.4.410.0100.05319.23
5.4.400.0470.04018.93
5.4.390.0370.06018.84
5.4.380.0400.07718.94
5.4.370.0230.04318.82
5.4.360.0030.06318.92
5.4.350.0150.05812.20
5.4.340.0120.06012.19
5.4.320.0040.03812.68
5.4.310.0060.03812.68
5.4.300.0040.03812.68
5.4.290.0030.04112.68
5.4.280.0140.03412.57
5.4.270.0090.04112.57
5.4.260.0060.03812.57
5.4.250.0000.06018.75
5.4.240.0130.04318.83
5.4.230.0130.04719.04
5.4.220.0070.05318.94
5.4.210.0030.06019.04
5.4.200.0170.04319.16
5.4.190.0100.05018.94
5.4.180.0100.06318.98
5.4.170.0070.05318.96
5.4.160.0100.05019.14
5.4.150.0030.06718.89
5.4.140.0070.05016.46
5.4.130.0070.05016.73
5.4.120.0070.04716.76
5.4.110.0070.05016.71
5.4.100.0030.05016.64
5.4.90.0030.05316.75
5.4.80.0100.04716.38
5.4.70.0030.05016.38
5.4.60.0170.05716.43
5.4.50.0070.04716.71
5.4.40.0130.06016.43
5.4.30.0070.07016.63
5.4.20.0100.06716.66
5.4.10.0070.05316.42
5.4.00.0070.04715.83
5.3.290.0030.04312.94
5.3.280.0130.05014.78
5.3.270.0070.06714.70
5.3.260.0100.05014.70
5.3.250.0030.05314.66
5.3.240.0100.06014.67
5.3.230.0070.05014.68
5.3.220.0100.04714.61
5.3.210.0070.06314.66
5.3.200.0030.05314.66
5.3.190.0030.05714.77
5.3.180.0100.04714.66
5.3.170.0170.04014.64
5.3.160.0070.05014.75
5.3.150.0030.06714.76
5.3.140.0100.04714.63
5.3.130.0000.05714.64
5.3.120.0100.05014.70
5.3.110.0030.05714.75
5.3.100.0130.05014.27
5.3.90.0030.05314.06
5.3.80.0130.06314.32
5.3.70.0100.04714.25
5.3.60.0000.05714.07
5.3.50.0000.07313.97
5.3.40.0030.05314.24
5.3.30.0130.04014.06
5.3.20.0030.05013.88
5.3.10.0170.03713.73
5.3.00.0000.07713.93
5.2.170.0170.03011.39
5.2.160.0130.04711.30
5.2.150.0130.03311.22
5.2.140.0070.04011.21
5.2.130.0030.04011.25
5.2.120.0130.03011.25
5.2.110.0130.03011.15
5.2.100.0070.03711.27
5.2.90.0000.04311.18
5.2.80.0070.04011.23
5.2.70.0030.04311.18
5.2.60.0030.04311.23
5.2.50.0070.03711.10
5.2.40.0100.03311.16
5.2.30.0030.04311.14
5.2.20.0000.04311.11
5.2.10.0130.03011.16
5.2.00.0070.04010.82
5.1.60.0030.03710.33
5.1.50.0030.04010.12
5.1.40.0000.03710.11
5.1.30.0030.03310.46
5.1.20.0030.03310.45
5.1.10.0000.04010.30
5.1.00.0070.03310.19
5.0.50.0100.0208.73
5.0.40.0030.0278.60
5.0.30.0100.0378.41
5.0.20.0000.0278.38
5.0.10.0000.0308.30
5.0.00.0000.0438.38
4.4.90.0000.0236.34
4.4.80.0030.0206.34
4.4.70.0030.0336.34
4.4.60.0070.0176.34
4.4.50.0070.0176.34
4.4.40.0000.0376.34
4.4.30.0000.0236.34
4.4.20.0000.0236.34
4.4.10.0070.0176.34
4.4.00.0000.0336.34
4.3.110.0000.0236.34
4.3.100.0030.0206.34
4.3.90.0070.0176.34
4.3.80.0030.0336.34
4.3.70.0100.0236.34
4.3.60.0070.0176.34
4.3.50.0070.0276.34
4.3.40.0000.0336.34
4.3.30.0000.0236.34
4.3.20.0030.0206.34
4.3.10.0000.0236.34
4.3.00.0100.0237.60