3v4l.org

run code in 500+ PHP versions simultaneously
<?php readonly class Foo { public string $name { get { return $this->name; } set { $this->name = ucfirst($value); } } }

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.130.0380.01017.58
8.4.120.0410.00917.54
8.4.110.0390.01017.52
8.4.100.0420.00817.67
8.4.90.0420.00917.60
8.4.80.0400.01017.56
8.4.70.0440.00917.73
8.4.60.0410.01017.68
8.4.50.0420.00817.76
8.4.40.0390.01217.33
8.4.30.0380.00417.29
8.4.20.0200.00517.56
8.4.10.0170.01017.54
8.3.260.0140.00816.74
8.3.250.0190.00216.75
8.3.240.0390.00916.22
8.3.230.0370.01116.59
8.3.220.0380.01216.23
8.3.210.0360.01116.57
8.3.200.0370.01216.23
8.3.190.0370.01116.81
8.3.180.0430.00616.43
8.3.170.0360.00816.43
8.3.160.0450.00716.38
8.3.150.0360.01016.36
8.3.140.0320.00816.62
8.3.130.0270.01216.56
8.3.120.0360.00716.57
8.3.110.0370.00816.34
8.3.100.0430.00916.63
8.3.90.0430.01216.39
8.3.80.0450.01016.78
8.3.70.0440.00716.54
8.3.60.0380.01516.67
8.3.50.0430.01116.49
8.3.40.0250.00717.51
8.3.30.0410.00717.48
8.3.20.0290.00517.46
8.3.10.0160.00317.35
8.3.00.0180.00417.45
8.2.290.0140.00516.39
8.2.280.0150.00416.29
8.2.270.0200.00516.37
8.2.260.0170.00416.25
8.2.250.0150.00516.29
8.2.240.0150.00616.30
8.2.230.0180.00316.41
8.2.220.0150.00716.28
8.2.210.0210.00616.23
8.2.200.0170.00416.27
8.2.190.0140.00616.24
8.2.180.0170.00416.43
8.2.170.0180.00717.64
8.2.160.0220.00817.50
8.2.150.0170.00417.18
8.2.140.0180.00317.43
8.2.130.0200.00617.10
8.2.120.0180.00317.38
8.2.110.0150.00617.30
8.2.100.0190.00217.50
8.2.90.0180.00417.32
8.2.80.0200.00317.25
8.2.70.0160.00517.32
8.2.60.0140.00717.43
8.2.50.0180.00517.11
8.2.40.0160.00517.41
8.2.30.0160.00417.35
8.2.20.0160.00517.18
8.2.10.0170.00917.00
8.2.00.0170.00417.00

preferences:
44.08 ms | 782 KiB | 4 Q