3v4l.org

run code in 200+ PHP versions simultaneously
<?php $b = (new \DateTime()->modify("next Monday")->format("Y-m-d H:i:s"))); var_dump($a, $b, $c);
based on lM6AX
Output for 7.1.26 - 7.4.0
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /in/bjqZh on line 4
Process exited with code 255.