3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SG_Endpoint{ var $secret_password; public function __construct( $secret_password ){ $this->secret_password = $secret_password; } } $sgendpoint = new SG_Endpoint( "foobar" ); // echo $sgendpoint->secret_password

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.0110.00416.63
8.3.50.0100.01117.43
8.3.40.0110.00718.59
8.3.30.0110.00318.71
8.3.20.0040.00418.70
8.3.10.0060.00320.53
8.3.00.0000.00819.13
8.2.180.0180.00016.38
8.2.170.0110.00422.96
8.2.160.0100.00320.44
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00317.50
8.2.110.0030.00720.89
8.2.100.0110.00017.64
8.2.90.0050.00320.81
8.2.80.0000.00717.80
8.2.70.0040.00717.50
8.2.60.0070.00317.91
8.2.50.0000.00818.07
8.2.40.0000.00818.03
8.2.30.0070.00417.94
8.2.20.0000.00817.52
8.2.10.0040.00417.48
8.2.00.0050.00317.56
8.1.280.0120.00325.92
8.1.270.0040.00424.66
8.1.260.0060.01226.35
8.1.250.0040.00428.09
8.1.240.0100.00722.34
8.1.230.0000.01120.95
8.1.220.0080.00017.74
8.1.210.0000.00818.92
8.1.200.0040.00417.23
8.1.190.0040.00417.50
8.1.180.0060.00318.10
8.1.170.0080.00018.77
8.1.160.0040.00418.73
8.1.150.0070.00018.57
8.1.140.0040.00417.29
8.1.130.0040.00417.69
8.1.120.0040.00417.30
8.1.110.0000.00717.34
8.1.100.0000.00717.42
8.1.90.0040.00417.35
8.1.80.0030.00317.36
8.1.70.0070.00017.32
8.1.60.0060.00317.60
8.1.50.0040.00417.45
8.1.40.0080.00017.50
8.1.30.0000.00717.73
8.1.20.0000.00717.61
8.1.10.0000.00717.52
8.1.00.0030.00617.45
8.0.300.0000.00819.83
8.0.290.0040.00416.63
8.0.280.0000.00718.34
8.0.270.0000.00717.12
8.0.260.0030.00316.67
8.0.250.0050.00216.84
8.0.240.0000.00716.88
8.0.230.0070.00016.85
8.0.220.0030.00616.86
8.0.210.0000.00716.83
8.0.200.0000.00616.75
8.0.190.0060.00316.88
8.0.180.0030.00316.88
8.0.170.0080.00016.84
8.0.160.0000.00716.87
8.0.150.0000.00816.80
8.0.140.0080.00016.78
8.0.130.0000.00613.18
8.0.120.0030.00516.75
8.0.110.0030.00316.80
8.0.100.0000.00716.70
8.0.90.0040.00416.68
8.0.80.0120.00816.88
8.0.70.0040.00416.69
8.0.60.0000.00716.71
8.0.50.0020.00516.91
8.0.30.0090.01217.15
8.0.20.0110.00717.06
8.0.10.0050.00216.80
8.0.00.0170.00316.73
7.4.330.0050.00012.93
7.4.320.0090.00016.62
7.4.300.0080.00016.48
7.4.290.0040.00416.48
7.4.280.0060.00316.48
7.4.270.0070.00016.59
7.4.260.0000.00513.22
7.4.250.0030.00616.39
7.4.240.0000.00716.50
7.4.230.0070.00016.71
7.4.220.0080.01116.39
7.4.210.0070.00716.57
7.4.200.0030.00316.69
7.4.190.0020.00516.73
7.4.160.0090.00916.28
7.4.150.0150.00416.50
7.4.140.0130.00516.51
7.4.130.0100.00716.50
7.4.120.0060.01316.45
7.4.110.0030.01316.32
7.4.100.0150.00416.68
7.4.90.0120.00616.39
7.4.80.0120.00919.39
7.4.70.0030.01316.46
7.4.60.0120.00616.43
7.4.50.0000.00816.54
7.4.40.0110.00316.43
7.4.30.0060.01016.40
7.4.00.0040.00714.82
7.3.330.0060.00013.25
7.3.320.0060.00013.14
7.3.310.0000.00716.33
7.3.300.0030.00316.12
7.3.290.0050.01116.22
7.3.280.0090.00716.19
7.3.270.0140.00316.38
7.3.260.0070.01016.16
7.3.250.0120.00916.20
7.3.240.0030.01316.43
7.3.230.0130.00316.19
7.3.210.0060.01116.31
7.3.200.0070.01016.28
7.3.190.0130.01016.16
7.3.180.0100.00616.36
7.3.170.0100.00916.21
7.3.160.0120.00716.41
7.3.120.0060.00914.70
7.3.10.0030.01216.58
7.3.00.0070.00716.54
7.2.330.0100.00716.56
7.2.320.0160.00616.56
7.2.310.0060.01216.71
7.2.300.0100.01016.65
7.2.290.0070.01416.66
7.2.130.0090.00916.90
7.2.120.0070.00716.66
7.2.110.0100.00316.35
7.2.100.0030.01016.66
7.2.90.0040.01116.96
7.2.80.0100.00316.35
7.2.70.0060.00616.37
7.2.60.0060.00916.66
7.2.50.0000.01316.50
7.2.40.0000.01316.27
7.2.30.0100.00616.78
7.2.20.0040.00816.70
7.2.10.0100.00716.81
7.2.00.0050.00818.14
7.1.250.0140.00315.66
7.1.100.0000.01218.07
7.1.70.0070.00317.05
7.1.60.0070.01719.40
7.1.50.0100.01616.53
7.1.00.0100.06722.37
7.0.200.0230.00714.70
7.0.140.0030.07022.02
7.0.120.0000.07722.03
7.0.60.0030.04720.02
7.0.50.0130.04317.84
7.0.40.0130.08020.18
7.0.30.0170.05720.34
7.0.20.0230.07720.30
7.0.10.0030.09020.19
7.0.00.0100.07720.09
5.6.280.0070.07021.13
5.6.210.0130.07020.73
5.6.200.0070.08318.20
5.6.190.0000.09020.62
5.6.180.0300.03320.52
5.6.170.0300.07020.71
5.6.160.0100.07320.71
5.6.150.0000.04318.19
5.6.140.0130.07318.17
5.6.130.0130.07318.29
5.6.120.0030.09021.15
5.6.110.0030.04021.01
5.6.100.0030.04321.01
5.6.90.0030.04320.88
5.6.80.0030.04720.38
5.6.70.3770.03720.41
5.5.350.0270.07320.38
5.5.340.0100.08317.99
5.5.330.0030.04320.25
5.5.320.0370.06720.28
5.5.310.0270.06020.32
5.5.300.0030.03717.98
5.5.290.0130.05718.02
5.5.280.0070.05020.98
5.5.270.0070.08320.84
5.5.260.0270.07320.77
5.5.250.0070.05720.57
5.5.240.0330.06720.26
5.4.450.0070.04019.34
5.4.440.0000.05719.14
5.4.430.0170.06319.58
5.4.420.0100.04719.57
5.4.410.0130.04319.37
5.4.400.0030.05019.10
5.4.390.0130.06718.88
5.4.380.0030.04019.20
5.4.370.0070.05019.07
5.4.360.0030.04018.87
5.4.350.0070.03719.20
5.4.340.0030.04018.88
5.4.320.0230.06018.86
5.4.310.0100.07019.24
5.4.300.0070.05018.97
5.4.290.0100.07019.07
5.4.280.0100.07719.23
5.4.270.0170.07019.18
5.4.260.0030.04719.20
5.4.250.0070.07718.84
5.4.240.0000.04319.23
5.4.230.0070.03719.20
5.4.220.0030.03719.13
5.4.210.0030.03719.14
5.4.200.0030.03719.00
5.4.190.0070.03318.96
5.4.180.0070.03319.16
5.4.170.0030.04018.98
5.4.160.0030.03719.12
5.4.150.0030.04019.13
5.4.140.0100.03016.41
5.4.130.0070.03016.43
5.4.120.0070.03016.43
5.4.110.0030.03316.41
5.4.100.0000.03716.45
5.4.90.0070.03016.49
5.4.80.0070.03016.34
5.4.70.0030.04016.41
5.4.60.0030.03316.41
5.4.50.0000.03716.31
5.4.40.0070.03016.64
5.4.30.0100.02716.38
5.4.20.0070.03016.62
5.4.10.0000.03716.38
5.4.00.0000.03715.80
5.3.290.0070.08014.69
5.3.280.0000.04314.59
5.3.270.0030.04014.65
5.3.260.0000.04014.61
5.3.250.0070.04014.67
5.3.240.0030.03714.75
5.3.230.0000.04014.75
5.3.220.0070.03714.57
5.3.210.0000.04014.63
5.3.200.0070.03314.59
5.3.190.0070.03314.55
5.3.180.0030.03314.61
5.3.170.0030.03714.44
5.3.160.0000.04314.70
5.3.150.0000.04014.55
5.3.140.0030.03714.44
5.3.130.0000.04014.59
5.3.120.0070.03314.55
5.3.110.0030.03714.55
5.3.100.0070.03314.03
5.3.90.0000.04014.04
5.3.80.0000.03714.08
5.3.70.0030.03314.05
5.3.60.0030.04713.95
5.3.50.0000.04013.89
5.3.40.0000.03714.02
5.3.30.0030.03713.90
5.3.20.0070.07013.73
5.3.10.0030.04713.65
5.3.00.0000.08013.70
5.2.170.0000.03011.31
5.2.160.0070.02311.20
5.2.150.0070.03711.20
5.2.140.0070.02311.16
5.2.130.0000.03011.10
5.2.120.0000.03011.14
5.2.110.0000.03311.25
5.2.100.0030.04011.15
5.2.90.0000.06011.13
5.2.80.0100.05711.16
5.2.70.0000.04011.05
5.2.60.0000.04311.09
5.2.50.0030.03011.02
5.2.40.0070.03010.95
5.2.30.0070.02710.91
5.2.20.0070.02310.84
5.2.10.0070.03710.78
5.2.00.0030.05710.74
5.1.60.0100.0539.99
5.1.50.0030.0409.96
5.1.40.0030.0279.88
5.1.30.0100.02710.34
5.1.20.0000.03710.36
5.1.10.0070.05710.14
5.1.00.0100.02310.22
5.0.50.0070.0178.58
5.0.40.0100.0338.32
5.0.30.0030.0638.27
5.0.20.0070.0338.34
5.0.10.0070.0438.22
5.0.00.0030.0638.13
4.4.90.0070.0307.81
4.4.80.0000.0237.81
4.4.70.0030.0377.81
4.4.60.0000.0337.81
4.4.50.0100.0237.81
4.4.40.0000.0537.81
4.4.30.0000.0207.81
4.4.20.0000.0377.81
4.4.10.0000.0177.81
4.4.00.0000.0477.81
4.3.110.0030.0377.81
4.3.100.0030.0177.81
4.3.90.0030.0337.81
4.3.80.0000.0407.81
4.3.70.0100.0137.81
4.3.60.0000.0177.81
4.3.50.0030.0307.81
4.3.40.0030.0237.81
4.3.30.0000.0177.81
4.3.20.0000.0177.81
4.3.10.0030.0307.81
4.3.00.0000.0307.81

preferences:
54.22 ms | 401 KiB | 5 Q