3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(ceil(13 / 2)); var_dump(ceil(11 / 2)); $data = [ ['name' => 'One'], ['name' => 'Two'], ['name' => 'Three'], ['name' => 'Four'], ['name' => 'Five'], ]; var_dump(array_slice($data, 0, 3)); var_dump(array_slice($data, 3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YTpkq
function name:  (null)
number of ops:  29
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'ceil'
          2        SEND_VAL                                                 6.5
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    3     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'ceil'
          8        SEND_VAL                                                 5.5
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
    6    12        ASSIGN                                                   !0, <array>
   14    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'array_slice'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 3
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
   15    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'array_slice'
         23        SEND_VAR                                                 !0
         24        SEND_VAL                                                 3
         25        DO_ICALL                                         $8      
         26        SEND_VAR                                                 $8
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.23 ms | 1399 KiB | 19 Q