3v4l.org

run code in 300+ PHP versions simultaneously
<?php $is_php7 = false; if ( $is_php7 ) { function test_php7_synthax(): bool { return true; } } echo 'Done';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
filename:       /in/ER9XA
function name:  (null)
number of ops:  5
compiled vars:  !0 = $is_php7
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <false>
    3     1      > JMPZ                                                     !0, ->3
    4     2    >   DECLARE_FUNCTION                                         'test_php7_synthax'
    9     3    >   ECHO                                                     'Done'
          4      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ER9XA
function name:  test_php7_synthax
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   <true>
    6     1*       VERIFY_RETURN_TYPE                                       
          2*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.48 ms | 1006 KiB | 13 Q