3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = '2013-05-01'; $d2 = '2013'; $d2 = '2014'; var_dump(strpos($d1, $d2) === 0, strpos($d1, $d3) === 0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e6chP
function name:  (null)
number of ops:  18
compiled vars:  !0 = $d1, !1 = $d2, !2 = $d3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2013-05-01'
    4     1        ASSIGN                                                   !1, '2013'
    5     2        ASSIGN                                                   !1, '2014'
    7     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'strpos'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        IS_IDENTICAL                                     ~7      $6, 0
          9        SEND_VAL                                                 ~7
         10        INIT_FCALL                                               'strpos'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $8      
         14        IS_IDENTICAL                                     ~9      $8, 0
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.09 ms | 1394 KiB | 17 Q