3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isAdult($age) { if ($age >= 20) { return true; } else { return false; } } var_dump(isAdult(21));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rpj33
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'isadult'
          2        SEND_VAL                                                 21
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function isadult:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rpj33
function name:  isAdult
number of ops:  7
compiled vars:  !0 = $age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        IS_SMALLER_OR_EQUAL                                      20, !0
          2      > JMPZ                                                     ~1, ->5
    6     3    > > RETURN                                                   <true>
          4*       JMP                                                      ->6
    8     5    > > RETURN                                                   <false>
   10     6*     > RETURN                                                   null

End of function isadult

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.38 ms | 1397 KiB | 16 Q