3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FileLoader { public function __construct(); public function load($file); } class YamlLoader implements FileLoader { public function load($file) { return yaml_parse_file($file); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ErPuh
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'yamlloader'
   14     1      > RETURN                                                   1

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

End of function __construct

Function load:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ErPuh
function name:  load
number of ops:  2
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function load

End of class FileLoader.

Class YamlLoader:
Function load:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ErPuh
function name:  load
number of ops:  6
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        INIT_FCALL_BY_NAME                                       'yaml_parse_file'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
   13     5*     > RETURN                                                   null

End of function load

End of class YamlLoader.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.94 ms | 1398 KiB | 13 Q