3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum TestEnum: string { case One = 'one'; case Two = 'two'; case Three = 'three'; } var_dump(TestEnum::from('two')); var_dump(TestEnum::tryFrom('four'));

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.0050.00320.54
8.4.110.0090.01022.42
8.4.100.0100.01017.50
8.4.90.0040.00418.65
8.4.80.0060.00417.87
8.4.70.0070.00217.84
8.4.60.0060.00618.91
8.4.50.0110.00917.69
8.4.40.0100.01017.42
8.4.30.0170.00318.72
8.4.20.0100.01017.71
8.4.10.0070.01419.18
8.3.250.0100.00918.80
8.3.240.0150.00416.56
8.3.230.0130.00616.50
8.3.220.0120.00517.05
8.3.210.0040.00416.55
8.3.200.0060.00316.74
8.3.190.0050.00316.73
8.3.180.0030.00616.46
8.3.170.0070.01118.72
8.3.160.0160.00316.60
8.3.150.0120.00317.02
8.3.140.0000.00916.93
8.3.130.0050.00318.40
8.3.120.0030.00620.71
8.3.110.0080.00022.58
8.3.100.0070.00322.58
8.3.90.0110.00422.58
8.3.50.0080.00022.58
8.3.30.0130.01022.96
8.2.290.0140.00520.50
8.2.280.0050.00418.19
8.2.270.0130.00618.70
8.2.260.0120.00316.85
8.2.250.0050.00316.59
8.2.240.0150.00317.34
8.2.230.0050.00522.58
8.2.220.0060.00322.58
8.2.210.0040.00422.58
8.1.330.0120.00721.71
8.1.320.0120.00719.98
8.1.310.0000.00716.53
8.1.300.0060.00317.77

preferences:
40.63 ms | 403 KiB | 5 Q