3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "12-04-2013"; $s1 = strtok($str,"-"); $s2 = strtok($str,"-"); $s2 = strtok($str,"-"); echo ("$s1 <br/>$s2<br/>$s3"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m44Gt
function name:  (null)
number of ops:  23
compiled vars:  !0 = $str, !1 = $s1, !2 = $s2, !3 = $s3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '12-04-2013'
    4     1        INIT_FCALL                                               'strtok'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '-'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        INIT_FCALL                                               'strtok'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '-'
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
    6    11        INIT_FCALL                                               'strtok'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 '-'
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !2, $9
    8    16        ROPE_INIT                                     5  ~12     !1
         17        ROPE_ADD                                      1  ~12     ~12, '+%3Cbr%2F%3E'
         18        ROPE_ADD                                      2  ~12     ~12, !2
         19        ROPE_ADD                                      3  ~12     ~12, '%3Cbr%2F%3E'
         20        ROPE_END                                      4  ~11     ~12, !3
         21        ECHO                                                     ~11
   10    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.96 ms | 1395 KiB | 15 Q