3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function getEntityManager() { return new Date(); } } $em = $this->getEntityManager(); for ($i = 0; $i < 4; $i++) { $em->format('Y-m-d'); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/u2Gqm
function name:  (null)
number of ops:  13
compiled vars:  !0 = $em, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_THIS                                       $2      
          1        INIT_METHOD_CALL                                         $2, 'getEntityManager'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !0, $3
   12     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->10
   13     6    >   INIT_METHOD_CALL                                         !0, 'format'
          7        SEND_VAL_EX                                              'Y-m-d'
          8        DO_FCALL                                      0          
   12     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 4
         11      > JMPNZ                                                    ~8, ->6
   14    12    > > RETURN                                                   1

Class MyClass:
Function getentitymanager:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u2Gqm
function name:  getEntityManager
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $0      'Date'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   $0
    8     3*     > RETURN                                                   null

End of function getentitymanager

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.89 ms | 1398 KiB | 13 Q