3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function getDay() { return 1; } } $test = new Test(); var_dump($test->{'get' . ucfirst('day')});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WHdHu
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'ucfirst'
          5        SEND_VAL                                                 'day'
          6        DO_ICALL                                         $4      
          7        CONCAT                                           ~5      'get', $4
          8        FETCH_OBJ_R                                      ~6      !0, ~5
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

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

End of function getday

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.63 ms | 1386 KiB | 17 Q