3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WsseCredentials { public function __construct($credentials = array()) { $fields = array('username', 'digest', 'nonce','created'); foreach($fields as $key){ $this->{$key} = $credentials[$key]; } } public function getUsername(){ return $this->username; } public function getDigest(){ return $this->username; } public function getNonce(){ return $this->username; } public function getCreated(){ return $this->username; } } $foo = new WsseCredentials();

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.0140.00718.55
8.3.50.0070.01222.00
8.3.40.0070.01418.79
8.3.30.0030.01019.10
8.3.20.0040.00420.30
8.3.10.0000.00821.92
8.3.00.0040.00422.51
8.2.180.0090.00616.75
8.2.170.0090.00622.96
8.2.160.0100.00320.93
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00817.63
8.2.110.0080.00022.30
8.2.100.0150.00017.85
8.2.90.0000.00819.17
8.2.80.0040.00418.05
8.2.70.0030.00717.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0000.00818.02
8.2.30.0070.00318.13
8.2.20.0040.00417.70
8.2.10.0040.00417.85
8.2.00.0040.00417.87
8.1.280.0130.00625.92
8.1.270.0040.00422.10
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00023.79
8.1.230.0040.00719.14
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.25
8.1.190.0050.00317.51
8.1.180.0060.00318.10
8.1.170.0060.00318.46
8.1.160.0040.00422.02
8.1.150.0000.00818.59
8.1.140.0050.00217.45
8.1.130.0040.00417.73
8.1.120.0030.00517.46
8.1.110.0030.00617.32
8.1.100.0040.00417.33
8.1.90.0000.00717.47
8.1.80.0050.00217.34
8.1.70.0070.00017.39
8.1.60.0050.00317.57
8.1.50.0100.00017.43
8.1.40.0030.00517.52
8.1.30.0080.00017.57
8.1.20.0080.00017.68
8.1.10.0000.00717.51
8.1.00.0080.00017.53
8.0.300.0030.00518.77
8.0.290.0040.00417.18
8.0.280.0000.00718.43
8.0.270.0000.00717.18
8.0.260.0060.00016.80
8.0.250.0040.00316.90
8.0.240.0050.00317.06
8.0.230.0040.00417.00
8.0.220.0040.00416.95
8.0.210.0000.00816.98
8.0.200.0030.00317.02
8.0.190.0070.00016.99
8.0.180.0050.00316.88
8.0.170.0040.00417.00
8.0.160.0000.00717.02
8.0.150.0000.00716.86
8.0.140.0000.00716.85
8.0.130.0030.00313.43
8.0.120.0030.00516.89
8.0.110.0040.00416.93
8.0.100.0030.00517.00
8.0.90.0040.00416.93
8.0.80.0030.01816.93
8.0.70.0000.00716.84
8.0.60.0040.00416.79
8.0.50.0040.00416.90
8.0.30.0070.01417.12
8.0.20.0150.00317.40
8.0.10.0040.00417.05
8.0.00.0070.01316.73
7.4.330.0030.00315.00
7.4.320.0040.00416.53
7.4.300.0020.00516.41
7.4.290.0000.00716.53
7.4.280.0000.00716.55
7.4.270.0070.00016.50
7.4.260.0030.00616.48
7.4.250.0040.00416.46
7.4.240.0000.00716.51
7.4.230.0000.00716.32
7.4.220.0070.01416.49
7.4.210.0060.00916.64
7.4.200.0040.00416.60
7.4.190.0000.00716.54
7.4.160.0080.00816.77
7.4.150.0100.00617.40
7.4.140.0120.00717.86
7.4.130.0130.00616.57
7.4.120.0100.00716.51
7.4.110.0100.00616.58
7.4.100.0100.00716.51
7.4.90.0100.01016.56
7.4.80.0100.00619.39
7.4.70.0070.01016.53
7.4.60.0030.01316.58
7.4.50.0040.00416.26
7.4.40.0000.01522.77
7.4.30.0030.01316.54
7.4.00.0030.01314.97
7.3.330.0050.00013.20
7.3.320.0000.00513.28
7.3.310.0000.00716.47
7.3.300.0070.00016.45
7.3.290.0000.01416.43
7.3.280.0040.01316.45
7.3.270.0140.00317.40
7.3.260.0160.00316.32
7.3.250.0070.01016.51
7.3.240.0120.00616.44
7.3.230.0070.01016.46
7.3.210.0030.01516.49
7.3.200.0130.00716.68
7.3.190.0030.01416.39
7.3.180.0170.00016.53
7.3.170.0060.00916.66
7.3.160.0130.00716.34
7.3.120.0060.00914.93
7.2.330.0140.00316.84
7.2.320.0170.00316.76
7.2.310.0090.01516.48
7.2.300.0120.01216.59
7.2.290.0130.00316.77
7.2.00.0060.00619.37
7.1.200.0040.01215.68
7.1.100.0060.00318.14
7.1.70.0050.00217.10
7.1.60.0070.01719.82
7.1.50.0040.01917.04
7.1.00.0070.07322.45
7.0.200.0000.00716.80
7.0.140.0070.07022.18
7.0.60.0000.04719.91
7.0.50.0070.04717.96
7.0.40.0070.08020.11
7.0.30.0300.06320.21
7.0.20.0170.04720.07
7.0.10.0100.08020.15
7.0.00.0100.08720.10
5.6.280.0030.07020.93
5.6.210.0030.08020.70
5.6.200.0170.07318.25
5.6.190.0070.07320.47
5.6.180.4100.04020.57
5.6.170.0300.06320.53
5.6.160.0070.04020.61
5.6.150.0030.04318.17
5.6.140.0100.07318.17
5.6.130.0100.05018.18
5.6.120.0000.08321.04
5.6.110.0100.06320.98
5.6.100.0000.08021.14
5.6.90.0070.06720.89
5.6.80.0030.04320.51
5.5.350.0200.08720.34
5.5.340.0070.08018.02
5.5.330.0030.04020.40
5.5.320.0570.05320.24
5.5.310.0200.08320.24
5.5.300.0000.05317.96
5.5.290.0100.04717.92
5.5.280.0030.07320.83
5.5.270.0100.07720.80
5.5.260.0100.08020.77
5.5.250.0230.04720.70
5.5.240.4230.03020.05
5.4.450.0300.05719.47
5.4.440.0100.06019.70
5.4.430.0270.05319.47
5.4.420.0200.04719.62
5.4.410.0400.05719.35
5.4.400.0170.05018.73
5.4.390.0130.05018.79
5.4.380.0230.06018.77
5.4.370.0270.05318.79
5.4.360.0200.05018.76
5.4.350.0200.05718.74
5.4.340.0130.05718.78
5.4.320.0050.03812.50
5.4.310.0040.04412.50
5.4.300.0090.04112.50
5.4.290.0030.04712.50
5.4.280.0050.03812.40
5.4.270.0070.06018.98
5.4.260.0130.05018.83
5.4.250.0100.05319.00
5.4.240.0130.05018.97
5.4.230.0270.05319.14
5.4.220.0170.05318.94
5.4.210.0130.06019.00
5.4.200.0200.05018.91
5.4.190.0130.07719.06
5.4.180.0230.04719.01
5.4.170.0170.05019.02
5.4.160.0130.04718.84
5.4.150.0130.08018.94
5.4.140.0170.07316.69
5.4.130.0070.07016.53
5.4.120.0200.04316.63
5.4.110.0100.07316.43
5.4.100.0070.06316.41
5.4.90.0130.06016.52
5.4.80.0130.05316.70
5.4.70.0070.06316.39
5.4.60.0270.05316.61
5.4.50.0130.06316.40
5.4.40.0200.04016.63
5.4.30.0070.05716.41
5.4.20.0070.07016.61
5.4.10.0200.05316.54
5.4.00.0130.06316.10
5.3.290.0100.03812.80
5.3.280.0100.05314.79
5.3.270.0070.05714.49
5.3.260.0170.07314.89
5.3.250.0070.06014.92
5.3.240.0230.06714.89
5.3.230.0100.07014.89
5.3.220.0100.07314.84
5.3.210.0070.05714.65
5.3.200.0030.05714.84
5.3.190.0070.05714.88
5.3.180.0170.05714.71
5.3.170.0130.05714.80
5.3.160.0130.04714.83
5.3.150.0100.05714.75
5.3.140.0030.06714.86
5.3.130.0100.07314.85
5.3.120.0130.06314.83
5.3.110.0170.06014.74
5.3.100.0200.05714.10
5.3.90.0030.08314.08
5.3.80.0030.08014.24
5.3.70.0130.06314.21
5.3.60.0130.05014.13
5.3.50.0200.05314.15
5.3.40.0030.07314.18
5.3.30.0070.05014.13
5.3.20.0130.05013.75
5.3.10.0130.05713.96
5.3.00.0170.04313.84
5.2.170.0170.05011.43
5.2.160.0070.05011.32
5.2.150.0070.05711.05
5.2.140.0030.05011.02
5.2.130.0070.04310.98
5.2.120.0070.04011.32
5.2.110.0200.04711.29
5.2.100.0070.04011.15
5.2.90.0100.04011.29
5.2.80.0030.05311.31
5.2.70.0030.05010.98
5.2.60.0170.05711.25
5.2.50.0100.04711.21
5.2.40.0030.05311.05
5.2.30.0030.05010.97
5.2.20.0030.05311.18
5.2.10.0100.04010.89
5.2.00.0130.03710.95
5.1.60.0100.04310.29
5.1.50.0100.03010.16
5.1.40.0030.05010.20
5.1.30.0130.03310.62
5.1.20.0100.03710.66
5.1.10.0100.0339.95
5.1.00.0030.04010.14
5.0.50.0170.0238.78
5.0.40.0100.0208.70
5.0.30.0100.0578.42
5.0.20.0000.0338.42
5.0.10.0070.0378.47
5.0.00.0030.0508.42
4.4.90.0030.0238.42
4.4.80.0130.0208.42
4.4.70.0130.0278.42
4.4.60.0070.0278.42
4.4.50.0100.0308.42
4.4.40.0000.0438.42
4.4.30.0030.0278.42
4.4.20.0030.0238.42
4.4.10.0000.0238.42
4.4.00.0030.0338.42
4.3.110.0030.0308.42
4.3.100.0070.0278.42
4.3.90.0000.0238.42
4.3.80.0000.0378.42
4.3.70.0000.0238.42
4.3.60.0030.0278.42
4.3.50.0030.0278.42
4.3.40.0000.0378.42
4.3.30.0030.0208.42
4.3.20.0000.0278.42
4.3.10.0030.0208.42
4.3.00.0030.0207.72

preferences:
42.93 ms | 401 KiB | 5 Q