3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_thing = "thisismy.image.jpg"; $last_dot = strrpos($my_thing, "."); $ext = substr($my_thing, $last_dot); $string = "MICROSOFT CORP CIK#: 0000789019 (see all company filings)"; $newString = substr($string, 0, strpos($string, " CIK#")); echo $newString;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/89oFD
function name:  (null)
number of ops:  24
compiled vars:  !0 = $my_thing, !1 = $last_dot, !2 = $ext, !3 = $string, !4 = $newString
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'thisismy.image.jpg'
    3     1        INIT_FCALL                                               'strrpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '.'
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    4     6        INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    6    11        ASSIGN                                                   !3, 'MICROSOFT+CORP+CIK%23%3A+0000789019+%28see+all+company+filings%29'
    7    12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !3
         14        SEND_VAL                                                 0
         15        INIT_FCALL                                               'strpos'
         16        SEND_VAR                                                 !3
         17        SEND_VAL                                                 '+CIK%23'
         18        DO_ICALL                                         $11     
         19        SEND_VAR                                                 $11
         20        DO_ICALL                                         $12     
         21        ASSIGN                                                   !4, $12
    8    22        ECHO                                                     !4
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.8 ms | 1399 KiB | 19 Q