3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UserData{ public $user; public $userid; const NAME = "abdullah al mamun"; public static $age = "30"; public function __construct($username, $userid){ $this->user = $username; $this->userid = $userid; echo "Username is {$this->user} and user id is{$this->userid}"; } public function display(){ echo "Full name is :".UserData::NAME."<br/>"; echo "Age is :".self::$age; } public function __destruct(){ unset($this->user); unset($this->userid); } } $user = "mamun"; $id = "25"; $ur = new UserData($user, $id); echo "<br/>"; $ur->dipplay(); ?>

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.0090.00916.86
8.3.50.0080.00816.29
8.3.40.0150.00019.09
8.3.30.0040.01118.84
8.3.20.0070.00019.99
8.3.10.0000.00821.90
8.3.00.0050.00317.91
8.2.180.0000.01518.51
8.2.170.0150.00622.96
8.2.160.0150.00020.34
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00320.52
8.2.120.0040.00426.35
8.2.110.0030.00720.52
8.2.100.0060.00617.78
8.2.90.0000.00819.08
8.2.80.0080.00017.97
8.2.70.0000.01117.63
8.2.60.0050.00317.93
8.2.50.0000.00818.10
8.2.40.0050.00322.34
8.2.30.0040.00421.04
8.2.20.0000.00718.14
8.2.10.0040.00418.04
8.2.00.0040.00418.00
8.1.280.0120.00925.92
8.1.270.0080.00023.97
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.61
8.1.230.0090.00317.46
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0000.00917.22
8.1.180.0000.00818.10
8.1.170.0040.00418.51
8.1.160.0080.00019.02
8.1.150.0070.00020.65
8.1.140.0000.00719.43
8.1.130.0070.00018.83
8.1.120.0000.00717.35
8.1.110.0030.00617.45
8.1.100.0040.00417.34
8.1.90.0070.00017.39
8.1.80.0000.00817.42
8.1.70.0030.00517.31
8.1.60.0070.00017.42
8.1.50.0000.00817.50
8.1.40.0040.00417.54
8.1.30.0070.00017.61
8.1.20.0080.00017.52
8.1.10.0030.00617.59
8.1.00.0050.00217.40
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0030.00317.25
8.0.260.0070.00016.93
8.0.250.0070.00017.04
8.0.240.0000.00916.93
8.0.230.0000.00717.04
8.0.220.0070.00016.87
8.0.210.0030.00316.86
8.0.200.0000.00717.02
8.0.190.0030.00616.91
8.0.180.0040.00416.91
8.0.170.0070.00016.91
8.0.160.0000.00716.93
8.0.150.0030.00516.86
8.0.140.0040.00416.88
8.0.130.0050.00013.42
8.0.120.0000.00716.88
8.0.110.0000.00816.74
8.0.100.0040.00417.00
8.0.90.0000.00716.84
8.0.80.0100.00717.00
8.0.70.0040.00416.86
8.0.60.0000.00716.85
8.0.50.0030.00616.90
8.0.30.0070.01217.11
8.0.20.0100.01017.40
8.0.10.0000.00717.09
8.0.00.0150.00916.82
7.4.330.0050.00015.55
7.4.320.0000.00716.47
7.4.300.0040.00416.48
7.4.290.0000.00716.62
7.4.280.0080.00016.64
7.4.270.0000.00716.43
7.4.260.0050.00013.30
7.4.250.0040.00416.39
7.4.240.0060.00316.50
7.4.230.0070.00016.26
7.4.220.0240.00716.47
7.4.210.0070.01216.56
7.4.200.0030.00316.55
7.4.160.0060.01216.62
7.4.150.0070.01117.40
7.4.140.0090.01217.86
7.4.130.0080.00916.40
7.4.120.0070.01316.55
7.4.110.0070.01116.48
7.4.100.0090.00916.30
7.4.90.0100.00716.58
7.4.80.0060.01119.39
7.4.70.0070.01316.63
7.4.60.0110.00716.54
7.4.50.0120.00616.32
7.4.40.0070.01716.64
7.4.30.0030.01216.53
7.4.00.0050.01214.94
7.3.330.0000.00513.33
7.3.320.0000.00513.24
7.3.310.0070.00016.44
7.3.300.0030.00316.27
7.3.290.0050.00916.36
7.3.280.0080.01016.35
7.3.270.0130.00317.40
7.3.260.0100.00716.34
7.3.250.0100.00816.36
7.3.240.0160.00316.48
7.3.230.0110.01616.48
7.3.210.0100.00716.46
7.3.200.0120.00916.44
7.3.190.0030.01316.23
7.3.180.0070.01116.61
7.3.170.0050.01116.29
7.3.160.0080.00816.49
7.3.120.0090.00914.94
7.3.110.0050.01114.69
7.3.100.0100.00514.79
7.3.90.0070.00814.87
7.3.80.0060.00814.76
7.3.70.0070.00414.86
7.3.60.0120.00514.76
7.3.50.0110.00514.71
7.3.40.0100.00614.63
7.3.30.0060.00714.77
7.3.20.0080.00716.53
7.3.10.0050.00916.57
7.3.00.0070.00716.56
7.2.330.0100.00716.71
7.2.320.0030.01316.85
7.2.310.0080.00816.84
7.2.300.0140.00816.82
7.2.290.0070.01616.72
7.2.250.0070.01115.17
7.2.240.0050.01114.86
7.2.230.0000.01314.97
7.2.220.0070.00615.25
7.2.210.0040.00915.01
7.2.200.0030.01014.84
7.2.190.0070.01015.07
7.2.180.0070.00815.11
7.2.170.0120.00314.97
7.2.60.0060.00917.12
7.2.00.0090.00619.23
7.1.330.0050.00915.79
7.1.320.0040.01015.93
7.1.310.0050.01115.62
7.1.300.0070.00715.78
7.1.290.0050.00715.93
7.1.280.0060.00915.71
7.1.270.0070.00715.84
7.1.260.0020.01215.71
7.1.200.0000.01415.81
7.1.100.0060.00618.25
7.1.70.0050.00316.96
7.1.60.0030.00917.07
7.1.50.0110.00716.79
7.1.40.0100.01716.27
7.1.30.0070.01116.40
7.1.20.0090.00916.56
7.1.10.0040.00816.56
7.1.00.0030.00916.47
7.0.200.0030.00716.94
7.0.190.0030.00716.64
7.0.180.0070.01116.47
7.0.170.0080.00416.54
7.0.160.0080.00416.23
7.0.150.0030.00916.18
7.0.140.0070.00716.33
7.0.130.0060.00916.67
7.0.120.0040.00716.58
7.0.110.0040.00716.35
7.0.100.0060.00616.22
7.0.90.0040.00716.20
7.0.80.0040.01216.33
7.0.70.0130.01316.41
7.0.60.0090.00316.11
7.0.50.0030.00716.50
7.0.40.0060.00614.88
7.0.30.0060.00314.88
7.0.20.0040.00414.88
7.0.10.0020.00514.88
7.0.00.0040.00414.88

preferences:
55.27 ms | 401 KiB | 5 Q