3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Video { public static function create(array $args = null) { return 'It Works!'; } } $video = new Video; print $video::create(); // Albo: print Video::create();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LlbkY7
function name:  (null)
number of ops:  11
compiled vars:  !0 = $video
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'Video'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        FETCH_CLASS                                   0  $4      !0
          4        INIT_STATIC_METHOD_CALL                                  $4, 'create'
          5        DO_FCALL                                      0  $5      
          6        ECHO                                                     $5
   16     7        INIT_STATIC_METHOD_CALL                                  'Video', 'create'
          8        DO_FCALL                                      0  $6      
          9        ECHO                                                     $6
         10      > RETURN                                                   1

Class Video:
Function create:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LlbkY7
function name:  create
number of ops:  3
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                        !0      null
    7     1      > RETURN                                                   'It+Works%21'
    8     2*     > RETURN                                                   null

End of function create

End of class Video.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.38 ms | 1397 KiB | 13 Q