3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msgVerse = 'Genesis 1:2-4'; echo ": @ " . strpos($msgVerse, ":") . " - @ " . strpos($msgVerse, "-"), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kEPJC
function name:  (null)
number of ops:  15
compiled vars:  !0 = $msgVerse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Genesis+1%3A2-4'
    4     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%3A'
          4        DO_ICALL                                         $2      
          5        CONCAT                                           ~3      '%3A+%40+', $2
          6        CONCAT                                           ~4      ~3, '+-+%40+'
          7        INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '-'
         10        DO_ICALL                                         $5      
         11        CONCAT                                           ~6      ~4, $5
         12        ECHO                                                     ~6
         13        ECHO                                                     '%0A'
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.3 ms | 1394 KiB | 15 Q