3v4l.org

run code in 300+ PHP versions simultaneously
<?php $calls = 0; register_shutdown_function(function () use (&$calls) { echo $calls; }); func_does_not_exist($calls++);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MkJWV
function name:  (null)
number of ops:  11
compiled vars:  !0 = $calls
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        INIT_FCALL                                               'register_shutdown_function'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMkJWV%3A4%240'
          3        BIND_LEXICAL                                             ~2, !0
    6     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    7     6        INIT_FCALL_BY_NAME                                       'func_does_not_exist'
          7        POST_INC                                         ~4      !0
          8        SEND_VAL_EX                                              ~4
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FMkJWV%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MkJWV
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $calls
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   BIND_STATIC                                              !0
    5     1        ECHO                                                     !0
    6     2      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMkJWV%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.37 ms | 1399 KiB | 15 Q