3v4l.org

run code in 300+ 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                                  '%00%7Bclosure%7D%2Fin%2Fnioub%3A5%240'
          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
         14        DO_ICALL                                                 
    9    15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fnioub%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nioub
function name:  {closure}
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 function %00%7Bclosure%7D%2Fin%2Fnioub%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.02 ms | 1395 KiB | 15 Q