3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = "Anthony"; var_dump( mb_substr(new stdClass, 0, 7), mb_substr($name, "a", 20), mb_substr($name, 20, "b") );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sH51s
function name:  (null)
number of ops:  24
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Anthony'
    4     1        INIT_FCALL                                               'var_dump'
    5     2        INIT_FCALL                                               'mb_substr'
          3        NEW                                              $2      'stdClass'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $2
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 7
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
    6    10        INIT_FCALL                                               'mb_substr'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'a'
         13        SEND_VAL                                                 20
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
    7    16        INIT_FCALL                                               'mb_substr'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 20
         19        SEND_VAL                                                 'b'
         20        DO_ICALL                                         $6      
         21        SEND_VAR                                                 $6
         22        DO_ICALL                                                 
    8    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.08 ms | 1395 KiB | 17 Q