3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<div>something</div>'; $is = preg_match('/<div>(.*)<\/div>/',$str,$match); var_dump($is);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7fKSE
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $is, !2 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv%3Esomething%3C%2Fdiv%3E'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%3Cdiv%3E%28.%2A%29%3C%5C%2Fdiv%3E%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.96 ms | 1385 KiB | 17 Q