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->display(); ?>

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.00716.38
8.3.50.0060.00916.39
8.3.40.0090.00618.70
8.3.30.0120.00418.69
8.3.20.0040.00420.34
8.3.10.0040.00421.77
8.3.00.0040.00417.66
8.2.180.0030.01516.38
8.2.170.0070.00722.96
8.2.160.0000.01420.32
8.2.150.0060.00825.66
8.2.140.0030.00524.66
8.2.130.0040.00420.51
8.2.120.0040.00426.35
8.2.110.0060.00322.25
8.2.100.0060.00617.78
8.2.90.0040.00419.23
8.2.80.0080.00018.04
8.2.70.0100.00217.22
8.2.60.0050.00317.89
8.2.50.0040.00418.10
8.2.40.0060.00322.27
8.2.30.0000.00721.04
8.2.20.0000.00718.19
8.2.10.0000.00818.00
8.2.00.0040.00418.12
8.1.280.0120.00625.92
8.1.270.0080.00023.82
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0070.00323.64
8.1.230.0110.00020.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0070.00317.23
8.1.180.0030.00618.10
8.1.170.0030.00518.25
8.1.160.0040.00419.05
8.1.150.0030.00520.60
8.1.140.0000.00819.43
8.1.130.0070.00018.74
8.1.120.0040.00417.31
8.1.110.0000.00817.29
8.1.100.0030.00517.38
8.1.90.0040.00417.41
8.1.80.0000.01017.41
8.1.70.0040.00417.30
8.1.60.0000.00817.61
8.1.50.0000.00817.52
8.1.40.0040.00417.42
8.1.30.0030.00517.71
8.1.20.0000.00817.57
8.1.10.0030.00617.63
8.1.00.0040.00417.53
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.48
8.0.270.0070.00017.25
8.0.260.0040.00416.88
8.0.250.0000.00716.97
8.0.240.0030.00716.97
8.0.230.0050.00316.99
8.0.220.0030.00316.90
8.0.210.0030.00316.94
8.0.200.0000.00616.89
8.0.190.0040.00416.87
8.0.180.0070.00016.94
8.0.170.0030.00516.92
8.0.160.0070.00016.89
8.0.150.0040.00416.87
8.0.140.0000.00716.81
8.0.130.0000.00613.24
8.0.120.0000.00716.87
8.0.110.0050.00316.76
8.0.100.0040.00416.92
8.0.90.0040.00416.78
8.0.80.0060.00916.89
8.0.70.0000.00716.93
8.0.60.0040.00416.80
8.0.50.0040.00416.77
8.0.30.0070.01016.97
8.0.20.0150.01117.40
8.0.10.0070.00016.98
8.0.00.0060.01816.88
7.4.330.0000.00515.55
7.4.320.0030.00316.46
7.4.300.0070.00016.41
7.4.290.0030.00316.60
7.4.280.0000.00716.59
7.4.270.0000.00816.60
7.4.260.0000.00513.21
7.4.250.0030.00316.47
7.4.240.0030.00316.58
7.4.230.0000.00716.61
7.4.220.0110.00916.56
7.4.210.0060.01316.52
7.4.200.0030.00516.70
7.4.160.0140.00516.38
7.4.150.0120.00817.40
7.4.140.0100.00817.86
7.4.130.0090.00916.54
7.4.120.0120.00816.49
7.4.110.0100.00716.42
7.4.100.0100.01316.46
7.4.90.0030.01416.37
7.4.80.0080.00919.39
7.4.70.0110.01016.53
7.4.60.0100.00716.40
7.4.50.0120.00316.57
7.4.40.0100.01116.61
7.4.30.0040.01316.41
7.4.10.0090.00914.73
7.4.00.0080.01115.02
7.3.330.0000.00513.37
7.3.320.0000.00513.33
7.3.310.0030.00316.34
7.3.300.0000.00616.29
7.3.290.0070.00916.24
7.3.280.0090.00716.28
7.3.270.0120.00817.40
7.3.260.0070.00916.42
7.3.250.0100.00916.29
7.3.240.0110.00916.25
7.3.230.0090.01216.51
7.3.210.0060.01016.16
7.3.200.0060.01116.57
7.3.190.0000.01616.57
7.3.180.0070.01016.37
7.3.170.0060.01116.47
7.3.160.0070.01016.41
7.3.130.0040.01514.75
7.3.120.0050.01214.84
7.3.110.0100.00714.79
7.3.100.0060.00714.61
7.3.90.0050.00714.83
7.3.80.0050.00914.72
7.3.70.0060.00814.61
7.3.60.0070.00714.79
7.3.50.0090.00414.71
7.3.40.0030.01014.75
7.3.30.0060.00714.75
7.3.20.0100.00516.48
7.3.10.0050.00816.63
7.3.00.0050.00816.72
7.2.330.0030.01316.79
7.2.320.0140.00316.77
7.2.310.0030.01316.44
7.2.300.0130.00516.46
7.2.290.0100.01016.66
7.2.260.0070.01315.13
7.2.250.0080.01015.14
7.2.240.0060.01115.14
7.2.230.0070.00714.98
7.2.220.0050.00815.22
7.2.210.0060.00714.95
7.2.200.0030.01115.14
7.2.190.0020.01015.03
7.2.180.0030.01015.03
7.2.170.0060.00815.02
7.2.160.0040.01515.10
7.2.150.0090.00917.06
7.2.140.0110.00417.14
7.2.130.0000.01516.68
7.2.120.0030.00617.00
7.2.110.0040.01117.06
7.2.100.0060.00616.98
7.2.90.0060.00917.12
7.2.80.0060.00617.04
7.2.70.0040.00816.97
7.2.60.0090.00517.02
7.2.50.0060.00916.86
7.2.40.0140.00316.93
7.2.30.0100.00617.13
7.2.20.0040.01117.02
7.2.10.0040.01216.79
7.2.00.0060.01118.21
7.1.330.0030.01215.69
7.1.320.0060.00815.83
7.1.310.0040.01115.83
7.1.300.0050.00915.68
7.1.290.0070.00715.86
7.1.280.0090.00615.76
7.1.270.0100.00415.76
7.1.260.0030.01015.69
7.1.250.0070.00715.93
7.1.240.0060.00315.88
7.1.230.0060.00315.77
7.1.220.0060.00915.71
7.1.210.0050.00315.64
7.1.200.0050.00915.88
7.1.190.0030.00715.90
7.1.180.0150.00015.67
7.1.170.0070.00715.62
7.1.160.0120.00015.92
7.1.150.0070.00715.82
7.1.140.0110.00415.80
7.1.130.0030.01015.80
7.1.120.0050.00515.82
7.1.110.0030.00715.88
7.1.100.0110.00815.75
7.1.90.0000.01315.67
7.1.80.0090.00615.77
7.1.70.1380.01015.49
7.1.60.1270.00324.27
7.1.50.1700.01324.19
7.1.40.1670.01324.15
7.1.30.2180.01123.91
7.1.20.1620.01524.23
7.1.10.1300.01515.21
7.1.00.1420.01215.44
7.0.330.0140.00015.63
7.0.320.0060.00615.45
7.0.310.0110.00315.44
7.0.300.0030.01015.43
7.0.290.0060.00315.38
7.0.280.0090.00615.43
7.0.270.0030.00915.46
7.0.260.0030.01015.48
7.0.250.0060.00315.59
7.0.240.0040.01115.54
7.0.230.0000.00815.52
7.0.220.0030.01015.43
7.0.210.0040.01215.42
7.0.200.2320.00515.14
7.0.190.2350.01615.14
7.0.180.1580.01315.01
7.0.170.2120.00814.83
7.0.160.2000.01015.09
7.0.150.1250.00814.99
7.0.140.1400.01515.00
7.0.130.0230.01415.00
7.0.120.1370.00915.00
7.0.110.1400.00815.13
7.0.100.1430.00814.86
7.0.90.0280.00814.94
7.0.80.0140.00514.93
7.0.70.1390.00714.90
7.0.60.1680.00814.86
7.0.50.1670.01415.05
7.0.40.1450.00914.23
7.0.30.1430.00914.01
7.0.20.1550.01214.02
7.0.10.1340.00714.07
7.0.00.1080.01014.11
5.6.400.0060.00614.30
5.6.390.0000.01414.65
5.6.380.0030.01214.25
5.6.370.0060.00314.25
5.6.360.0060.00814.33
5.6.350.0060.00614.32
5.6.340.0060.00914.18
5.6.330.0080.00414.30
5.6.320.0030.01014.39
5.6.310.0110.00414.61
5.6.300.0030.00614.70
5.6.290.0000.01314.63
5.6.280.0030.00614.76
5.6.270.0030.01314.55
5.6.260.0000.01314.55
5.6.250.0030.00614.46
5.6.240.0000.01314.57
5.6.230.0060.00614.34
5.6.220.0070.00714.67
5.6.210.0030.00714.30
5.6.200.0030.01014.35
5.6.190.0040.01114.41
5.6.180.0070.00714.64
5.6.170.0100.00014.27
5.6.160.0100.00714.70
5.6.150.0070.00714.53
5.6.140.0030.01014.45
5.6.130.0040.01114.61
5.6.120.0060.00914.64
5.6.110.0080.00614.65
5.6.100.0060.00614.60
5.6.90.0070.00714.36
5.6.80.0030.01014.18
5.6.70.0030.01014.30
5.6.60.0030.00914.46
5.6.50.0030.01214.28
5.6.40.0070.00714.52
5.6.30.0100.00714.63
5.6.20.0030.01314.38
5.6.10.0060.01214.18
5.6.00.0030.01014.22

preferences:
39.52 ms | 400 KiB | 5 Q