3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_lines = "fasdf sadf asd $fdsf; asd $23; fsdafsd; $fdssfs"; preg_match_all("/asd (\$[a-z0-9]+);/", $input_lines, $output_array); print_r($output_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5HAcU
function name:  (null)
number of ops:  14
compiled vars:  !0 = $input_lines, !1 = $fdsf, !2 = $fdssfs, !3 = $output_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ROPE_INIT                                     4  ~5      'fasdf+sadf%0Aasd+'
    3     1        ROPE_ADD                                      1  ~5      ~5, !1
          2        ROPE_ADD                                      2  ~5      ~5, '%3B%0Aasd+%2423%3B%0Afsdafsd%3B%0A'
    6     3        ROPE_END                                      3  ~4      ~5, !2
    2     4        ASSIGN                                                   !0, ~4
    7     5        INIT_FCALL                                               'preg_match_all'
          6        SEND_VAL                                                 '%2Fasd+%28%24%5Ba-z0-9%5D%2B%29%3B%2F'
          7        SEND_VAR                                                 !0
          8        SEND_REF                                                 !3
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.87 ms | 1398 KiB | 17 Q