3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(ini_get('disabled_functions')); class Foo { public function bar() { print "Hallo"; } } $x = array( new Foo(), new Foo(), new Foo() ); var_dump(end($x)); var_dump(end($x)->bar());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1VTrg
function name:  (null)
number of ops:  31
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'ini_get'
          2        SEND_VAL                                                 'disabled_functions'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
   12     6        NEW                                              $3      'Foo'
          7        DO_FCALL                                      0          
          8        INIT_ARRAY                                       ~5      $3
   13     9        NEW                                              $6      'Foo'
         10        DO_FCALL                                      0          
         11        ADD_ARRAY_ELEMENT                                ~5      $6
   14    12        NEW                                              $8      'Foo'
         13        DO_FCALL                                      0          
         14        ADD_ARRAY_ELEMENT                                ~5      $8
   11    15        ASSIGN                                                   !0, ~5
   17    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'end'
         18        SEND_REF                                                 !0
         19        DO_ICALL                                         $11     
         20        SEND_VAR                                                 $11
         21        DO_ICALL                                                 
   18    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'end'
         24        SEND_REF                                                 !0
         25        DO_ICALL                                         $13     
         26        INIT_METHOD_CALL                                         $13, 'bar'
         27        DO_FCALL                                      0  $14     
         28        SEND_VAR                                                 $14
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1VTrg
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'Hallo'
    8     1      > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.72 ms | 1396 KiB | 21 Q