3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function ($errno, $errstr) { if (strpos($errstr, 'Class undefined')) { var_dump('foo'); return true; } return false; }); Everything::is('awesome'); echo Everything;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XRpen
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXRpen%3A6%240'
   12     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   18     4        INIT_STATIC_METHOD_CALL                                  'Everything', 'is'
          5        SEND_VAL_EX                                              'awesome'
          6        DO_FCALL                                      0          
   20     7        FETCH_CONSTANT                                   ~3      'Everything'
          8        ECHO                                                     ~3
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FXRpen%3A6%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XRpen
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $errno, !1 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 'Class+undefined'
          5        DO_ICALL                                         $2      
          6      > JMPZ                                                     $2, ->11
    8     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAL                                                 'foo'
          9        DO_ICALL                                                 
    9    10      > RETURN                                                   <true>
   11    11    > > RETURN                                                   <false>
   12    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FXRpen%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.19 ms | 1400 KiB | 19 Q