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(); $foo->getUsername();

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.0170.01222.00
8.3.40.0060.01218.86
8.3.30.0090.00919.05
8.3.20.0050.00320.18
8.3.10.0080.00021.92
8.3.00.0000.00722.39
8.2.180.0070.01416.75
8.2.170.0040.01122.96
8.2.160.0070.00720.92
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.23
8.2.110.0100.00722.08
8.2.100.0090.00317.84
8.2.90.0040.00419.41
8.2.80.0000.00819.66
8.2.70.0080.00017.63
8.2.60.0050.00318.05
8.2.50.0040.00418.07
8.2.40.0000.00818.20
8.2.30.0070.00018.12
8.2.20.0070.00017.71
8.2.10.0080.00017.86
8.2.00.0040.00417.81
8.1.280.0050.00925.92
8.1.270.0040.00422.13
8.1.260.0050.00226.35
8.1.250.0100.00728.09
8.1.240.0100.01023.98
8.1.230.0070.00419.08
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0040.00817.35
8.1.190.0060.00317.38
8.1.180.0040.00418.10
8.1.170.0030.00518.53
8.1.160.0000.00721.93
8.1.150.0070.00018.70
8.1.140.0000.00717.45
8.1.130.0070.00017.88
8.1.120.0050.00217.51
8.1.110.0030.00617.47
8.1.100.0050.00317.48
8.1.90.0000.00717.33
8.1.80.0070.00017.45
8.1.70.0030.00317.40
8.1.60.0030.00617.46
8.1.50.0000.00717.58
8.1.40.0050.00217.48
8.1.30.0000.00717.55
8.1.20.0050.00317.69
8.1.10.0040.00417.61
8.1.00.0050.00317.56
8.0.300.0030.00318.77
8.0.290.0020.00517.18
8.0.280.0040.00418.49
8.0.270.0030.00317.15
8.0.260.0040.00416.76
8.0.250.0000.00716.96
8.0.240.0040.00416.89
8.0.230.0070.00017.00
8.0.220.0030.00316.88
8.0.210.0040.00417.00
8.0.200.0030.00316.95
8.0.190.0030.00616.98
8.0.180.0000.00716.96
8.0.170.0040.00416.95
8.0.160.0040.00416.93
8.0.150.0030.00316.85
8.0.140.0040.00416.89
8.0.130.0030.00313.36
8.0.120.0040.00416.82
8.0.110.0070.00016.96
8.0.100.0050.00216.80
8.0.90.0000.00716.99
8.0.80.0110.00816.91
8.0.70.0000.00716.92
8.0.60.0080.00016.91
8.0.50.0000.00816.82
8.0.30.0090.01017.16
8.0.20.0150.00317.40
8.0.10.0070.00016.96
8.0.00.0110.01016.70
7.4.330.0000.00615.03
7.4.320.0070.00016.37
7.4.300.0000.00616.53
7.4.290.0000.00716.52
7.4.280.0030.00316.40
7.4.270.0030.00316.62
7.4.260.0070.00016.43
7.4.250.0000.00716.49
7.4.240.0060.00116.46
7.4.230.0000.00616.48
7.4.220.0150.00416.45
7.4.210.0070.00916.56
7.4.200.0050.00216.25
7.4.190.0040.00416.59
7.4.160.0060.00916.46
7.4.150.0100.00517.40
7.4.140.0110.00817.86
7.4.130.0100.00816.73
7.4.120.0070.01316.56
7.4.110.0170.00016.64
7.4.100.0060.01516.77
7.4.90.0090.00916.55
7.4.80.0070.01019.39
7.4.70.0110.00616.56
7.4.60.0000.01616.44
7.4.50.0030.00516.64
7.4.40.0100.00722.77
7.4.30.0090.00916.66
7.4.00.0070.01115.14
7.3.330.0030.00313.39
7.3.320.0000.00513.29
7.3.310.0040.00416.38
7.3.300.0060.00016.31
7.3.290.0030.01216.46
7.3.280.0060.00916.42
7.3.270.0130.00317.40
7.3.260.0180.00616.59
7.3.250.0050.01316.49
7.3.240.0100.00716.61
7.3.230.0060.01116.39
7.3.210.0080.00816.67
7.3.200.0070.01019.39
7.3.190.0060.01616.33
7.3.180.0070.01016.28
7.3.170.0070.01016.55
7.3.160.0070.00916.45
7.3.120.0070.01015.05
7.3.10.0140.00316.79
7.3.00.0110.00516.50
7.2.330.0070.01116.82
7.2.320.0100.01116.80
7.2.310.0130.00716.69
7.2.300.0090.01716.68
7.2.290.0100.00616.75
7.2.130.0170.00616.65
7.2.120.0090.00816.82
7.2.110.0100.00916.86
7.2.100.0180.00516.48
7.2.90.0090.01016.59
7.2.80.0130.01416.61
7.2.70.0210.01016.71
7.2.60.0150.00716.65
7.2.50.0230.00616.75
7.2.40.0110.01016.69
7.2.30.0140.01216.85
7.2.20.0150.01116.57
7.2.10.0130.00316.61
7.2.00.0100.00617.74
7.1.250.0110.00615.62
7.1.240.0110.01115.35
7.1.230.0100.01015.20
7.1.220.0120.01015.63
7.1.210.0150.00415.27
7.1.200.0070.00715.59
7.1.190.0190.00615.59
7.1.180.0190.00615.65
7.1.170.0170.00715.79
7.1.160.0110.00815.35
7.1.150.0110.01115.63
7.1.140.0060.01315.65
7.1.130.0160.00315.25
7.1.120.0120.00615.57
7.1.110.0130.00615.61
7.1.100.0090.00616.81
7.1.90.0100.00715.79
7.1.80.0140.00715.50
7.1.70.0030.00816.40
7.1.60.0080.01317.69
7.1.50.0140.00616.09
7.1.40.0100.00715.36
7.1.30.0100.00715.81
7.1.20.0090.00915.38
7.1.10.0090.00915.90
7.1.00.0100.03719.12
7.0.330.0140.00714.98
7.0.320.0170.00315.38
7.0.310.0110.00615.43
7.0.300.0090.00915.13
7.0.290.0100.01015.21
7.0.280.0120.00815.14
7.0.270.0100.01015.13
7.0.260.0080.00815.13
7.0.250.0100.00715.13
7.0.240.0110.00715.28
7.0.230.0140.00414.98
7.0.220.0120.01215.59
7.0.210.0140.00315.26
7.0.200.0090.00915.84
7.0.190.0160.00415.31
7.0.180.0080.00815.32
7.0.170.0090.00615.25
7.0.160.0100.01014.89
7.0.150.0120.00415.04
7.0.140.0100.03718.56
7.0.130.0100.00715.31
7.0.120.0190.00315.43
7.0.110.0100.00615.14
7.0.100.0030.01015.36
7.0.90.0060.01015.43
7.0.80.0120.00314.92
7.0.70.0060.00915.02
7.0.60.0130.04217.60
7.0.50.0160.03716.53
7.0.40.0070.02816.87
7.0.30.0200.02816.74
7.0.20.0130.03316.75
7.0.10.0040.02716.76
7.0.00.0040.02616.81
5.6.380.0080.00814.42
5.6.370.0070.00414.24
5.6.360.0060.00313.97
5.6.350.0130.00814.47
5.6.340.0120.00614.57
5.6.330.0130.00614.12
5.6.320.0090.00614.14
5.6.310.0060.00614.40
5.6.300.0090.01414.61
5.6.290.0110.00414.50
5.6.280.0030.04017.62
5.6.270.0060.01014.23
5.6.260.0030.01014.02
5.6.250.0090.00614.24
5.6.240.0060.00914.29
5.6.230.0070.00714.25
5.6.220.0030.01014.27
5.6.210.0060.02017.53
5.6.200.0030.03816.34
5.6.190.0080.04317.29
5.6.180.0230.03317.51
5.6.170.0220.03117.33
5.6.160.0050.04217.23
5.6.150.0090.04416.10
5.6.140.0070.03116.19
5.6.130.0040.03516.26
5.6.120.0030.02517.42
5.6.110.0070.04217.75
5.6.100.0100.03317.51
5.6.90.0100.02317.69
5.6.80.0070.04717.30
5.6.70.0090.00614.19
5.6.60.0070.00413.95
5.6.50.0000.01314.10
5.6.40.0040.01113.80
5.6.30.0100.00313.97
5.6.20.0140.00314.06
5.6.10.0100.00314.36
5.6.00.0040.01114.41
5.5.380.0000.00811.17
5.5.370.0090.00410.91
5.5.360.0050.00510.90
5.5.350.0140.04015.67
5.5.340.0060.03614.55
5.5.330.0090.04515.72
5.5.320.0270.03515.63
5.5.310.0130.02015.73
5.5.300.0020.02614.48
5.5.290.0100.04014.60
5.5.280.0080.02016.02
5.5.270.0070.04216.00
5.5.260.0030.04516.13
5.5.250.0050.04815.70
5.5.240.0070.04715.59
5.5.230.0040.00411.19
5.5.220.0000.00910.90
5.5.210.0100.00310.90
5.5.200.0050.00510.94
5.5.190.0000.00711.26
5.5.180.0030.00911.11
5.5.170.0120.00310.90
5.5.160.0060.00310.90
5.5.150.0030.00711.15
5.5.140.0030.00711.22
5.5.130.0030.00711.39
5.5.120.0090.00011.06
5.5.110.0030.00911.19
5.5.100.0000.01311.49
5.5.90.0030.00310.90
5.5.80.0080.00410.90
5.5.70.0070.00411.02
5.5.60.0030.00510.93
5.5.50.0030.00510.90
5.5.40.0030.00710.97
5.5.30.0030.00510.90
5.5.20.0030.00710.90
5.5.10.0000.01110.92
5.5.00.0000.00610.90
5.4.450.0230.03015.14
5.4.440.0260.02415.19
5.4.430.0450.02315.27
5.4.420.0300.02515.21
5.4.410.0690.02015.09
5.4.400.0350.02515.12
5.4.390.0400.02214.87
5.4.380.0150.03114.82
5.4.370.0420.03214.80
5.4.360.0220.04114.84
5.4.350.0340.03014.84
5.4.340.0150.03615.08
5.4.330.0130.00510.90
5.4.320.0070.02411.85
5.4.310.0090.02211.89
5.4.300.0050.02311.73
5.4.290.0050.02311.70
5.4.280.0050.02611.77
5.4.270.0070.03214.99
5.4.260.0070.04515.08
5.4.250.0100.04314.95
5.4.240.0050.04515.16
5.4.230.0130.02714.98
5.4.220.0060.03215.00
5.4.210.0070.03014.94
5.4.200.0070.02715.00
5.4.190.0090.03514.85
5.4.180.0080.03014.95
5.4.170.0070.04214.96
5.4.160.0060.03015.04
5.4.150.0100.03214.99
5.4.140.0090.03913.73
5.4.130.0170.03513.84
5.4.120.0110.02613.71
5.4.110.0090.02913.82
5.4.100.0030.03413.66
5.4.90.0100.02513.69
5.4.80.0080.03613.63
5.4.70.0050.04213.83
5.4.60.0060.02813.67
5.4.50.0100.02513.62
5.4.40.0070.03213.80
5.4.30.0050.03213.95
5.4.20.0120.03513.90
5.4.10.0150.03113.75
5.4.00.0120.02613.51
5.3.290.0110.02211.85
5.3.280.0090.03212.86
5.3.270.0040.03112.85
5.3.260.0100.03612.90
5.3.250.0080.03112.77
5.3.240.0070.02912.90
5.3.230.0050.03312.78
5.3.220.0030.03412.76
5.3.210.0030.04112.87
5.3.200.0090.03112.88
5.3.190.0070.03512.87
5.3.180.0060.03812.87
5.3.170.0090.02912.85
5.3.160.0120.03412.87
5.3.150.0120.03112.89
5.3.140.0090.02912.84
5.3.130.0070.03212.73
5.3.120.0140.03712.75
5.3.110.0090.03612.86
5.3.100.0070.03312.41
5.3.90.0120.03512.49
5.3.80.0070.03312.49
5.3.70.0070.03512.49
5.3.60.0060.02812.51
5.3.50.0090.03012.57
5.3.40.0170.02112.52
5.3.30.0080.02812.48
5.3.20.0100.03512.24
5.3.10.0070.03412.30
5.3.00.0090.02912.42
5.2.170.0080.02011.13
5.2.160.0060.02510.96
5.2.150.0110.01811.05
5.2.140.0040.02811.05
5.2.130.0160.02011.15
5.2.120.0100.02711.14
5.2.110.0030.02511.03
5.2.100.0080.03111.09
5.2.90.0050.02211.00
5.2.80.0050.02611.10
5.2.70.0100.02711.02
5.2.60.0080.02811.11
5.2.50.0070.02211.08
5.2.40.0020.02711.04
5.2.30.0060.02611.04
5.2.20.0090.03010.86
5.2.10.0090.02411.02
5.2.00.0040.02510.96
5.1.60.0030.02910.56
5.1.50.0040.02210.53
5.1.40.0090.02310.52
5.1.30.0120.01710.62
5.1.20.0070.02210.63
5.1.10.0030.02110.62
5.1.00.0060.01910.59
5.0.50.0070.0209.80
5.0.40.0060.0179.82
5.0.30.0040.0249.61
5.0.20.0020.0239.49
5.0.10.0060.0229.64
5.0.00.0030.0309.68
4.4.90.0040.0139.28
4.4.80.0020.0179.28
4.4.70.0060.0129.28
4.4.60.0030.0139.28
4.4.50.0050.0159.28
4.4.40.0030.0259.28
4.4.30.0010.0179.28
4.4.20.0090.0109.28
4.4.10.0030.0139.28
4.4.00.0020.0219.28
4.3.110.0040.0129.28
4.3.100.0070.0119.28
4.3.90.0060.0129.28
4.3.80.0020.0249.28
4.3.70.0000.0159.28
4.3.60.0050.0139.28
4.3.50.0060.0119.28
4.3.40.0030.0229.28
4.3.30.0040.0129.28
4.3.20.0010.0139.28
4.3.10.0030.0129.28
4.3.00.0060.00513.24

preferences:
40.93 ms | 401 KiB | 5 Q