3v4l.org

run code in 300+ PHP versions simultaneously
<?php function do_html_heading($level = 1, $heading) { // print heading echo "<h" . ((int)$level ? : 1) . ">" . $heading . "</h" . $heading; //var_dump($level); } do_html_heading("jkjsdkds", "mon titre");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GqXuQ
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'do_html_heading'
          1        SEND_VAL                                                 'jkjsdkds'
          2        SEND_VAL                                                 'mon+titre'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function do_html_heading:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GqXuQ
function name:  do_html_heading
number of ops:  12
compiled vars:  !0 = $level, !1 = $heading
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_INIT                                        !0      1
          1        RECV                                             !1      
    4     2        CAST                                          4  ~2      !0
          3        JMP_SET                                          ~3      ~2, ->5
          4        QM_ASSIGN                                        ~3      1
          5        CONCAT                                           ~4      '%3Ch', ~3
          6        CONCAT                                           ~5      ~4, '%3E'
          7        CONCAT                                           ~6      ~5, !1
          8        CONCAT                                           ~7      ~6, '%3C%2Fh'
          9        CONCAT                                           ~8      ~7, !1
         10        ECHO                                                     ~8
    6    11      > RETURN                                                   null

End of function do_html_heading

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.16 ms | 1397 KiB | 14 Q