3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = "5"; $max = $max ? $max + 1 : 1; var_dump($max); $max = "5"; $max = $max ? (int)$max + 1 : 1; var_dump($max);

preferences:
41 ms | 402 KiB | 5 Q