3v4l.org

run code in 300+ PHP versions simultaneously
<?php $element = 'москва'; $str= 'москва'; $q = ereg($element."$", $str); var_dump($q);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZrlWG
function name:  (null)
number of ops:  12
compiled vars:  !0 = $element, !1 = $str, !2 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%D0%BC%D0%BE%D1%81%D0%BA%D0%B2%D0%B0'
    3     1        ASSIGN                                                   !1, '%D0%BC%D0%BE%D1%81%D0%BA%D0%B2%D0%B0'
    4     2        INIT_FCALL_BY_NAME                                       'ereg'
          3        CONCAT                                           ~5      !0, '%24'
          4        SEND_VAL_EX                                              ~5
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !2, $6
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.34 ms | 1394 KiB | 15 Q