3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s0 = 'SmartNumbers|Decimal Separator e.g. 1.14|.'; //$sp = strpos($s0, '|', -1); $string = "What"; $sp = strpos($string, "W", -1); echo $sp;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4um1g
function name:  (null)
number of ops:  10
compiled vars:  !0 = $s0, !1 = $string, !2 = $sp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'SmartNumbers%7CDecimal+Separator+e.g.+1.14%7C.'
    7     1        ASSIGN                                                   !1, 'What'
    8     2        INIT_FCALL                                               'strpos'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 'W'
          5        SEND_VAL                                                 -1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
   10     8        ECHO                                                     !2
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.47 ms | 1393 KiB | 15 Q