3v4l.org

run code in 300+ PHP versions simultaneously
<?php $true = true; $false = false; foo(! empty($false) ? $false : 'foo'); foo(! empty($true) ? $true : 'foo'); foo($false); function foo($foo) { var_dump($foo); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
Branch analysis from position: 17
filename:       /in/SSe7N
function name:  (null)
number of ops:  24
compiled vars:  !0 = $true, !1 = $false
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, <false>
    6     2        INIT_FCALL_BY_NAME                                       'foo'
          3        ISSET_ISEMPTY_CV                                 ~4      !1
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ                                                     ~5, ->8
          6    >   QM_ASSIGN                                        ~6      !1
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~6      'foo'
          9    >   SEND_VAL_EX                                              ~6
         10        DO_FCALL                                      0          
    7    11        INIT_FCALL_BY_NAME                                       'foo'
         12        ISSET_ISEMPTY_CV                                 ~8      !0
         13        BOOL_NOT                                         ~9      ~8
         14      > JMPZ                                                     ~9, ->17
         15    >   QM_ASSIGN                                        ~10     !0
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~10     'foo'
         18    >   SEND_VAL_EX                                              ~10
         19        DO_FCALL                                      0          
    8    20        INIT_FCALL_BY_NAME                                       'foo'
         21        SEND_VAR_EX                                              !1
         22        DO_FCALL                                      0          
   12    23      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SSe7N
function name:  foo
number of ops:  5
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   12     4      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.92 ms | 941 KiB | 16 Q