3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; register_tick_function(function () use (&$a) { $a = 2; }); declare(ticks = 1) { $a === 1 or exit(1); $a === 2 or exit(1); $a === 3 or exit(1); } echo "a = $a\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oHtla
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
    4     1        INIT_FCALL                                               'register_tick_function'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FoHtla%3A4%240'
          3        BIND_LEXICAL                                             ~2, !0
    6     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    8     6        IS_IDENTICAL                                     ~4      !0, 1
          7      > JMPNZ_EX                                         ~4      ~4, ->10
          8    > > EXIT                                                     1
          9*       BOOL                                             ~4      <true>
         10    >   TICKS                                                    
    9    11        IS_IDENTICAL                                     ~5      !0, 2
         12      > JMPNZ_EX                                         ~5      ~5, ->15
         13    > > EXIT                                                     1
         14*       BOOL                                             ~5      <true>
         15    >   TICKS                                                    
   10    16        IS_IDENTICAL                                     ~6      !0, 3
         17      > JMPNZ_EX                                         ~6      ~6, ->20
         18    > > EXIT                                                     1
         19*       BOOL                                             ~6      <true>
         20    >   TICKS                                                    
   12    21        ROPE_INIT                                     3  ~8      'a+%3D+'
         22        ROPE_ADD                                      1  ~8      ~8, !0
         23        ROPE_END                                      2  ~7      ~8, '%0A'
         24        ECHO                                                     ~7
         25      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.73 ms | 941 KiB | 16 Q