3v4l.org

run code in 500+ PHP versions simultaneously
<?php $things = "thing"; $here = "here"; assert((function() use($things, $here) { /* statements here */ return false; })(), new RuntimeException("nope!")); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nioub
function name:  (null)
number of ops:  16
compiled vars:  !0 = $things, !1 = $here
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'thing'
    3     1        ASSIGN                                                       !1, 'here'
    5     2        ASSERT_CHECK                                                 
          3        INIT_FCALL                                                   'assert'
          4        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          5        BIND_LEXICAL                                                 ~4, !0
          6        BIND_LEXICAL                                                 ~4, !1
    8     7        INIT_DYNAMIC_CALL                                            ~4
          8        DO_FCALL                                          0  $5      
          9        SEND_VAR                                                     $5
         10        NEW                                                  $6      'RuntimeException'
         11        SEND_VAL_EX                                                  'nope%21'
         12        DO_FCALL                                          0          
         13        SEND_VAR                                                     $6
    5    14        DO_ICALL                                                     
    9    15      > 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/nioub
function name:  {closure:/in/nioub:5}
number of ops:  4
compiled vars:  !0 = $things, !1 = $here
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   BIND_STATIC                                                  !0
          1        BIND_STATIC                                                  !1
    7     2      > RETURN                                                       <false>
    8     3*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
135.04 ms | 2041 KiB | 9 Q