3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A='one\\"two'; echo strlen($A); var_dump($A); $Input= 'zero:("),one:(\\"),two:(\\\\"),three:(\\\\\\"),four:(\\\\\\\\"),five:(\\\\\\\\\\"),six:(\\\\\\\\\\\\")'; preg_match_all( "/[^\\]*((\\{2})*)(['\"])(.)*\1/U", $Input, $Matches); var_dump($Matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jmkg5
function name:  (null)
number of ops:  16
compiled vars:  !0 = $A, !1 = $Input, !2 = $Matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'one%5C%22two'
          1        STRLEN                                           ~4      !0
          2        ECHO                                                     ~4
          3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    5     6        ASSIGN                                                   !1, 'zero%3A%28%22%29%2Cone%3A%28%5C%22%29%2Ctwo%3A%28%5C%5C%22%29%2Cthree%3A%28%5C%5C%5C%22%29%2Cfour%3A%28%5C%5C%5C%5C%22%29%2Cfive%3A%28%5C%5C%5C%5C%5C%22%29%2Csix%3A%28%5C%5C%5C%5C%5C%5C%22%29'
    7     7        INIT_FCALL                                               'preg_match_all'
          8        SEND_VAL                                                 '%2F%5B%5E%5C%5D%2A%28%28%5C%7B2%7D%29%2A%29%28%5B%27%22%5D%29%28.%29%2A%01%2FU'
          9        SEND_VAR                                                 !1
         10        SEND_REF                                                 !2
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.8 ms | 1394 KiB | 17 Q