3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getX(){return false;} function getY($x){return $x*2;} function getZ($y){return $y*2;} if( true && ($x = getX()) && ($y=getY($x)) && ($z=getZ($y)) ) {echo('true '.$x.' '.$y.' '.$z);} else {echo('false '.$x);}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 10
filename:       /in/eAQm8
function name:  (null)
number of ops:  27
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'getx'
          1        DO_FCALL                                      0  $3      
          2        ASSIGN                                           ~4      !0, $3
          3        BOOL                                             ~5      ~4
          4      > JMPZ_EX                                          ~5      ~5, ->10
    9     5    >   INIT_FCALL                                               'gety'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0  $6      
          8        ASSIGN                                           ~7      !1, $6
          9        BOOL                                             ~5      ~7
         10    > > JMPZ_EX                                          ~5      ~5, ->16
   10    11    >   INIT_FCALL                                               'getz'
         12        SEND_VAR                                                 !1
         13        DO_FCALL                                      0  $8      
         14        ASSIGN                                           ~9      !2, $8
         15        BOOL                                             ~5      ~9
         16    > > JMPZ                                                     ~5, ->24
   12    17    >   CONCAT                                           ~10     'true+', !0
         18        CONCAT                                           ~11     ~10, '+'
         19        CONCAT                                           ~12     ~11, !1
         20        CONCAT                                           ~13     ~12, '+'
         21        CONCAT                                           ~14     ~13, !2
         22        ECHO                                                     ~14
         23      > JMP                                                      ->26
   13    24    >   CONCAT                                           ~15     'false+', !0
         25        ECHO                                                     ~15
         26    > > RETURN                                                   1

Function getx:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eAQm8
function name:  getX
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                   <false>
          1*     > RETURN                                                   null

End of function getx

Function gety:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eAQm8
function name:  getY
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        MUL                                              ~1      !0, 2
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of function gety

Function getz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eAQm8
function name:  getZ
number of ops:  4
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        MUL                                              ~1      !0, 2
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of function getz

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.15 ms | 1403 KiB | 16 Q