3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 138; $interval = floor($count / 5); $images = range(1, $count, $interval); $pattern = '{' . implode($images, ',') . '}'; print_r();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h4B5G
function name:  (null)
number of ops:  22
compiled vars:  !0 = $count, !1 = $interval, !2 = $images, !3 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 138
    4     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~5      !0, 5
          3        SEND_VAL                                                 ~5
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    6     6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 1
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    8    12        INIT_FCALL                                               'implode'
         13        SEND_VAR                                                 !2
         14        SEND_VAL                                                 '%2C'
         15        DO_ICALL                                         $10     
         16        CONCAT                                           ~11     '%7B', $10
         17        CONCAT                                           ~12     ~11, '%7D'
         18        ASSIGN                                                   !3, ~12
   10    19        INIT_FCALL                                               'print_r'
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.56 ms | 1395 KiB | 21 Q