3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hoge { function save() { return false; } } $x = new Hoge(); $x->save() or throw new \Exception("!!!");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iSq5E
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'Hoge'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_METHOD_CALL                                         !0, 'save'
          4        DO_FCALL                                      0  $4      
          5      > JMPNZ_EX                                         ~5      $4, ->11
          6    >   NEW                                              $6      'Exception'
          7        SEND_VAL_EX                                              '%21%21%21'
          8        DO_FCALL                                      0          
          9      > THROW                                         1          $6
         10*       BOOL                                             ~5      <true>
         11    > > RETURN                                                   1

Class Hoge:
Function save:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iSq5E
function name:  save
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   <false>
    7     1*     > RETURN                                                   null

End of function save

End of class Hoge.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.33 ms | 1393 KiB | 13 Q