3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '/<input.+>(.*)</m'; $str = ' <input type="radio" name="562" value="1" onclick> turtle.show() <br> <input type="radio" name="562" value="2"> turtle.showLocation() <br> <input type="radio" name="562" value="3"> turtle.showDirection() <br> <input type="radio" name="562" value="4"> turtle.showturtle() <br><input type="hidden" id="ans562" value="4">'; preg_match_all($re, $str, $matches); // Print the entire match result var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YY20a
function name:  (null)
number of ops:  11
compiled vars:  !0 = $re, !1 = $str, !2 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2F%3Cinput.%2B%3E%28.%2A%29%3C%2Fm'
    4     1        ASSIGN                                                       !1, '%09%3Cinput+type%3D%22radio%22+name%3D%22562%22+value%3D%221%22+onclick%3E+turtle.show%28%29+%3Cbr%3E%0A%3Cinput+type%3D%22radio%22+name%3D%22562%22+value%3D%222%22%3E+turtle.showLocation%28%29+%3Cbr%3E%0A%3Cinput+type%3D%22radio%22+name%3D%22562%22+value%3D%223%22%3E+turtle.showDirection%28%29++%3Cbr%3E%0A%3Cinput+type%3D%22radio%22+name%3D%22562%22+value%3D%224%22%3E+turtle.showturtle%28%29+%3Cbr%3E%3Cinput+type%3D%22hidden%22+id%3D%22ans562%22+value%3D%224%22%3E'
    9     2        INIT_FCALL                                                   'preg_match_all'
          3        SEND_VAR                                                     !0
          4        SEND_VAR                                                     !1
          5        SEND_REF                                                     !2
          6        DO_ICALL                                                     
   12     7        INIT_FCALL                                                   'var_dump'
          8        SEND_VAR                                                     !2
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.23 ms | 2202 KiB | 15 Q