3v4l.org

run code in 500+ PHP versions simultaneously
<?php $ht = array(1 => 1, 2 => 2, 3 => 3, 4 => 4); $range = range(1,10); $diff = array_diff($range, $ht); Echo str_repeat("x", count($ht)) . Implode("", $diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZCU15
function name:  (null)
number of ops:  20
compiled vars:  !0 = $ht, !1 = $range, !2 = $diff
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        INIT_FCALL                                                   'range'
          2        SEND_VAL                                                     1
          3        SEND_VAL                                                     10
          4        DO_ICALL                                             $4      
          5        ASSIGN                                                       !1, $4
    6     6        INIT_FCALL                                                   'array_diff'
          7        SEND_VAR                                                     !1
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $6      
         10        ASSIGN                                                       !2, $6
    8    11        INIT_FCALL                                                   'str_repeat'
         12        SEND_VAL                                                     'x'
         13        COUNT                                                ~8      !0
         14        SEND_VAL                                                     ~8
         15        DO_ICALL                                             $9      
         16        FRAMELESS_ICALL_2                implode             ~10     '', !2
         17        CONCAT                                               ~11     $9, ~10
         18        ECHO                                                         ~11
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.43 ms | 2021 KiB | 16 Q