3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handleError( $errno, $errstr, $errfile, $errline ) { if ( E_RECOVERABLE_ERROR === $errno ) { echo "<h2 class='error'>" . $errstr . "\n"; } } set_error_handler( 'handleError' ); $g = new Generator; $g->whatami = "a highly dubious property"; echo "\n\nThe code rocks on ... \n\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TmZGJ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $g
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'handleError'
          2        DO_ICALL                                                 
    8     3        NEW                                              $2      'Generator'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    9     6        ASSIGN_OBJ                                               !0, 'whatami'
          7        OP_DATA                                                  'a+highly+dubious+property'
   10     8        ECHO                                                     '%0A%0AThe+code+rocks+on+...+%0A%0A'
          9      > RETURN                                                   1

Function handleerror:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/TmZGJ
function name:  handleError
number of ops:  10
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $errfile, !3 = $errline
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
    3     4        IS_IDENTICAL                                             !0, 4096
          5      > JMPZ                                                     ~4, ->9
    4     6    >   CONCAT                                           ~5      '%3Ch2+class%3D%27error%27%3E', !1
          7        CONCAT                                           ~6      ~5, '%0A'
          8        ECHO                                                     ~6
    6     9    > > RETURN                                                   null

End of function handleerror

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.4 ms | 1387 KiB | 15 Q