3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Things: string { case Such = 'such'; } $string_from_outside_world = 'such'; $outside_world_thing = Things::from($string_from_outside_world); var_dump('such' === Things::Such); var_dump($outside_world_thing === Things::Such);

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.1.60.0060.00317.56

preferences:
143.55 ms | 1394 KiB | 7 Q