3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { function yup(){ } } $test = function(callable $callable){ echo "woo"; }; $test('is_int'); $test(Test::class."::yup"); $test([Test::class, 'yup']);
Output for 7.0.0 - 7.2.6
woo Deprecated: Non-static method Test::yup() should not be called statically in /in/s148s on line 9 woo Deprecated: Non-static method Test::yup() should not be called statically in /in/s148s on line 9 woo
Output for hhvm-3.18.4 - 3.21.0
woowoowoo
Output for 5.6.0 - 5.6.30
woo Strict Standards: Non-static method Test::yup() should not be called statically in /in/s148s on line 9 woo Strict Standards: Non-static method Test::yup() should not be called statically in /in/s148s on line 9 woo