3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "a\na"; $b = "b"; print($a."\n"); print($b."\n"); $array = array($a, $b); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1msXW
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a%0Aa'
    3     1        ASSIGN                                                   !1, 'b'
    4     2        CONCAT                                           ~5      !0, '%0A'
          3        ECHO                                                     ~5
    5     4        CONCAT                                           ~6      !1, '%0A'
          5        ECHO                                                     ~6
    6     6        INIT_ARRAY                                       ~7      !0
          7        ADD_ARRAY_ELEMENT                                ~7      !1
          8        ASSIGN                                                   !2, ~7
    7     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.13 ms | 1394 KiB | 15 Q