3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo('start'); function _($x){return ($x)?htmlspecialchars($x):'nbsp;';} echo('end');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S8aQ1
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'start'
    4     1        ECHO                                                     'end'
          2      > RETURN                                                   1

Function _:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S8aQ1
function name:  _
number of ops:  10
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1      > JMPZ                                                     !0, ->7
          2    >   INIT_FCALL                                               'htmlspecialchars'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        QM_ASSIGN                                        ~2      $1
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~2      'nbsp%3B'
          8    > > RETURN                                                   ~2
          9*     > RETURN                                                   null

End of function _

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.7 ms | 1395 KiB | 15 Q