3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = TRUE; $f = FALSE; function tut($t, $f) { return $t || $f; } $tut = tut(); if ($tut == TRUE) { print ('true'); } else { print ('false'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9TKuU
function name:  (null)
number of ops:  11
compiled vars:  !0 = $t, !1 = $f, !2 = $tut
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, <false>
    9     2        INIT_FCALL                                               'tut'
          3        DO_FCALL                                      0  $5      
          4        ASSIGN                                                   !2, $5
   10     5        BOOL                                             ~7      !2
          6      > JMPZ                                                     ~7, ->9
   11     7    >   ECHO                                                     'true'
          8      > JMP                                                      ->10
   14     9    >   ECHO                                                     'false'
   15    10    > > RETURN                                                   1

Function tut:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/9TKuU
function name:  tut
number of ops:  6
compiled vars:  !0 = $t, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2      > JMPNZ_EX                                         ~2      !0, ->4
          3    >   BOOL                                             ~2      !1
          4    > > RETURN                                                   ~2
    7     5*     > RETURN                                                   null

End of function tut

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.03 ms | 1397 KiB | 14 Q