3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $code = preg_replace_callback_array( array( "/EXECUTE_DATA/m" => function($matches) { return "execute_data"; }, "/ZEND_VM_DISPATCH_TO_HANDLER\(\s*([A-Z_]*)\s*\)/m" => function($matches) use ($spec, $prefix, $op1, $op2) { return "return " . $matches[1] . ($spec?"_SPEC":"") . $prefix[$op1] . $prefix[$op2] . "_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU)"; }, "/ZEND_VM_DISPATCH_TO_HELPER\(\s*([A-Za-z_]*)\s*\)/m" => function($matches) use ($spec, $prefix, $op1, $op2) { return "return " . helper_name($matches[1], $spec, $op1, $op2) . "(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU)"; }, "/ZEND_VM_DISPATCH_TO_HELPER_EX\(\s*([A-Za-z_]*)\s*,\s*[A-Za-z_]*\s*,\s*(.*)\s*\);/m" => function($matches) use ($spec, $prefix, $op1, $op2) { return "return " . helper_name($matches[1], $spec, $op1, $op2) . "(" . $matches[2]. ", ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);"; }, ), $code);
based on evvYQ
Output for 7.0.20, 7.1.5 - 7.2.0
Notice: Undefined variable: spec in /in/V2pHo on line 8 Notice: Undefined variable: prefix in /in/V2pHo on line 8 Notice: Undefined variable: op1 in /in/V2pHo on line 8 Notice: Undefined variable: op2 in /in/V2pHo on line 8 Notice: Undefined variable: spec in /in/V2pHo on line 11 Notice: Undefined variable: prefix in /in/V2pHo on line 11 Notice: Undefined variable: op1 in /in/V2pHo on line 11 Notice: Undefined variable: op2 in /in/V2pHo on line 11 Notice: Undefined variable: spec in /in/V2pHo on line 14 Notice: Undefined variable: prefix in /in/V2pHo on line 14 Notice: Undefined variable: op1 in /in/V2pHo on line 14 Notice: Undefined variable: op2 in /in/V2pHo on line 14 Notice: Undefined variable: code in /in/V2pHo on line 17
Output for 7.0.0 - 7.0.6, 7.1.0
Notice: Undefined variable: spec in /in/V2pHo on line 8 Notice: Undefined variable: prefix in /in/V2pHo on line 8 Notice: Undefined variable: op1 in /in/V2pHo on line 8 Notice: Undefined variable: op2 in /in/V2pHo on line 8 Notice: Undefined variable: spec in /in/V2pHo on line 11 Notice: Undefined variable: prefix in /in/V2pHo on line 11 Notice: Undefined variable: op1 in /in/V2pHo on line 11 Notice: Undefined variable: op2 in /in/V2pHo on line 11 Notice: Undefined variable: spec in /in/V2pHo on line 14 Notice: Undefined variable: prefix in /in/V2pHo on line 14 Notice: Undefined variable: op1 in /in/V2pHo on line 14 Notice: Undefined variable: op2 in /in/V2pHo on line 14 Notice: Undefined variable: code in /in/V2pHo on line 16
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined function preg_replace_callback_array() in /in/V2pHo on line 3
Process exited with code 255.