3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $emptyXml = simplexml_load_string('<root />'); $xml = simplexml_load_string('<root>foo</root>'); var_dump(!$emptyXml, empty($emptyXml)); var_dump(!$xml, empty($xml));
based on fZ7lc

Here you find the average performance (time & memory) of each version. A greyed 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.1.80.2840.01216.24
7.1.70.0030.01217.18
7.1.60.0180.00626.02
7.1.50.0140.00725.96
7.1.40.0100.01425.61
7.1.30.0140.00925.45
7.1.20.0100.01325.65
7.1.10.0050.00916.63
7.1.00.1320.00315.81
7.0.200.0010.01016.78
7.0.190.0040.00916.67
7.0.180.0090.00416.34
7.0.170.0040.01016.43
7.0.160.0040.01016.36
7.0.150.0110.00416.42
7.0.140.0070.00916.37
7.0.130.0050.01016.49
7.0.120.0030.01116.46
7.0.110.0060.00616.31
7.0.100.0090.00516.37
7.0.90.0060.00816.31
7.0.80.0080.00816.55
7.0.70.0050.00616.47
7.0.60.0030.00916.33
7.0.50.0030.00816.41
7.0.40.0060.00616.46
7.0.30.0030.00816.48
7.0.20.0040.00916.50
7.0.10.1240.01416.41
7.0.00.1210.00815.57
hhvm-3.21.00.3290.23089.44
hhvm-3.20.20.0590.22592.20
hhvm-3.19.20.1110.24388.90
hhvm-3.18.40.0820.23388.11
hhvm-3.17.30.0650.16594.97
hhvm-3.15.40.0490.15791.71
hhvm-3.13.20.0630.169104.77
hhvm-3.12.140.0530.146104.42
hhvm-3.11.10.0660.16997.85
hhvm-3.10.10.0640.16994.50
5.6.300.0120.05521.01
5.6.290.0110.06920.90
5.6.280.0110.05921.00
5.6.270.0190.05520.92
5.6.260.0030.06221.00
5.6.250.0090.06420.95
5.6.240.0140.05920.99
5.6.230.0140.06620.92
5.6.220.0090.05520.98
5.6.210.0100.05320.98
5.6.200.0100.05420.81
5.6.190.0160.05320.91
5.6.180.0080.05820.97
5.6.170.0160.05120.93
5.6.160.0090.06920.86
5.6.150.0120.05920.91
5.6.140.0050.07921.01
5.6.130.0050.05520.93
5.6.120.0080.05721.03
5.6.110.0130.06320.90
5.6.100.0140.05220.96
5.6.90.0100.05820.85
5.6.80.0090.05820.20
5.6.70.0060.05620.31
5.6.60.0070.05520.33
5.6.50.0050.07120.32
5.6.40.0080.05320.27
5.6.30.0110.05820.30
5.6.20.0100.05420.26
5.6.10.0030.05620.26
5.6.00.0080.04920.15
5.5.380.0090.06917.56
5.5.370.0060.06117.59
5.5.360.0080.05817.46
5.5.350.0030.05117.49
5.5.340.0130.06817.97
5.5.330.0050.05817.98
5.5.320.0030.06417.98
5.5.310.0100.05318.11
5.5.300.0020.07318.10
5.5.290.0060.06917.99
5.5.280.0080.05418.06
5.5.270.0100.05117.83
5.5.260.0050.05917.85
5.5.250.0080.05917.90
5.5.240.0050.05317.39
5.5.230.0110.04817.25
5.5.220.0080.07017.44
5.5.210.0060.05417.36
5.5.200.0110.05417.33
5.5.190.0090.06117.43
5.5.180.0070.06317.18
5.5.160.0070.04617.45
5.5.150.0050.05517.31
5.5.140.0100.05117.41
5.5.130.0080.05217.40
5.5.120.0120.04817.43
5.5.110.0080.05117.41
5.5.100.0190.04417.29
5.5.90.0150.04517.39
5.5.80.0050.05117.24
5.5.70.0050.05617.26
5.5.60.0080.05117.21
5.5.50.0080.05317.35
5.5.40.0090.05217.34
5.5.30.0080.05117.32
5.5.20.0080.05217.16
5.5.10.0030.05517.09
5.5.00.0030.06117.20
5.4.450.0140.05719.34
5.4.440.0070.06619.38
5.4.430.0050.05719.33
5.4.420.0060.06519.25
5.4.410.0130.05719.31
5.4.400.0090.04619.15
5.4.390.0080.06219.10
5.4.380.0080.07119.09
5.4.370.0130.06119.06
5.4.360.0080.05919.00
5.4.350.0120.04819.00
5.4.340.0060.05619.15
5.4.320.0060.05519.04
5.4.310.0100.05718.92
5.4.300.0100.05319.17
5.4.290.0180.05119.01
5.4.280.0080.05819.03
5.4.270.0030.05819.02
5.4.260.0110.04819.10
5.4.250.0150.05619.13
5.4.240.0110.04919.00
5.4.230.0100.05719.06
5.4.220.0150.06019.04
5.4.210.0060.05519.13
5.4.200.0080.04919.13
5.4.190.0070.05619.16
5.4.180.0160.05919.04
5.4.170.0060.05219.08
5.4.160.0070.05119.04
5.4.150.0080.05719.08
5.4.140.0160.05816.70
5.4.130.0090.04516.54
5.4.120.0080.04816.47
5.4.110.0070.05616.60
5.4.100.0090.04916.66
5.4.90.0040.04916.75
5.4.80.0110.04816.76
5.4.70.0000.06016.65
5.4.60.0060.05216.66
5.4.50.0100.05416.44
5.4.40.0100.03916.60
5.4.30.0050.04716.58
5.4.20.0120.04416.67
5.4.10.0070.05716.75
5.4.00.0100.04816.16
5.3.290.0070.07015.65
5.3.280.0070.05315.63
5.3.270.0090.05315.61
5.3.260.0100.04515.56
5.3.250.0060.05315.61
5.3.240.0070.06115.63
5.3.230.0080.04615.64
5.3.220.0060.05015.57
5.3.210.0110.04715.59
5.3.200.0080.05115.64
5.3.190.0080.05315.60
5.3.180.0090.05115.62
5.3.170.0060.05515.63
5.3.160.0220.04915.57
5.3.150.0100.06615.58
5.3.140.0080.04515.55
5.3.130.0070.06115.59
5.3.120.0160.04815.56
5.3.110.0090.05515.56
5.3.100.0100.04815.31
5.3.90.0090.04915.32
5.3.80.0110.05215.29
5.3.70.0070.04215.30
5.3.60.0110.04415.28
5.3.50.0060.05415.28
5.3.40.0060.05415.28
5.3.30.0060.05315.15
5.3.20.0090.04415.14
5.3.10.0110.04315.11
5.3.00.0000.05015.10
5.2.170.0040.04813.93
5.2.160.0040.04913.93
5.2.150.0070.04413.85
5.2.140.0070.04513.89
5.2.130.0060.03813.91
5.2.120.0050.03813.74
5.2.110.0100.03313.87
5.2.100.0060.03513.83
5.2.90.0060.03813.83
5.2.80.0100.03713.88
5.2.70.0010.04313.86
5.2.60.0050.04913.87
5.2.50.0050.03913.79
5.2.40.0030.03713.75
5.2.30.0050.04113.69
5.2.20.0050.04013.80
5.2.10.0050.04713.84
5.2.00.0090.04213.64
5.1.60.0100.03213.40
5.1.50.0000.03913.32
5.1.40.0020.04313.31
5.1.30.0040.04213.57
5.1.20.0100.03713.59
5.1.10.0100.03113.38
5.1.00.0010.04213.43
5.0.50.0040.02812.59
5.0.40.0060.02512.60
5.0.30.0080.03612.42
5.0.20.0100.02412.49
5.0.10.0070.02112.49
5.0.00.0020.04212.43
4.4.90.0020.02111.61
4.4.80.0030.02011.61
4.4.70.0010.02311.61
4.4.60.0070.01811.61
4.4.50.0060.02311.61
4.4.40.0070.03211.61
4.4.30.0050.02111.61
4.4.20.0080.01711.61
4.4.10.0040.02511.61
4.4.00.0070.03211.61
4.3.110.0030.01911.61
4.3.100.0010.02311.61
4.3.90.0020.02011.61
4.3.80.0050.02811.61
4.3.70.0010.02311.61
4.3.60.0010.02011.61
4.3.50.0030.02011.61
4.3.40.0030.02911.61
4.3.30.0050.02011.61
4.3.20.0060.02411.61
4.3.10.0070.02311.61
4.3.00.0050.01711.61