3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Positive numbers: echo substr("ela4-db10.prod",5)."<br>"; echo substr("Hello world",1)."<br>"; echo substr("Hello world",3)."<br>"; echo substr("Hello world",7)."<br>"; echo "<br>"; // Negative numbers: echo substr("Hello world",-1)."<br>"; echo substr("Hello world",-10)."<br>"; echo substr("Hello world",-8)."<br>"; echo substr("Hello world",-4)."<br>"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Asui2
function name:  (null)
number of ops:  50
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'substr'
          1        SEND_VAL                                                 'ela4-db10.prod'
          2        SEND_VAL                                                 5
          3        DO_ICALL                                         $0      
          4        CONCAT                                           ~1      $0, '%3Cbr%3E'
          5        ECHO                                                     ~1
    4     6        INIT_FCALL                                               'substr'
          7        SEND_VAL                                                 'Hello+world'
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $2      
         10        CONCAT                                           ~3      $2, '%3Cbr%3E'
         11        ECHO                                                     ~3
    5    12        INIT_FCALL                                               'substr'
         13        SEND_VAL                                                 'Hello+world'
         14        SEND_VAL                                                 3
         15        DO_ICALL                                         $4      
         16        CONCAT                                           ~5      $4, '%3Cbr%3E'
         17        ECHO                                                     ~5
    6    18        INIT_FCALL                                               'substr'
         19        SEND_VAL                                                 'Hello+world'
         20        SEND_VAL                                                 7
         21        DO_ICALL                                         $6      
         22        CONCAT                                           ~7      $6, '%3Cbr%3E'
         23        ECHO                                                     ~7
    7    24        ECHO                                                     '%3Cbr%3E'
   10    25        INIT_FCALL                                               'substr'
         26        SEND_VAL                                                 'Hello+world'
         27        SEND_VAL                                                 -1
         28        DO_ICALL                                         $8      
         29        CONCAT                                           ~9      $8, '%3Cbr%3E'
         30        ECHO                                                     ~9
   11    31        INIT_FCALL                                               'substr'
         32        SEND_VAL                                                 'Hello+world'
         33        SEND_VAL                                                 -10
         34        DO_ICALL                                         $10     
         35        CONCAT                                           ~11     $10, '%3Cbr%3E'
         36        ECHO                                                     ~11
   12    37        INIT_FCALL                                               'substr'
         38        SEND_VAL                                                 'Hello+world'
         39        SEND_VAL                                                 -8
         40        DO_ICALL                                         $12     
         41        CONCAT                                           ~13     $12, '%3Cbr%3E'
         42        ECHO                                                     ~13
   13    43        INIT_FCALL                                               'substr'
         44        SEND_VAL                                                 'Hello+world'
         45        SEND_VAL                                                 -4
         46        DO_ICALL                                         $14     
         47        CONCAT                                           ~15     $14, '%3Cbr%3E'
         48        ECHO                                                     ~15
   14    49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.54 ms | 1400 KiB | 15 Q