3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errno, $errorString) { echo "oh no an error happened: " . $errorString; }); $magicNewThing[1] = "hello"; $magicNewThing[2] = "world";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yuobn
function name:  (null)
number of ops:  9
compiled vars:  !0 = $magicNewThing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FYuobn%3A2%240'
    4     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    5     4        ASSIGN_DIM                                               !0, 1
          5        OP_DATA                                                  'hello'
    6     6        ASSIGN_DIM                                               !0, 2
          7        OP_DATA                                                  'world'
          8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FYuobn%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yuobn
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $errno, !1 = $errorString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        CONCAT                                           ~2      'oh+no+an+error+happened%3A+', !1
          3        ECHO                                                     ~2
    4     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FYuobn%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.27 ms | 1395 KiB | 15 Q