3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = "the national"; $string2 = "nationals"; var_dump(preg_match("/^the ?/", $string1)); var_sump(preg_match("/^the ?/", $string2)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J3Bv0
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string1, !1 = $string2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'the+national'
    4     1        ASSIGN                                                   !1, 'nationals'
    6     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'preg_match'
          4        SEND_VAL                                                 '%2F%5Ethe+%3F%2F'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    7     9        INIT_FCALL_BY_NAME                                       'var_sump'
         10        INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2F%5Ethe+%3F%2F'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $6      
         14        SEND_VAR_NO_REF_EX                                       $6
         15        DO_FCALL                                      0          
    8    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.39 ms | 1394 KiB | 17 Q