3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($test) { if ($test == 1) return true; return (bool) false; } if (test(1)) echo "yeah"; else echo "na";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y5O47
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 1
          2        DO_FCALL                                      0  $0      
          3      > JMPZ                                                     $0, ->6
    8     4    >   ECHO                                                     'yeah'
          5      > JMP                                                      ->7
   10     6    >   ECHO                                                     'na'
          7    > > RETURN                                                   1

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.53 ms | 1397 KiB | 14 Q