3v4l.org

run code in 300+ PHP versions simultaneously
<?php class header { const JQUERY = "<script src=\"//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js\"></script>"; public static function default_headers() { return implode("\n", array(self::JQUERY)); } public static function module($main) { return sprintf("<script data-main=\"%s\" src=\"scripts/require.js\"></script>", $main); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fRZSS
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   1

Class header:
Function default_headers:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fRZSS
function name:  default_headers
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'implode'
          1        SEND_VAL                                                 '%0A'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $0      
          4      > RETURN                                                   $0
    7     5*     > RETURN                                                   null

End of function default_headers

Function module:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fRZSS
function name:  module
number of ops:  7
compiled vars:  !0 = $main
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%3Cscript+data-main%3D%22%25s%22+src%3D%22scripts%2Frequire.js%22%3E%3C%2Fscript%3E'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
   11     6*     > RETURN                                                   null

End of function module

End of class header.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.58 ms | 1395 KiB | 17 Q