3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ob_start('assert'); echo '$a=create_function("","phpinf();")===$a()'; ob_get_flush();
based on EjmvE
Output for 7.1.0 - 7.2.0
$a=create_function("","phpinf();")===$a() Warning: Cannot call assert() with string argument dynamically in /in/8PrSB on line 5
Output for 7.0.0 - 7.0.20
$a=create_function("","phpinf();")===$a() Notice: Undefined variable: a in /in/8PrSB(5) : assert code on line 1 Warning: assert(): 9: "$a=create_function("","phpinf();")===$a()" failed in /in/8PrSB on line 5 Fatal error: Uncaught Error: Function name must be a string in /in/8PrSB(5) : assert code:1 Stack trace: #0 [internal function]: unknown() #1 [internal function]: assert('$a=create_funct...', 9) #2 /in/8PrSB(5): ob_get_flush() #3 {main} thrown in /in/8PrSB(5) : assert code on line 1
Process exited with code 255.
Output for 5.4.8 - 5.6.28
Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
Process exited with code 255.
Output for 5.3.19 - 5.4.7