3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = '*/3 * * * * echo yes'; $parts = explode(' ', $line); $schedule = implode(' ', array_slice($parts, 0, 5)); $command = implode(' ', array_slice($parts, 5)); print $schedule.PHP_EOL.$command;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sW7VJ
function name:  (null)
number of ops:  29
compiled vars:  !0 = $line, !1 = $parts, !2 = $schedule, !3 = $command
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%2A%2F3+%2A+%2A+%2A+%2A+echo+yes'
    6     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '+'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    8     6        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '+'
          8        INIT_FCALL                                               'array_slice'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 5
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !2, $8
   10    16        INIT_FCALL                                               'implode'
         17        SEND_VAL                                                 '+'
         18        INIT_FCALL                                               'array_slice'
         19        SEND_VAR                                                 !1
         20        SEND_VAL                                                 5
         21        DO_ICALL                                         $10     
         22        SEND_VAR                                                 $10
         23        DO_ICALL                                         $11     
         24        ASSIGN                                                   !3, $11
   12    25        CONCAT                                           ~13     !2, '%0A'
         26        CONCAT                                           ~14     ~13, !3
         27        ECHO                                                     ~14
   13    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
235.05 ms | 1002 KiB | 16 Q