3v4l.org

run code in 300+ PHP versions simultaneously
<?php class time{ public function echoTime() { echo time(); } } class A { public static function test() { $time = new tate(); $time->echoTime(); } } A::test(); usleep(2000); A::test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fKmug
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 'test'
          1        DO_FCALL                                      0          
   15     2        INIT_FCALL                                               'usleep'
          3        SEND_VAL                                                 2000
          4        DO_ICALL                                                 
   16     5        INIT_STATIC_METHOD_CALL                                  'A', 'test'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Class time:
Function echotime:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fKmug
function name:  echoTime
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $0      
          2        ECHO                                                     $0
    5     3      > RETURN                                                   null

End of function echotime

End of class time.

Class A:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fKmug
function name:  test
number of ops:  6
compiled vars:  !0 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'tate'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_METHOD_CALL                                         !0, 'echoTime'
          4        DO_FCALL                                      0          
   11     5      > RETURN                                                   null

End of function test

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.72 ms | 1395 KiB | 17 Q