3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = function_exists("str_split"); function dix() { global $s; $d = ($s ? str_split("dongs") : strlen("NEIGH")); var_dump($d); } dix();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GaJYm
function name:  (null)
number of ops:  7
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'str_split'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    9     4        INIT_FCALL                                               'dix'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function dix:
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/GaJYm
function name:  dix
number of ops:  13
compiled vars:  !0 = $s, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_GLOBAL                                              !0, 's'
    6     1      > JMPZ                                                     !0, ->7
          2    >   INIT_FCALL                                               'str_split'
          3        SEND_VAL                                                 'dongs'
          4        DO_ICALL                                         $2      
          5        QM_ASSIGN                                        ~3      $2
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~3      5
          8    >   ASSIGN                                                   !1, ~3
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    8    12      > RETURN                                                   null

End of function dix

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.7 ms | 1398 KiB | 20 Q