3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m = 3; $n = 0; function l() { $m = 0; $m++; global $n; return array($n,$m); } echo implode((L(l())),',');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/26DXC
function name:  (null)
number of ops:  13
compiled vars:  !0 = $m, !1 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 3
    3     1        ASSIGN                                                   !1, 0
   10     2        INIT_FCALL                                               'implode'
          3        INIT_FCALL                                               'l'
          4        INIT_FCALL                                               'l'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR                                                 $5
          9        SEND_VAL                                                 '%2C'
         10        DO_ICALL                                         $6      
         11        ECHO                                                     $6
         12      > RETURN                                                   1

Function l:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/26DXC
function name:  l
number of ops:  7
compiled vars:  !0 = $m, !1 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 0
    6     1        PRE_INC                                                  !0
    7     2        BIND_GLOBAL                                              !1, 'n'
    8     3        INIT_ARRAY                                       ~4      !1
          4        ADD_ARRAY_ELEMENT                                ~4      !0
          5      > RETURN                                                   ~4
    9     6*     > RETURN                                                   null

End of function l

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.87 ms | 1397 KiB | 17 Q