3v4l.org

run code in 300+ PHP versions simultaneously
<?php class UserData{ public $user; public $userid; public function __construct($username, $userid){ $this->user = $username; $this->userid = $userid; } public function display(){ echo "Username is {$this->user} and user id is{$this->userid}"; } } $user = "mamun"; $id = "25"; $ur = new UserData($user, $id); echo "<br/>"; $ur->display(); echo "<br/>"; ?>

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.00716.38
8.3.50.0000.01416.70
8.3.40.0160.00618.85
8.3.30.0120.00318.51
8.3.20.0080.00020.16
8.3.10.0070.00721.77
8.3.00.0050.00317.78
8.2.180.0140.00716.50
8.2.170.0110.00722.96
8.2.160.0100.00720.27
8.2.150.0030.00525.66
8.2.140.0040.00424.66
8.2.130.0110.00420.35
8.2.120.0040.00426.35
8.2.110.0060.00320.47
8.2.100.0110.00417.91
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0100.00017.38
8.2.60.0040.00418.05
8.2.50.0060.00318.10
8.2.40.0080.00022.15
8.2.30.0000.00821.09
8.2.20.0050.00217.97
8.2.10.0070.00018.21
8.2.00.0040.00418.02
8.1.280.0170.00325.92
8.1.270.0090.00523.87
8.1.260.0060.00926.35
8.1.250.0150.00028.09
8.1.240.0050.00522.07
8.1.230.0120.00020.96
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00817.22
8.1.180.0060.00318.10
8.1.170.0040.00418.51
8.1.160.0030.00519.07
8.1.150.0050.00320.62
8.1.140.0000.00819.38
8.1.130.0070.00018.78
8.1.120.0070.00017.45
8.1.110.0000.00817.40
8.1.100.0070.00017.44
8.1.90.0000.00717.43
8.1.80.0030.00517.46
8.1.70.0000.00717.34
8.1.60.0060.00317.61
8.1.50.0070.00017.57
8.1.40.0090.00017.50
8.1.30.0000.00817.62
8.1.20.0000.00717.65
8.1.10.0050.00317.57
8.1.00.0070.00017.50
8.0.300.0070.00018.77
8.0.290.0040.00416.59
8.0.280.0030.00318.45
8.0.270.0080.00017.26
8.0.260.0040.00416.82
8.0.250.0080.00016.98
8.0.240.0000.00716.91
8.0.230.0040.00416.84
8.0.220.0050.00216.80
8.0.210.0000.00716.77
8.0.200.0040.00416.98
8.0.190.0080.00016.96
8.0.180.0030.00316.88
8.0.170.0040.00416.95
8.0.160.0030.00616.81
8.0.150.0000.00716.72
8.0.140.0000.00716.85
8.0.130.0030.00313.39
8.0.120.0040.00416.85
8.0.110.0070.00016.88
8.0.100.0000.00716.78
8.0.90.0040.00416.72
8.0.80.0150.00016.85
8.0.70.0040.00416.92
8.0.60.0000.00716.89
8.0.50.0000.00816.91
8.0.30.0110.00816.94
8.0.20.0060.01317.40
8.0.10.0000.00716.82
8.0.00.0100.01016.64
7.4.330.0000.00615.55
7.4.320.0000.00816.52
7.4.300.0000.00616.62
7.4.290.0070.00316.59
7.4.280.0020.00516.63
7.4.270.0000.00716.53
7.4.260.0050.00013.34
7.4.250.0040.00416.61
7.4.240.0000.00816.63
7.4.230.0030.00316.68
7.4.220.0070.01316.46
7.4.210.0120.00616.63
7.4.200.0030.00516.64
7.4.160.0100.00816.56
7.4.150.0160.00917.40
7.4.140.0120.01117.86
7.4.130.0120.00616.60
7.4.120.0040.01416.60
7.4.110.0100.00716.45
7.4.100.0160.00416.43
7.4.90.0150.00816.52
7.4.80.0110.00619.39
7.4.70.0030.01316.33
7.4.60.0100.00616.49
7.4.50.0100.00416.34
7.4.40.0080.00916.50
7.4.30.0100.00716.51
7.4.00.0050.01315.05
7.3.330.0060.00013.25
7.3.320.0000.00513.11
7.3.310.0040.00416.35
7.3.300.0000.00716.26
7.3.290.0090.00716.28
7.3.280.0090.00816.20
7.3.270.0150.00917.40
7.3.260.0060.01116.44
7.3.250.0130.00616.31
7.3.240.0080.01016.46
7.3.230.0090.01216.54
7.3.210.0120.00616.17
7.3.200.0100.00616.26
7.3.190.0050.01216.44
7.3.180.0030.01316.24
7.3.170.0100.00716.52
7.3.160.0040.01216.16
7.3.120.0150.00314.66
7.3.110.0040.01414.96
7.3.100.0030.01514.61
7.3.90.0110.00714.33
7.3.80.0000.01514.86
7.3.70.0050.00514.87
7.3.60.0080.00414.84
7.3.50.0120.00014.90
7.3.40.0060.00314.53
7.3.30.0070.00714.84
7.3.20.0060.00616.28
7.3.10.0000.01016.59
7.3.00.0040.00716.48
7.2.330.0160.00316.75
7.2.320.0100.00616.77
7.2.310.0080.00816.62
7.2.300.0090.01216.36
7.2.290.0130.00316.48
7.2.250.0030.00915.00
7.2.240.0090.01214.73
7.2.230.0000.01414.59
7.2.220.0030.00615.14
7.2.210.0090.00615.09
7.2.200.0030.01015.05
7.2.190.0120.00414.90
7.2.180.0080.00415.01
7.2.170.0070.00415.00
7.2.60.0000.01216.50
7.2.00.0060.00619.07
7.1.330.0040.01115.80
7.1.320.0080.00415.82
7.1.310.0060.00615.67
7.1.300.0070.01015.80
7.1.290.0000.01215.86
7.1.280.0060.00615.68
7.1.270.0000.01415.72
7.1.260.0000.01215.82
7.1.200.0080.00315.48
7.1.100.0060.01018.17
7.1.70.1800.01315.04
7.1.60.1930.01333.20
7.1.50.1500.02032.75
7.1.40.2200.01332.56
7.1.30.2430.02032.33
7.1.20.2800.02032.87
7.1.10.1830.01314.95
7.1.00.1170.01015.02
7.0.200.2200.01014.58
7.0.190.1530.01014.75
7.0.180.2000.01014.50
7.0.170.2870.01014.36
7.0.160.3330.01014.40
7.0.150.1230.01314.52
7.0.140.1670.01014.30
7.0.130.1500.01714.57
7.0.120.1630.00714.80
7.0.110.1600.00714.21
7.0.100.1570.01014.57
7.0.90.1570.01014.41
7.0.80.1530.01314.57
7.0.70.1430.01714.48
7.0.60.1500.02014.39
7.0.50.1570.02314.54
7.0.40.1900.01014.50
7.0.30.1930.00714.55
7.0.20.1630.01314.77
7.0.10.1700.01314.56
7.0.00.1770.01014.56

preferences:
48.92 ms | 400 KiB | 5 Q