3v4l.org

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

Class Some\Stuff:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jI4O6
function name:  test
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_NS_FCALL_BY_NAME                                    'Some%5Cvar_dump'
          1        SEND_VAL_EX                                              <true>
          2        DO_FCALL                                      0          
   10     3      > RETURN                                                   null

End of function test

End of class Some\Stuff.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.66 ms | 1395 KiB | 17 Q