3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { } class B { public function test(A $a) { if (!$a instanceof A) { die("Fuck type hinting, i am ". (is_object($a) ? get_class($a) : gettype($a)). "! This is SOAP"); } } } class C { } class Test { public function test() { $b = new B(); $b->test(new C()); } } $server = new \SoapServer(null, array("uri" => "http://localhost")); $server->setClass("Test"); $server->handle('<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://localhost" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:test></ns1:test></SOAP-ENV:Body></SOAP-ENV:Envelope>');

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.3.0beta10.0050.00312.78
7.3.0alpha10.0080.00012.72
7.2.60.0070.00716.58
7.2.00.0030.00919.45
7.1.200.0100.00315.55
7.1.100.0000.01118.23
7.1.70.0050.00516.71
7.1.60.0070.01119.82
7.1.50.0070.01116.86
7.1.00.0000.08022.45
7.0.200.0050.00216.82
7.0.140.0070.06722.18
7.0.60.0070.07721.84
7.0.50.0070.04717.89
7.0.40.0130.08020.26
7.0.30.0200.05720.25
7.0.20.0370.08020.23
7.0.10.0270.04020.08
7.0.00.0100.05320.22
5.6.280.0070.07020.79
5.6.210.0170.07020.50
5.6.200.0070.06318.16
5.6.190.0230.06720.78
5.6.180.3530.03320.63
5.6.170.0270.09020.44
5.6.160.0000.09020.53
5.6.150.0100.07718.27
5.6.140.0030.07318.15
5.6.130.0100.07718.18
5.6.120.0070.04021.00
5.6.110.0030.04321.15
5.6.100.0000.04320.89
5.6.90.0130.08321.10
5.6.80.0070.05320.38
5.5.350.0030.08720.40
5.5.340.0000.04317.95
5.5.330.0070.08720.21
5.5.320.0300.05020.38
5.5.310.0300.07320.27
5.5.300.0030.08018.01
5.5.290.0100.06717.99
5.5.280.0100.07720.77
5.5.270.0130.07720.84
5.5.260.0030.06020.69
5.5.250.0030.07720.80
5.5.240.0030.05720.02
5.4.450.0730.06719.16
5.4.440.0700.06719.16
5.4.430.0330.05719.47
5.4.420.0770.06719.58
5.4.410.0870.05319.04
5.4.400.1300.06718.51
5.4.390.1330.06018.72
5.4.380.0270.05318.71
5.4.370.0070.06018.75
5.4.360.0130.05018.59
5.4.350.0130.05318.79
5.4.340.0170.05018.73
5.4.320.0080.04112.69
5.4.310.0030.04112.68
5.4.300.0080.03812.68
5.4.290.0070.03612.68
5.4.280.0050.04112.58
5.4.270.0140.04212.57
5.4.260.0130.06318.77
5.4.250.0130.06718.93
5.4.240.0100.06319.02
5.4.230.0130.07318.79
5.4.220.0070.06318.83
5.4.210.0100.07718.83
5.4.200.0230.04718.64
5.4.190.0230.04018.83
5.4.180.0170.05018.75
5.4.170.0170.05318.95
5.4.160.0130.06018.91
5.4.150.0070.06018.74
5.4.140.0130.05016.44
5.4.130.0070.05716.40
5.4.120.0100.07716.48
5.4.110.0170.05316.44
5.4.100.0100.06016.38
5.4.90.0030.08016.46
5.4.80.0100.06316.45
5.4.70.0070.05316.55
5.4.60.0200.06316.46
5.4.50.0070.06016.49
5.4.40.0030.07716.35
5.4.30.0130.06316.48
5.4.20.0070.07316.30
5.4.10.0230.04716.47
5.4.00.0200.06016.04
5.3.290.0060.03912.93
5.3.280.0170.06014.71
5.3.270.0130.06314.80
5.3.260.0070.08014.80
5.3.250.0100.05314.91
5.3.240.0070.05314.80
5.3.230.0170.05014.75
5.3.220.0200.06014.73
5.3.210.0170.05714.54
5.3.200.0030.07714.88
5.3.190.0030.05714.85
5.3.180.0170.06714.71
5.3.170.0170.05714.87
5.3.160.0100.05314.54
5.3.150.0030.05714.66
5.3.140.0130.04714.83
5.3.130.0200.06714.66
5.3.120.0100.05314.66
5.3.110.0100.06714.62
5.3.100.0100.05314.34
5.3.90.0100.05714.19
5.3.80.0070.05314.18
5.3.70.0070.05714.13
5.3.60.0100.05014.16
5.3.50.0200.04314.13
5.3.40.0130.05014.11
5.3.30.0070.05314.08
5.3.20.0030.05313.86
5.3.10.0170.05313.95
5.3.00.0170.06713.84
5.2.170.0130.04011.30
5.2.160.0030.04311.31
5.2.150.0070.04311.30
5.2.140.0130.04311.30
5.2.130.0170.03311.31
5.2.120.0030.04711.26
5.2.110.0130.05311.21
5.2.100.0100.03711.26
5.2.90.0070.04311.29
5.2.80.0100.04311.06
5.2.70.0030.06711.07
5.2.60.0100.06011.16
5.2.50.0070.05011.12
5.2.40.0100.05011.16
5.2.30.0130.04710.96
5.2.20.0100.05711.07
5.2.10.0100.04711.01
5.2.00.0130.04710.84
5.1.60.0100.03710.14
5.1.50.0130.02710.13
5.1.40.0030.04710.03
5.1.30.0000.04010.50
5.1.20.0030.04310.52
5.1.10.0230.03010.40
5.1.00.0070.04710.42
5.0.50.0100.0338.68
5.0.40.0070.0338.55
5.0.30.0000.0578.36
5.0.20.0030.0278.33
5.0.10.0070.0338.22
5.0.00.0070.0438.21
4.4.90.0070.0307.27
4.4.80.0070.0307.27
4.4.70.0070.0277.27
4.4.60.0030.0307.27
4.4.50.0070.0277.27
4.4.40.0100.0407.27
4.4.30.0100.0177.27
4.4.20.0030.0277.27
4.4.10.0000.0337.27
4.4.00.0070.0377.27
4.3.110.0100.0177.27
4.3.100.0030.0307.27
4.3.90.0000.0337.27
4.3.80.0000.0337.27
4.3.70.0100.0177.27
4.3.60.0030.0207.27
4.3.50.0070.0177.27
4.3.40.0070.0377.27
4.3.30.0000.0237.27
4.3.20.0070.0207.27
4.3.10.0030.0277.27
4.3.00.0330.0208.67