3v4l.org

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

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.75
8.3.50.0110.00416.38
8.3.40.0120.00318.99
8.3.30.0090.00618.44
8.3.20.0040.00420.33
8.3.10.0080.00023.36
8.3.00.0000.00717.72
8.2.180.0040.01116.88
8.2.170.0060.00922.96
8.2.160.0040.01320.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00422.12
8.2.120.0040.00426.35
8.2.110.0060.00320.57
8.2.100.0080.00419.89
8.2.90.0000.00818.11
8.2.80.0030.00617.97
8.2.70.0000.00917.80
8.2.60.0000.00718.09
8.2.50.0060.00318.10
8.2.40.0050.00322.27
8.2.30.0000.00820.86
8.2.20.0050.00318.04
8.2.10.0040.00418.11
8.2.00.0030.00518.13
8.1.280.0140.00025.92
8.1.270.0040.00423.92
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0090.00022.11
8.1.230.0080.00420.67
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0000.00818.82
8.1.160.0000.00719.07
8.1.150.0040.00420.51
8.1.140.0040.00419.43
8.1.130.0000.00818.77
8.1.120.0000.00717.40
8.1.110.0000.00717.29
8.1.100.0040.00417.44
8.1.90.0040.00417.26
8.1.80.0030.00317.33
8.1.70.0000.00717.39
8.1.60.0000.00817.53
8.1.50.0020.00517.42
8.1.40.0080.00017.49
8.1.30.0030.00617.72
8.1.20.0060.00317.51
8.1.10.0030.00517.62
8.1.00.0000.00717.49
8.0.300.0070.00019.64
8.0.290.0030.00516.75
8.0.280.0030.00318.38
8.0.270.0060.00317.12
8.0.260.0000.00716.83
8.0.250.0030.00316.93
8.0.240.0040.00416.98
8.0.230.0030.00316.85
8.0.220.0070.00016.90
8.0.210.0070.00016.90
8.0.200.0000.00716.97
8.0.190.0060.00316.98
8.0.180.0070.00016.94
8.0.170.0000.00816.92
8.0.160.0040.00416.83
8.0.150.0040.00416.79
8.0.140.0040.00416.75
8.0.130.0050.00013.29
8.0.120.0040.00416.83
8.0.110.0040.00416.88
8.0.100.0000.00716.78
8.0.90.0000.00716.89
8.0.80.0110.00616.82
8.0.70.0020.00516.88
8.0.60.0080.00016.73
8.0.50.0000.00716.93
8.0.30.0100.00817.10
8.0.20.0130.00717.40
8.0.10.0040.00417.13
8.0.00.0110.00616.66
7.4.330.0000.00515.55
7.4.320.0040.00416.48
7.4.300.0070.00016.60
7.4.290.0040.00416.55
7.4.280.0080.00016.55
7.4.270.0030.00316.43
7.4.260.0030.00313.28
7.4.250.0050.00216.49
7.4.240.0030.00616.53
7.4.230.0000.00616.50
7.4.220.0160.00416.48
7.4.210.0140.00716.48
7.4.200.0040.00416.60
7.4.160.0100.00916.54
7.4.150.0040.01317.40
7.4.140.0100.00717.86
7.4.130.0120.00616.70
7.4.120.0110.00916.51
7.4.110.0180.00316.50
7.4.100.0100.01316.44
7.4.90.0070.01116.52
7.4.80.0070.01319.39
7.4.70.0150.00316.39
7.4.60.0100.00716.34
7.4.50.0060.01016.38
7.4.40.0130.01016.56
7.4.30.0100.00716.59
7.4.00.0040.01214.98
7.3.330.0020.00213.14
7.3.320.0050.00013.16
7.3.310.0000.00616.31
7.3.300.0030.00316.35
7.3.290.0100.00516.34
7.3.280.0100.00616.30
7.3.270.0090.00917.40
7.3.260.0100.00716.35
7.3.250.0110.01116.43
7.3.240.0070.01016.40
7.3.230.0180.00616.38
7.3.210.0060.01016.36
7.3.200.0000.01616.60
7.3.190.0080.01016.55
7.3.180.0040.01116.35
7.3.170.0030.01316.36
7.3.160.0060.01216.27
7.3.120.0120.00814.98
7.3.110.0030.01314.77
7.3.100.0110.00414.83
7.3.90.0100.00314.76
7.3.80.0000.00814.79
7.3.70.0030.00614.86
7.3.60.0000.01314.75
7.3.50.0100.00714.87
7.3.40.0090.00314.86
7.3.30.0060.00614.47
7.3.20.0060.00316.67
7.3.10.0100.00316.57
7.3.00.0130.00316.27
7.2.330.0150.00616.41
7.2.320.0130.00316.30
7.2.310.0060.01016.38
7.2.300.0030.01916.32
7.2.290.0060.01216.51
7.2.250.0150.00315.07
7.2.240.0120.00614.91
7.2.230.0030.00714.74
7.2.220.0000.01015.11
7.2.210.0030.01014.56
7.2.200.0030.01314.61
7.2.190.0000.01614.92
7.2.180.0130.00014.89
7.2.170.0090.00614.98
7.2.60.0040.00816.96
7.2.00.0060.00619.35
7.1.330.0080.00815.35
7.1.320.0030.00815.67
7.1.310.0060.00915.59
7.1.300.0030.01015.56
7.1.290.0060.00615.64
7.1.280.0040.01115.68
7.1.270.0030.01315.70
7.1.260.0030.01015.39
7.1.200.0090.00315.79
7.1.100.0050.00517.96
7.1.70.3000.01315.04
7.1.60.2630.01033.18
7.1.50.2600.00732.97
7.1.40.2600.01732.52
7.1.30.3100.01732.56
7.1.20.1870.02032.54
7.1.10.2200.01714.81
7.1.00.1230.01314.79
7.0.200.2800.00714.68
7.0.190.3000.00714.90
7.0.180.1600.01314.55
7.0.170.2730.01014.41
7.0.160.2830.01314.39
7.0.150.1970.01314.37
7.0.140.1230.01314.50
7.0.130.1730.01014.55
7.0.120.1500.01014.44
7.0.110.1500.02314.46
7.0.100.1700.00714.40
7.0.90.1700.00714.56
7.0.80.1830.01014.35
7.0.70.2330.01014.28
7.0.60.1700.01314.28
7.0.50.1770.01714.07
7.0.40.1800.00714.56
7.0.30.1970.01014.43
7.0.20.1830.01314.39
7.0.10.2600.01314.50
7.0.00.1770.01714.59

preferences:
39.92 ms | 401 KiB | 5 Q