3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('justaword83'); $prefix = "justaword"; $length = strlen( $prefix); foreach( $array as $x) { echo "The number is: " . substr( $x, $length); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/atQkT
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $prefix, !2 = $length, !3 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'justaword'
    5     2        STRLEN                                           ~6      !1
          3        ASSIGN                                                   !2, ~6
    7     4      > FE_RESET_R                                       $8      !0, ->13
          5    > > FE_FETCH_R                                               $8, !3, ->13
    8     6    >   INIT_FCALL                                               'substr'
          7        SEND_VAR                                                 !3
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $9      
         10        CONCAT                                           ~10     'The+number+is%3A+', $9
         11        ECHO                                                     ~10
    7    12      > JMP                                                      ->5
         13    >   FE_FREE                                                  $8
    9    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.55 ms | 1394 KiB | 15 Q