3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class User { public string $name; } $user = new User(); $name = $user->name;

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.4.120.0120.01120.53
8.4.110.0130.00722.61
8.4.100.0040.00418.21
8.4.90.0110.00718.67
8.4.80.0140.00718.00
8.4.70.0040.00517.97
8.4.60.0090.00820.67
8.4.50.0030.00518.70
8.4.40.0060.00318.05
8.4.30.0110.00820.73
8.4.20.0100.01021.58
8.4.10.0030.00619.79
8.3.250.0150.00318.80
8.3.240.0120.00816.87
8.3.230.0070.00216.48
8.3.220.0160.00518.72
8.3.210.0090.00918.43
8.3.200.0060.00316.78
8.3.190.0070.00116.88
8.3.180.0070.01116.51
8.3.170.0100.00717.18
8.3.160.0030.00617.11
8.3.150.0060.00917.18
8.3.140.0000.01516.78
8.3.130.0220.01016.50
8.3.120.0220.00717.15
8.3.110.0330.00516.61
8.3.100.0360.00716.42
8.3.90.0350.00916.31
8.3.80.0360.00616.58
8.3.70.0410.00416.62
8.3.60.0380.00816.42
8.3.50.0360.00316.52
8.3.40.0200.00617.47
8.3.30.0240.00517.43
8.3.20.0360.00217.40
8.3.10.0310.00917.47
8.3.00.0240.00817.62
8.2.290.0090.01020.68
8.2.280.0130.00618.62
8.2.270.0070.01316.55
8.2.260.0110.00417.16
8.2.250.0150.00617.41
8.2.240.0170.00416.64
8.2.230.0300.00816.65
8.2.220.0260.01216.35
8.2.210.0290.00916.37
8.2.200.0330.00216.67
8.2.190.0230.01016.61
8.2.180.0250.00416.46
8.2.170.0270.00517.45
8.2.160.0280.00717.72
8.2.150.0220.00317.44
8.2.140.0230.00417.36
8.2.130.0160.00217.40
8.2.120.0170.00617.37
8.2.110.0210.00417.30
8.2.100.0150.00317.56
8.2.90.0130.00617.55
8.2.80.0180.01017.39
8.2.70.0260.00217.46
8.2.60.0100.00917.37
8.2.50.0170.00417.38
8.2.40.0140.00417.42
8.2.30.0160.00117.09
8.2.20.0110.00517.10
8.2.10.0220.00317.14
8.2.00.0220.00317.32
8.1.330.0100.00823.51
8.1.320.0100.01116.21
8.1.310.0110.00716.51
8.1.300.0230.00216.18
8.1.290.0200.00616.18
8.1.280.0210.00516.21
8.1.270.0250.00317.13
8.1.260.0150.00817.29
8.1.250.0190.00917.10
8.1.240.0180.00716.95
8.1.230.0160.00816.89
8.1.220.0160.00717.02
8.1.210.0230.00316.85
8.1.200.0200.00417.09
8.1.190.0160.00816.95
8.1.180.0180.00616.97
8.1.170.0240.00316.71
8.1.160.0170.00617.08
8.1.150.0150.00616.92
8.1.140.0240.00016.83
8.1.130.0200.00817.13
8.1.120.0210.00617.11
8.1.110.0210.00416.84
8.1.100.0170.00817.01
8.1.90.0160.00917.05
8.1.80.0200.00516.70
8.1.70.0220.00417.01
8.1.60.0200.00516.88
8.1.50.0140.01416.96
8.1.40.0180.01017.02
8.1.30.0290.00217.02
8.1.20.0170.01017.23
8.1.10.0270.00617.29
8.1.00.0230.00616.67

preferences:
29.92 ms | 403 KiB | 5 Q