3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = TRUE; $f = FALSE; function tut($t, $f) { return $t || $f; } $tut = tut(); if ($tut == TRUE) { print ('true'); } else { print ('false'); }
based on EpMBP
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function tut(), 0 passed in /in/9TKuU on line 9 and exactly 2 expected in /in/9TKuU:5 Stack trace: #0 /in/9TKuU(9): tut() #1 {main} thrown in /in/9TKuU on line 5
Process exited with code 255.
Output for 5.3.18 - 7.0.20
Warning: Missing argument 1 for tut(), called in /in/9TKuU on line 9 and defined in /in/9TKuU on line 5 Warning: Missing argument 2 for tut(), called in /in/9TKuU on line 9 and defined in /in/9TKuU on line 5 Notice: Undefined variable: t in /in/9TKuU on line 6 Notice: Undefined variable: f in /in/9TKuU on line 6 false