3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Status: int { case Open = 1; case Close = 2; case Invalid = 3; const Values = [ self::Open->value => self::Open, self::Close->value => self::Close, self::Invalid->value => self::Invalid, ]; } class Foo { const BAR = Status::Values; } var_dump(Foo::BAR);

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.140.0040.00420.69
8.3.130.0040.00418.55
8.3.120.0040.00418.91
8.3.110.0040.00422.58
8.3.100.0030.00620.94
8.3.90.0080.00020.94
8.3.50.0050.00320.94
8.2.250.0030.00616.49
8.2.240.0130.01017.32
8.2.230.0060.00320.94
8.2.220.0000.00922.58
8.2.210.0050.00322.58
8.2.60.0100.00817.25
8.2.50.0040.01517.13
8.2.40.0110.00617.25
8.2.30.0040.01317.50
8.2.20.0120.00417.38
8.2.10.0120.00417.38
8.2.00.0120.00617.13
8.1.300.0110.00718.35
8.1.190.0150.00516.99
8.1.180.0080.00816.73
8.1.170.0110.00517.00
8.1.160.0130.00316.88
8.1.150.0170.00016.88
8.1.140.0100.00517.13
8.1.130.0030.01117.28
8.1.120.0120.00617.25
8.1.110.0060.01116.88
8.1.100.0110.00617.00
8.1.90.0120.00416.88
8.1.80.0100.00516.59
8.1.70.0110.00416.63
8.1.60.0050.00816.75
8.1.50.0060.01116.75
8.1.40.0100.00616.52
8.1.30.0140.00216.88
8.1.20.0040.01316.63
8.1.10.0150.00016.88
8.1.00.0030.01016.72
8.0.280.0090.00416.52
8.0.270.0130.00016.52
8.0.260.0110.00416.52
8.0.250.0090.00516.52
8.0.240.0100.00516.52
8.0.230.0090.00416.52
8.0.220.0100.00316.52
8.0.210.0090.00416.52
8.0.200.0130.00016.52
8.0.190.0120.00016.52
8.0.180.0070.00716.52
8.0.170.0050.00816.52
8.0.160.0150.00016.52
8.0.150.0120.00416.52
8.0.140.0050.00916.52
8.0.130.0030.00916.52
8.0.120.0130.00016.52
8.0.110.0050.01016.52
8.0.100.0140.00016.52
8.0.90.0120.00216.52
8.0.80.0050.01016.52
8.0.70.0160.00016.52
8.0.60.0110.00616.52
8.0.50.0000.01316.52
8.0.30.0070.00716.52
8.0.20.0110.00516.52
8.0.10.0090.00316.52

preferences:
15.18 ms | 403 KiB | 5 Q