3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('\Some\TRUE', FALSE); class Some { public function test() { var_dump(TRUE); } } $a = new Some(); var_dump($a->test());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kTscc
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 '%5CSome%5CTRUE'
          2        SEND_VAL                                                 <false>
          3        DO_ICALL                                                 
   11     4        NEW                                              $2      'Some'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
   12     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !0, 'test'
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class Some:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kTscc
function name:  test
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                                 
    8     3      > RETURN                                                   null

End of function test

End of class Some.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.48 ms | 1395 KiB | 17 Q