3v4l.org

run code in 500+ PHP versions simultaneously
<?php function test($a) { match ($a) {}; } test("foo\0bar\nbaz");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/61dhi
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'test'
          1        SEND_VAL                                                     'foo%00bar%0Abaz'
          2        DO_FCALL                                          0          
          3      > RETURN                                                       1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
1 jumps found. (Code = 197) Position 1 = -2
filename:       /in/61dhi
function name:  test
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1      > JMP                                                          ->2
          2    > > MATCH_ERROR                                                  !0
    5     3*     > RETURN                                                       null

End of function test

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.11 ms | 478 KiB | 8 Q