3v4l.org

run code in 300+ PHP versions simultaneously
<?php function example1($text) { if (isset($text)) { return $text; } } function example2($text = 'domyślny') { return $text; } var_dump(example1()); var_dump(example2());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FpOCb
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'example1'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
   16     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'example2'
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function example1:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FpOCb
function name:  example1
number of ops:  5
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ISSET_ISEMPTY_CV                                         !0
          2      > JMPZ                                                     ~1, ->4
    6     3    > > RETURN                                                   !0
    8     4    > > RETURN                                                   null

End of function example1

Function example2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FpOCb
function name:  example2
number of ops:  3
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                        !0      'domy%C5%9Blny'
   12     1      > RETURN                                                   !0
   13     2*     > RETURN                                                   null

End of function example2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.8 ms | 1402 KiB | 17 Q