3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { public int $uid; public function __construct(int $uid) { $this->uid = $uid; } } $user = new User(42); $user->__construct(43); echo $user->uid;

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.130.0050.00318.39
8.3.120.0000.00919.22
8.3.110.0160.00020.94
8.3.100.0060.00324.06
8.3.90.0060.00326.77
8.3.80.0060.00318.43
8.3.70.0070.01116.58
8.3.60.0040.01218.43
8.3.50.0110.01120.36
8.3.40.0100.01020.02
8.3.30.0110.00418.85
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.250.0050.00316.53
8.2.240.0180.00017.09
8.2.230.0060.00922.58
8.2.220.0060.00337.54
8.2.210.0120.00326.77
8.2.200.0040.00416.63
8.2.190.0110.00416.75
8.2.180.0120.00325.92
8.2.170.0170.00019.04
8.2.160.0140.00022.96
8.2.150.0050.00325.66
8.2.140.0070.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00326.16
8.2.110.0070.00421.18
8.2.100.0090.00317.78
8.2.90.0050.00319.38
8.2.80.0000.00818.85
8.2.70.0000.00817.61
8.2.60.0050.00317.93
8.2.50.0030.00518.07
8.2.40.0080.00018.34
8.2.30.0000.00717.96
8.2.20.0080.00021.02
8.2.10.0000.00717.89
8.2.00.0030.00519.05
8.1.300.0080.00018.56
8.1.290.0060.00330.84
8.1.280.0150.00625.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.01419.09
8.1.230.0080.00319.14
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00818.46
8.1.160.0050.00318.73
8.1.150.0050.00218.58
8.1.140.0000.00717.29
8.1.130.0000.00718.82
8.1.120.0040.00417.35
8.1.110.0080.00817.36
8.1.100.0160.00017.41
8.1.90.0050.01017.27
8.1.80.0100.00617.26
8.1.70.0080.00817.18
8.1.60.0130.00517.55
8.1.50.0140.00417.43
8.1.40.0050.01417.44
8.1.30.0090.00917.61
8.1.20.0120.00817.66
8.1.10.0150.00417.66
8.1.00.0100.00817.49
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.40
8.0.270.0040.00417.19
8.0.260.0050.00218.32
8.0.250.0090.00616.85
8.0.240.0060.00916.87
8.0.230.0050.01016.70
8.0.220.0120.00316.84
8.0.210.0110.00416.83
8.0.200.0120.00316.87
8.0.190.0150.00016.75
8.0.180.0130.00316.74
8.0.170.0140.00016.74
8.0.160.0110.00416.71
8.0.150.0080.00816.71
8.0.140.0090.00616.66
8.0.130.0150.00016.64
8.0.120.0050.01016.77
8.0.110.0110.00416.71
8.0.100.0110.00416.84
8.0.90.0050.01016.75
8.0.80.0100.00516.70
8.0.70.0120.00316.80
8.0.60.0050.01116.71
8.0.50.0080.00816.79
8.0.30.0130.00316.69
8.0.20.0130.00316.84
8.0.10.0070.01017.00
7.4.330.0030.00315.55
7.4.320.0130.00416.51
7.4.300.0180.00016.40
7.4.290.0120.00516.63
7.4.280.0080.00816.54
7.4.270.0160.00416.61
7.4.260.0170.00016.43
7.4.250.0230.00016.52
7.4.240.0160.00316.62
7.4.230.0130.00616.58
7.4.220.0130.00316.48
7.4.210.0150.00016.48
7.4.200.0120.00416.48
7.4.190.0070.00516.39
7.4.180.0100.00016.18
7.4.160.0000.01016.25
7.4.150.0070.00216.40
7.4.140.0090.00216.08
7.4.130.0050.00516.29
7.4.120.0080.00316.32
7.4.110.0030.00716.01
7.4.100.0070.00416.53
7.4.90.0070.00416.39
7.4.80.0070.00316.02
7.4.70.0030.00616.14
7.4.60.0100.00016.36
7.4.50.0080.00316.39
7.4.40.0030.00716.31
7.4.30.0020.00816.24
7.4.20.0070.00516.45
7.4.10.0060.00316.05
7.4.00.0000.01016.52

preferences:
45.63 ms | 403 KiB | 5 Q