3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('zend.assertions', -1); $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/oCU25
function name:  (null)
number of ops:  20
compiled vars:  !0 = $things, !1 = $here
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'zend.assertions'
          2        SEND_VAL                                                 -1
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !0, 'thing'
    5     5        ASSIGN                                                   !1, 'here'
    7     6        ASSERT_CHECK                                             
          7        INIT_FCALL                                               'assert'
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FoCU25%3A7%240'
          9        BIND_LEXICAL                                             ~5, !0
         10        BIND_LEXICAL                                             ~5, !1
   10    11        INIT_DYNAMIC_CALL                                        ~5
         12        DO_FCALL                                      0  $6      
         13        SEND_VAR                                                 $6
         14        NEW                                              $7      'RuntimeException'
         15        SEND_VAL_EX                                              'nope%21'
         16        DO_FCALL                                      0          
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                                 
   11    19      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FoCU25%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oCU25
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $things, !1 = $here
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   BIND_STATIC                                              !0
          1        BIND_STATIC                                              !1
    9     2      > RETURN                                                   <false>
   10     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FoCU25%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.03 ms | 1395 KiB | 17 Q