3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Character { public $UID; public $Name; /* Other Variables */ public function __construct($conection, $UID) { #$details = $conection->prepare("SELECT * FROM Character_Details WHERE UID = ?"); #$details->bindParam(1, $UID); #$details->execute(); #$myDetails = $details->fetch(); $this->aName = 'Stuff'; # $myDetails['Name']; echo $this->aName . ': '; /* More variables set */ } public function DescribeMe() { echo "Character Description for: {$this->aName}"; /* Scenario A */ echo "Character Description for: {$aName}"; /* Scenario B */ echo "Character Description for: {self::$aName}"; /* Scenario C */ } } $char = new Character('param', 'param'); $char->DescribeMe();

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.00318.43
8.3.50.0100.01021.99
8.3.40.0170.00318.87
8.3.30.0110.00318.75
8.3.20.0040.00418.90
8.3.10.0030.00521.08
8.3.00.0050.00321.86
8.2.180.0130.00716.38
8.2.170.0210.00022.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0140.00326.16
8.2.120.0050.00321.00
8.2.110.0040.00821.00
8.2.100.0120.00017.91
8.2.90.0000.00919.34
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0000.00918.16
8.2.30.0000.00819.48
8.2.20.0040.00417.74
8.2.10.0040.00417.77
8.2.00.0080.00017.76
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0100.00021.23
8.1.230.0060.00617.51
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0040.00417.10
8.1.190.0050.00317.22
8.1.180.0050.00318.10
8.1.170.0050.00318.61
8.1.160.0000.00718.91
8.1.150.0000.00718.64
8.1.140.0040.00417.42
8.1.130.0000.00717.75
8.1.120.0000.00817.49
8.1.110.0000.00717.39
8.1.100.0040.00417.50
8.1.90.0000.00717.45
8.1.80.0020.00517.46
8.1.70.0080.00017.43
8.1.60.0040.00417.48
8.1.50.0060.00317.37
8.1.40.0040.00417.50
8.1.30.0000.00817.59
8.1.20.0080.00017.62
8.1.10.0060.00317.60
8.1.00.0090.00017.52
8.0.300.0090.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.46
8.0.270.0070.00017.17
8.0.260.0030.00716.76
8.0.250.0080.00016.90
8.0.240.0040.00417.03
8.0.230.0000.00717.04
8.0.220.0000.00816.92
8.0.210.0000.00716.86
8.0.200.0000.00717.02
8.0.190.0030.00316.93
8.0.180.0040.00417.02
8.0.170.0030.00517.01
8.0.160.0040.00416.86
8.0.150.0000.00716.97
8.0.140.0070.00016.85
8.0.130.0060.00013.35
8.0.120.0040.00416.93
8.0.110.0050.00216.81
8.0.100.0000.00717.01
8.0.90.0030.00517.07
8.0.80.0100.00716.96
8.0.70.0000.00716.97
8.0.60.0080.00016.90
8.0.50.0040.00416.78
8.0.30.0110.00817.17
8.0.20.0100.00817.40
8.0.10.0080.00016.90
8.0.00.0120.01216.78
7.4.330.0050.00016.76
7.4.320.0040.00416.45
7.4.300.0030.00316.46
7.4.290.0000.00716.60
7.4.280.0070.00016.58
7.4.270.0070.00016.65
7.4.260.0050.00013.30
7.4.250.0090.00016.55
7.4.240.0070.00016.50
7.4.230.0040.00316.61
7.4.220.0120.00616.55
7.4.210.0070.00916.58
7.4.200.0020.00516.31
7.4.190.0000.00716.57
7.4.160.0080.00816.62
7.4.150.0040.01417.40
7.4.140.0040.01417.86
7.4.130.0060.01316.67
7.4.120.0090.00916.58
7.4.110.0040.01216.56
7.4.100.0130.00716.57
7.4.90.0140.00316.59
7.4.80.0060.00919.39
7.4.70.0090.01216.50
7.4.60.0070.01016.61
7.4.50.0030.00616.34
7.4.40.0070.01122.77
7.4.30.0060.01216.43
7.4.00.0090.00615.16
7.3.330.0000.00513.45
7.3.320.0020.00213.25
7.3.310.0030.00316.54
7.3.300.0040.00416.44
7.3.290.0030.01216.45
7.3.280.0070.01016.42
7.3.270.0060.01217.40
7.3.260.0100.01018.24
7.3.250.0100.00716.36
7.3.240.0130.00316.48
7.3.230.0070.01316.52
7.3.210.0130.00916.50
7.3.200.0040.01919.39
7.3.190.0140.00316.53
7.3.180.0120.00316.48
7.3.170.0070.01116.70
7.3.160.0080.00816.58
7.3.120.0060.01014.68
7.2.330.0060.01116.77
7.2.320.0150.00916.83
7.2.310.0080.01616.82
7.2.300.0120.00416.80
7.2.290.0030.01316.71
7.2.00.0110.00719.36
7.1.100.0320.00317.61
7.1.70.0030.00617.15
7.1.60.0060.01919.40
7.1.50.0100.01017.04
7.1.00.0030.05022.40
7.0.200.0030.00516.90
7.0.140.0000.06322.09
7.0.60.0030.04721.76
7.0.50.0100.07722.05
7.0.40.0100.07319.99
7.0.30.0170.07019.99
7.0.20.0070.05020.11
7.0.10.0030.05020.08
7.0.00.0070.08020.05
5.6.280.0070.07021.11
5.6.210.0070.08020.65
5.6.200.0070.08321.06
5.6.190.0070.07321.03
5.6.180.0070.05320.99
5.6.170.0070.07721.03
5.6.160.0100.06721.06
5.6.150.0030.06721.03
5.6.140.0130.06721.05
5.6.130.0070.07721.05
5.6.120.0100.06321.08
5.6.110.0070.07020.90
5.6.100.0000.08320.98
5.6.90.0100.06321.11
5.6.80.0130.07320.45
5.6.70.0030.07720.36
5.6.60.0070.06320.37
5.6.50.0030.06720.42
5.6.40.0070.08020.36
5.6.30.0000.07720.35
5.6.20.0070.07720.50
5.6.10.0030.06720.48
5.6.00.0030.07720.40
5.5.350.0100.03720.44
5.5.340.0000.09020.75
5.5.330.0100.07720.81
5.5.320.0030.05720.90
5.5.310.0070.08020.99
5.5.300.0030.08020.79
5.5.290.0030.07020.67
5.5.280.0030.07020.98
5.5.270.0030.06020.77
5.5.260.0000.09020.73
5.5.250.0070.07320.70
5.5.240.0000.08020.27
5.5.230.0030.07320.28
5.5.220.0030.06720.16
5.5.210.0030.06020.16
5.5.200.0070.07020.14
5.5.190.0030.07320.24
5.5.180.0130.07020.26
5.5.160.0100.07020.29
5.5.150.0000.08020.25
5.5.140.0000.08320.32
5.5.130.0030.07320.09
5.5.120.0000.07320.23
5.5.110.0030.07319.97
5.5.100.0070.07320.04
5.5.90.0030.05719.90
5.5.80.0100.05320.02
5.5.70.0100.07319.86
5.5.60.0030.06019.97
5.5.50.0000.08020.11
5.5.40.0000.07720.20
5.5.30.0070.07320.10
5.5.20.0030.07019.97
5.5.10.0070.06020.07
5.5.00.0030.06720.00
5.4.450.0070.07719.42
5.4.440.0000.08319.54
5.4.430.0070.07719.23
5.4.420.0030.07019.23
5.4.410.0100.07319.26
5.4.400.0100.07319.22
5.4.390.0100.07318.91
5.4.380.0070.05319.07
5.4.370.0030.07718.90
5.4.360.0000.06718.91
5.4.350.0100.07019.22
5.4.340.0030.07718.90
5.4.320.0100.06318.91
5.4.310.0100.06319.16
5.4.300.0000.07718.90
5.4.290.0070.07019.20
5.4.280.0030.07719.07
5.4.270.0030.06719.16
5.4.260.0030.06718.99
5.4.250.0070.07018.91
5.4.240.0070.06019.00
5.4.230.0030.07019.20
5.4.220.0000.07019.04
5.4.210.0070.07019.00
5.4.200.0030.06319.02
5.4.190.0030.07319.11
5.4.180.0000.07319.21
5.4.170.0100.05719.00
5.4.160.0000.07319.20
5.4.150.0070.06718.88
5.4.140.0070.07716.20
5.4.130.0100.06016.47
5.4.120.0070.07016.34
5.4.110.0030.06016.33
5.4.100.0030.06316.46
5.4.90.0000.07316.46
5.4.80.0070.06716.39
5.4.70.0030.07716.32
5.4.60.0070.06316.34
5.4.50.0030.06316.22
5.4.40.0100.06316.43
5.4.30.0030.05716.31
5.4.20.0070.06716.45
5.4.10.0070.05716.33
5.4.00.0030.06715.90
5.3.290.0030.05314.69
5.3.280.0000.06714.47
5.3.270.0000.07014.66
5.3.260.0100.07014.69
5.3.250.0070.05714.63
5.3.240.0030.06714.61
5.3.230.0100.07314.57
5.3.220.0030.06014.57
5.3.210.0000.08014.53
5.3.200.0030.07014.62
5.3.190.0000.06014.57
5.3.180.0000.07714.61
5.3.170.0070.06714.61
5.3.160.0070.06014.66
5.3.150.0030.07014.63
5.3.140.0030.07314.61
5.3.130.0130.07314.57
5.3.120.0030.07314.54
5.3.110.0000.08014.65
5.3.100.0000.06014.00
5.3.90.0000.07314.03
5.3.80.0030.06713.93
5.3.70.0030.06314.00
5.3.60.0030.07014.07
5.3.50.0030.06314.00
5.3.40.0070.06014.00
5.3.30.0100.06713.98
5.3.20.0030.06713.66
5.3.10.0070.07013.73
5.3.00.0000.07313.69
5.2.170.0000.06311.21
5.2.160.0030.06011.00
5.2.150.0000.04711.20
5.2.140.0070.06011.21
5.2.130.0000.06311.09
5.2.120.0100.05311.10
5.2.110.0030.05311.15
5.2.100.0000.05311.21
5.2.90.0070.05711.12
5.2.80.0000.06711.15
5.2.70.0030.06311.14
5.2.60.0030.06011.10
5.2.50.0070.04310.93
5.2.40.0000.03011.00
5.2.30.0000.04010.83
5.2.20.0070.02310.87
5.2.10.0030.02710.77
5.2.00.0070.02310.73
5.1.60.0030.0209.84
5.1.50.0000.02310.11
5.1.40.0000.0239.81
5.1.30.0030.02710.30
5.1.20.0000.02010.43
5.1.10.0000.0209.95
5.1.00.0000.02310.05
5.0.50.0000.0178.82
5.0.40.0070.0108.82
5.0.30.0030.0308.82
5.0.20.0000.0178.82
5.0.10.0000.0208.82
5.0.00.0000.0278.82
4.4.90.0000.0378.82
4.4.80.0000.0378.82
4.4.70.0000.0138.82
4.4.60.0000.0178.82
4.4.50.0000.0138.82
4.4.40.0000.0238.82
4.4.30.0000.0178.82
4.4.20.0030.0108.82
4.4.10.0070.0078.82
4.4.00.0000.0208.82
4.3.110.0000.0178.82
4.3.100.0000.0178.82
4.3.90.0000.0178.82
4.3.80.0000.0238.82
4.3.70.0030.0138.82
4.3.60.0000.0108.82
4.3.50.0000.0178.82
4.3.40.0000.0238.82
4.3.30.0000.0138.82
4.3.20.0000.0138.82
4.3.10.0000.0138.82
4.3.00.0000.0138.82

preferences:
45.83 ms | 401 KiB | 5 Q