3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ArrayPath { const DEFAULT_SEPARATOR = '.'; static private $_sSeparator; public function getSeparator() { return self::$_sSeparator ?: self::DEFAULT_SEPARATOR; } } var_dump((new ArrayPath)->getSeparator());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j2Dts
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'ArrayPath'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'getSeparator'
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class ArrayPath:
Function getseparator:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j2Dts
function name:  getSeparator
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      '_sSeparator'
          1        JMP_SET                                          ~1      ~0, ->3
          2        QM_ASSIGN                                        ~1      '.'
          3      > RETURN                                                   ~1
   11     4*     > RETURN                                                   null

End of function getseparator

End of class ArrayPath.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.55 ms | 1398 KiB | 15 Q