3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function titi() { return "ok"; } } $toto = new Test(); echo $toto->titi() ?? "ok"; echo $toto->tata() ?? "ok";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bdj4j
function name:  (null)
number of ops:  14
compiled vars:  !0 = $toto
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_METHOD_CALL                                         !0, 'titi'
          4        DO_FCALL                                      0  $4      
          5        COALESCE                                         ~5      $4
          6        QM_ASSIGN                                        ~5      'ok'
          7        ECHO                                                     ~5
   14     8        INIT_METHOD_CALL                                         !0, 'tata'
          9        DO_FCALL                                      0  $6      
         10        COALESCE                                         ~7      $6
         11        QM_ASSIGN                                        ~7      'ok'
         12        ECHO                                                     ~7
         13      > RETURN                                                   1

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

End of function titi

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.84 ms | 1393 KiB | 13 Q