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.70.0070.00718.43
8.3.60.0070.01116.48
8.3.50.0100.01116.42
8.3.40.0120.00318.75
8.3.30.0140.00018.63
8.3.20.0040.00420.29
8.3.10.0040.00423.52
8.3.00.0040.00417.72
8.2.180.0040.01216.88
8.2.170.0120.00322.96
8.2.160.0100.00720.52
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00022.12
8.2.120.0050.00326.35
8.2.110.0080.00322.26
8.2.100.0110.00017.91
8.2.90.0050.00319.17
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0030.00617.68
8.2.50.0060.00318.10
8.2.40.0060.00320.42
8.2.30.0000.00820.85
8.2.20.0040.00418.03
8.2.10.0000.00718.11
8.2.00.0000.00717.95
8.1.280.0070.00725.92
8.1.270.0030.00523.96
8.1.260.0020.00526.35
8.1.250.0080.00028.09
8.1.240.0030.00623.98
8.1.230.0130.00017.42
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0100.00017.22
8.1.180.0040.00418.10
8.1.170.0030.00618.66
8.1.160.0050.00319.02
8.1.150.0040.00420.52
8.1.140.0050.00219.64
8.1.130.0030.00318.77
8.1.120.0000.00717.41
8.1.110.0080.00017.43
8.1.100.0040.00417.36
8.1.90.0000.00817.35
8.1.80.0050.00317.34
8.1.70.0050.00217.43
8.1.60.0040.00417.41
8.1.50.0030.00517.50
8.1.40.0040.00417.51
8.1.30.0040.00417.49
8.1.20.0000.00917.55
8.1.10.0020.00517.53
8.1.00.0040.00417.53
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0030.00318.41
8.0.270.0000.00717.20
8.0.260.0080.00016.82
8.0.250.0040.00416.89
8.0.240.0000.01016.95
8.0.230.0030.00516.89
8.0.220.0000.00716.88
8.0.210.0000.00716.94
8.0.200.0000.00817.02
8.0.190.0080.00016.89
8.0.180.0040.00416.83
8.0.170.0070.00016.95
8.0.160.0000.00716.90
8.0.150.0070.00016.80
8.0.140.0080.00016.78
8.0.130.0000.00513.33
8.0.120.0090.00016.94
8.0.110.0040.00416.78
8.0.100.0040.00416.80
8.0.90.0040.00416.90
8.0.80.0070.01116.87
8.0.70.0060.00316.80
8.0.60.0000.00916.96
8.0.50.0050.00316.92
8.0.30.0120.00817.15
8.0.20.0140.00717.40
8.0.10.0020.00517.02
8.0.00.0110.00816.57
7.4.330.0020.00315.55
7.4.320.0000.00716.54
7.4.300.0030.00316.61
7.4.290.0030.00316.60
7.4.280.0090.00016.61
7.4.270.0030.00316.49
7.4.260.0000.00513.31
7.4.250.0040.00416.55
7.4.240.0000.00716.57
7.4.230.0030.00316.63
7.4.220.0060.01216.49
7.4.210.0040.01416.46
7.4.200.0050.00216.61
7.4.160.0020.01516.56
7.4.150.0140.00317.40
7.4.140.0120.00717.86
7.4.130.0100.00716.63
7.4.120.0090.01016.51
7.4.110.0090.00916.56
7.4.100.0030.01916.50
7.4.90.0100.01316.51
7.4.80.0120.00919.39
7.4.70.0100.00616.56
7.4.60.0060.01116.39
7.4.50.0080.00616.59
7.4.40.0030.01316.70
7.4.30.0030.01316.53
7.4.00.0060.00615.07
7.3.330.0050.00013.14
7.3.320.0060.00013.08
7.3.310.0030.00316.27
7.3.300.0000.00616.26
7.3.290.0080.00616.31
7.3.280.0110.00716.30
7.3.270.0130.00317.40
7.3.260.0100.00616.53
7.3.250.0080.01216.43
7.3.240.0100.00716.56
7.3.230.0080.01716.38
7.3.210.0000.01516.56
7.3.200.0060.01316.30
7.3.190.0070.01016.33
7.3.180.0040.01116.24
7.3.170.0090.00916.50
7.3.160.0120.00416.48
7.2.330.0120.00616.67
7.2.320.0030.01516.52
7.2.310.0130.00316.57
7.2.300.0160.01016.44
7.2.290.0110.00716.46
7.2.60.0030.01316.48
7.2.00.0080.00319.47
7.1.200.0060.00615.69
7.1.100.0030.01017.87
7.1.70.2600.01714.92
7.1.60.3200.01733.19
7.1.50.2870.01332.52
7.1.40.3470.01732.24
7.1.30.4570.02732.54
7.1.20.2730.02032.81
7.1.10.2270.01014.73
7.1.00.3300.01314.56
7.0.200.3970.01014.86
7.0.190.4200.00714.88
7.0.180.3200.00014.39
7.0.170.3930.00714.09
7.0.160.4070.01014.53
7.0.150.2430.01014.46
7.0.140.2830.02014.21
7.0.130.3030.01314.73
7.0.120.3170.01314.58
7.0.110.2900.01014.36
7.0.100.2200.01314.15
7.0.90.2070.01714.20
7.0.80.2230.01314.42
7.0.70.2500.01314.18
7.0.60.2270.01314.17
7.0.50.1830.01714.16
7.0.40.1830.02014.55
7.0.30.2130.01014.65
7.0.20.2000.01314.35
7.0.10.1870.01014.47
7.0.00.1870.02014.50

preferences:
51.77 ms | 401 KiB | 5 Q