3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $test = 5; public function getTest(){ return $this->test; } } class B { public function test(A $a) { die(($a instanceof A) ? var_export($a)."\n"."output: {$a->getTest()}" : "Fuck php, i am ".gettype($a)); } } class Test { public function test() { $b = new B(); $b->test(null); } } $server = new \SoapServer(null, array("uri" => "http://localhost")); $server->setClass("Test"); try{ $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>'); } catch (\Exception $e) { var_dump($e); }

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.0100.01018.18
8.3.50.0090.00720.96
8.3.40.0120.00618.66
8.3.30.0110.00419.21
8.3.20.0040.00420.25
8.3.10.0080.00022.05
8.3.00.0080.00022.44
8.2.180.0070.00716.38
8.2.170.0090.00622.96
8.2.160.0090.00619.12
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.70
8.2.110.0000.00922.20
8.2.100.0130.00019.77
8.2.90.0090.00019.16
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0030.00518.04
8.2.50.0030.00618.07
8.2.40.0040.00419.76
8.2.30.0040.00417.92
8.2.20.0070.00017.66
8.2.10.0040.00417.56
8.2.00.0000.00817.67
8.1.280.0120.00925.92
8.1.270.0030.00521.95
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00323.83
8.1.230.0040.00719.04
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0070.00317.23
8.1.190.0070.00017.51
8.1.180.0080.00018.57
8.1.170.0000.00918.51
8.1.160.0040.00422.09
8.1.150.0000.01118.41
8.1.140.0000.00717.37
8.1.130.0030.00317.77
8.1.120.0000.00717.28
8.1.110.0040.00417.23
8.1.100.0040.00417.31
8.1.90.0070.00317.41
8.1.80.0030.00317.26
8.1.70.0030.00517.32
8.1.60.0040.00417.36
8.1.50.0030.00517.35
8.1.40.0090.00017.46
8.1.30.0030.00517.57
8.1.20.0030.00517.49
8.1.10.0040.00417.40
8.1.00.0000.00817.35
8.0.300.0000.00718.77
8.0.290.0050.00216.93
8.0.280.0040.00418.25
8.0.270.0040.00417.11
8.0.260.0030.00316.82
8.0.250.0000.00616.87
8.0.240.0050.00516.89
8.0.230.0040.00416.94
8.0.220.0000.00716.92
8.0.210.0080.00016.89
8.0.200.0000.00716.96
8.0.190.0030.00316.98
8.0.180.0000.00716.94
8.0.170.0000.00816.81
8.0.160.0000.00816.90
8.0.150.0110.00016.88
8.0.140.0040.00416.85
8.0.130.0000.00613.33
8.0.120.0040.00416.96
8.0.110.0040.00416.76
8.0.100.0040.00416.71
8.0.90.0040.00416.71
8.0.80.0030.01616.90
8.0.70.0000.00716.77
8.0.60.0040.00416.79
8.0.50.0040.00416.85
8.0.30.0100.01116.95
8.0.20.0110.00817.40
8.0.10.0000.00816.87
8.0.00.0110.01116.72
7.4.330.0070.00015.00
7.4.320.0060.00016.41
7.4.300.0040.00416.58
7.4.290.0070.00016.53
7.4.280.0070.00016.34
7.4.270.0000.00716.55
7.4.260.0030.00516.57
7.4.250.0050.00316.36
7.4.240.0050.00216.44
7.4.230.0000.00716.38
7.4.220.0070.01016.57
7.4.210.0080.00716.48
7.4.200.0000.00716.19
7.4.190.0030.00316.44
7.4.160.0090.01516.54
7.4.150.0100.00917.40
7.4.140.0150.00517.86
7.4.130.0090.01016.47
7.4.120.0110.00716.45
7.4.110.0100.00716.25
7.4.100.0120.00616.43
7.4.90.0110.00716.32
7.4.80.0160.01219.39
7.4.70.0100.01016.33
7.4.60.0040.01816.41
7.4.50.0040.00416.33
7.4.40.0070.00522.77
7.4.30.0100.00716.41
7.4.00.0030.01215.00
7.3.330.0070.00013.18
7.3.320.0030.00313.11
7.3.310.0050.00316.37
7.3.300.0000.00716.36
7.3.290.0090.00916.28
7.3.280.0100.01116.33
7.3.270.0030.01417.40
7.3.260.0170.00416.30
7.3.250.0140.00316.49
7.3.240.0120.00916.45
7.3.230.0060.01616.44
7.3.210.0130.00316.41
7.3.200.0140.00619.39
7.3.190.0110.00816.32
7.3.180.0100.00716.27
7.3.170.0070.01116.52
7.3.160.0080.00816.38
7.3.120.0110.00414.54
7.2.330.0030.01616.23
7.2.320.0090.01416.25
7.2.310.0030.01416.30
7.2.300.0100.00716.49
7.2.290.0060.00916.48
7.2.60.0030.01016.86
7.2.00.0000.01019.21
7.1.200.0000.01315.41
7.1.100.0070.00417.64
7.1.70.0030.01016.80
7.1.60.0080.01219.82
7.1.50.0100.01316.80
7.1.00.0030.05022.30
7.0.200.0040.00416.80
7.0.140.0070.07022.05
7.0.60.0130.04019.88
7.0.50.0000.05317.89
7.0.40.0070.08020.08
7.0.30.0300.06020.27
7.0.20.0300.08020.06
7.0.10.0270.04320.27
7.0.00.0100.08320.07
5.6.280.0100.06720.92
5.6.210.0100.07020.67
5.6.200.0100.07318.25
5.6.190.0200.08320.42
5.6.180.3700.04020.61
5.6.170.0200.04720.62
5.6.160.0070.07720.57
5.6.150.0070.07018.30
5.6.140.0070.06018.21
5.6.130.0100.04718.24
5.6.120.0000.04721.13
5.6.110.0030.08721.13
5.6.100.0000.07320.99
5.6.90.0070.08320.96
5.6.80.0100.08320.39
5.6.70.0370.06720.52
5.5.350.0030.06720.41
5.5.340.0000.04318.04
5.5.330.0100.08020.32
5.5.320.0270.05320.32
5.5.310.0200.03720.24
5.5.300.0100.08017.96
5.5.290.0070.08017.94
5.5.280.0100.08320.79
5.5.270.0170.04020.68
5.5.260.0070.07720.84
5.5.250.0100.03320.80
5.5.240.0030.08020.36
5.4.450.0870.05319.48
5.4.440.0800.05319.58
5.4.430.0830.05319.58
5.4.420.0070.06019.47
5.4.410.0800.04319.31
5.4.400.1200.08318.54
5.4.390.1230.04718.50
5.4.380.0370.04718.52
5.4.370.0130.05318.75
5.4.360.0130.05318.61
5.4.350.0130.05718.54
5.4.340.0100.05718.54
5.4.320.0020.04012.68
5.4.310.0030.04612.68
5.4.300.0090.03812.68
5.4.290.0070.04112.68
5.4.280.0080.04412.58
5.4.270.0060.04312.58
5.4.260.0100.05318.93
5.4.250.0130.06318.79
5.4.240.0130.05318.80
5.4.230.0100.07019.00
5.4.220.0170.06018.74
5.4.210.0130.06718.96
5.4.200.0270.05018.65
5.4.190.0100.07318.98
5.4.180.0100.05019.08
5.4.170.0000.06718.65
5.4.160.0100.05318.79
5.4.150.0030.06718.77
5.4.140.0170.06316.65
5.4.130.0000.05716.45
5.4.120.0100.06316.61
5.4.110.0030.05316.53
5.4.100.0070.05316.44
5.4.90.0100.05016.70
5.4.80.0030.06716.45
5.4.70.0000.07316.50
5.4.60.0170.04716.46
5.4.50.0200.05716.59
5.4.40.0100.05716.42
5.4.30.0070.05016.50
5.4.20.0130.08316.48
5.4.10.0130.06016.35
5.4.00.0070.06715.99
5.3.290.0010.04512.94
5.3.280.0130.06014.72
5.3.270.0130.06014.91
5.3.260.0100.07014.80
5.3.250.0030.07314.76
5.3.240.0070.05314.80
5.3.230.0030.05014.70
5.3.220.0030.07714.86
5.3.210.0070.07014.74
5.3.200.0100.06314.67
5.3.190.0100.07314.74
5.3.180.0170.04714.64
5.3.170.0000.08014.68
5.3.160.0070.06014.77
5.3.150.0070.05014.68
5.3.140.0000.05714.82
5.3.130.0030.07714.80
5.3.120.0100.05714.86
5.3.110.0130.07014.70
5.3.100.0100.05014.31
5.3.90.0070.05714.18
5.3.80.0100.06314.17
5.3.70.0070.05314.16
5.3.60.0000.07314.16
5.3.50.0100.04314.06
5.3.40.0070.05014.06
5.3.30.0170.04014.13
5.3.20.0170.05013.89
5.3.10.0100.04713.79
5.3.00.0030.05313.75
5.2.170.0070.05011.34
5.2.160.0030.05311.25
5.2.150.0100.04311.42
5.2.140.0100.04011.27
5.2.130.0070.04011.32
5.2.120.0070.04011.07
5.2.110.0070.04311.17
5.2.100.0030.05711.26
5.2.90.0070.05011.25
5.2.80.0170.05011.39
5.2.70.0030.05311.25
5.2.60.0030.04311.20
5.2.50.0070.04011.32
5.2.40.0100.04711.17
5.2.30.0130.04011.21
5.2.20.0070.05011.13
5.2.10.0070.05010.93
5.2.00.0000.05710.87
5.1.60.0070.04710.17
5.1.50.0070.04010.23
5.1.40.0030.03310.31
5.1.30.0100.04710.51
5.1.20.0070.04710.53
5.1.10.0070.04010.23
5.1.00.0000.05310.21
5.0.50.0070.0408.67
5.0.40.0000.0308.73
5.0.30.0000.0478.36
5.0.20.0100.0238.35
5.0.10.0030.0308.45
5.0.00.0070.0478.36
4.4.90.0000.0277.54
4.4.80.0000.0237.54
4.4.70.0000.0237.54
4.4.60.0030.0277.54
4.4.50.0000.0277.54
4.4.40.0030.0437.54
4.4.30.0000.0277.54
4.4.20.0030.0207.54
4.4.10.0030.0237.54
4.4.00.0000.0407.54
4.3.110.0030.0307.54
4.3.100.0030.0307.54
4.3.90.0000.0207.54
4.3.80.0030.0337.54
4.3.70.0000.0277.54
4.3.60.0000.0237.54
4.3.50.0000.0277.54
4.3.40.0070.0407.54
4.3.30.0070.0237.54
4.3.20.0070.0337.54
4.3.10.0030.0307.54
4.3.00.0170.0178.67

preferences:
33.82 ms | 401 KiB | 5 Q