3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 1234512312345; echo substr($data, 0, 5); vprintf("(%d)-%d-%d",sscanf($data, "%5d%3d%5d")); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ArGmK
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1234512312345
    4     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 5
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    5     7        INIT_FCALL                                               'vprintf'
          8        SEND_VAL                                                 '%28%25d%29-%25d-%25d'
          9        INIT_FCALL                                               'sscanf'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 '%255d%253d%255d'
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                                 
    7    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.82 ms | 1394 KiB | 19 Q