3v4l.org

run code in 300+ PHP versions simultaneously
<?php $zrob = function () { static $x=0; echo ++$x."\n"; }; $q = new SplQueue(); $q->setIteratorMode(SplDoublyLinkedList::IT_MODE_DELETE); $q->enqueue($zrob); $z = $q->dequeue(); $Z();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kMRCV
function name:  (null)
number of ops:  17
compiled vars:  !0 = $zrob, !1 = $q, !2 = $z, !3 = $Z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FkMRCV%3A3%240'
          1        ASSIGN                                                   !0, ~4
    8     2        NEW                                              $6      'SplQueue'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $6
    9     5        INIT_METHOD_CALL                                         !1, 'setIteratorMode'
          6        SEND_VAL_EX                                              1
          7        DO_FCALL                                      0          
   10     8        INIT_METHOD_CALL                                         !1, 'enqueue'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0          
   11    11        INIT_METHOD_CALL                                         !1, 'dequeue'
         12        DO_FCALL                                      0  $11     
         13        ASSIGN                                                   !2, $11
   12    14        INIT_DYNAMIC_CALL                                        !3
         15        DO_FCALL                                      0          
         16      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FkMRCV%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.57 ms | 1394 KiB | 13 Q