3v4l.org

run code in 500+ PHP versions simultaneously
<?php if ( class_exists( 'closure' ) ) { $example = function () { echo 'SAFE'; }; $example(); } else { echo 'NOPE'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qutlJ
function name:  (null)
number of ops:  9
compiled vars:  !0 = $example
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   FRAMELESS_ICALL_1                class_exists        ~1      'closure'
          1      > JMPZ                                                         ~1, ->7
    3     2    >   DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          3        ASSIGN                                                       !0, ~2
    6     4        INIT_DYNAMIC_CALL                                            !0
          5        DO_FCALL                                          0          
    2     6      > JMP                                                          ->8
    8     7    >   ECHO                                                         'NOPE'
    9     8    > > 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/qutlJ
function name:  {closure:/in/qutlJ:3}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                         'SAFE'
    5     1      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.56 ms | 3252 KiB | 13 Q