3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo() { var_dump("A"); } $x = 0; $y = $x ? 12 : (unset)foo(); var_dump($y);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
Jump found. Position 1 = 9
Branch analysis from position: 9
Jump found. Position 1 = -2
Branch analysis from position: 5
Jump found. Position 1 = -2
filename:       /in/Fc2r3
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x, !1 = $y
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   4     1        ASSIGN                                                   !0, 0
   5     2      > JMPZ                                                     !0, ->5
         3    >   QM_ASSIGN                                        ~3      12
         4      > JMP                                                      ->9
         5    >   INIT_FCALL                                               'foo'
         6        DO_FCALL                                      0  $4      
         7        CAST                                          1  ~5      $4
         8        QM_ASSIGN                                        ~3      ~5
         9    >   ASSIGN                                                   !1, ~3
   7    10        INIT_FCALL                                               'var_dump'
        11        SEND_VAR                                                 !1
        12        DO_ICALL                                                 
        13      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/Fc2r3
function name:  foo
number of ops:  4
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'var_dump'
         1        SEND_VAL                                                 'A'
         2        DO_ICALL                                                 
         3      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 7.3.0