3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getX(){return 123;} 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 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
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: 12
Branch analysis from position: 14
filename:       /in/KMVEM
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      > JMPZ_EX                                          ~4      $3, ->14
    9     3    >   INIT_FCALL                                               'gety'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0  $5      
          6      > JMPZ_EX                                          ~6      $5, ->12
   10     7    >   INIT_FCALL                                               'getz'
          8        SEND_VAR                                                 !1
          9        DO_FCALL                                      0  $7      
         10        ASSIGN                                           ~8      !2, $7
         11        BOOL                                             ~6      ~8
    9    12    >   ASSIGN                                           ~9      !1, ~6
         13        BOOL                                             ~4      ~9
    8    14    >   ASSIGN                                           ~10     !0, ~4
         15        BOOL                                             ~11     ~10
         16      > JMPZ                                                     ~11, ->24
   12    17    >   CONCAT                                           ~12     'true+', !0
         18        CONCAT                                           ~13     ~12, '+'
         19        CONCAT                                           ~14     ~13, !1
         20        CONCAT                                           ~15     ~14, '+'
         21        CONCAT                                           ~16     ~15, !2
         22        ECHO                                                     ~16
         23      > JMP                                                      ->26
   13    24    >   CONCAT                                           ~17     'false+', !0
         25        ECHO                                                     ~17
         26    > > RETURN                                                   1

Function getx:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KMVEM
function name:  getX
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                   123
          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/KMVEM
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/KMVEM
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:
153.98 ms | 1403 KiB | 16 Q