3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=array( 1 => 'ghj', 2 => 234, 3 => 234.34, 4 => '123', 5 => 'as12345' ); $x2=$x; $x3=$x; array_walk($x2,'intval'); $x = array_map(intval,$x); $x3 = array_map(int,$x3); var_dump($x2,$x,$x3) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/efdvF
function name:  (null)
number of ops:  25
compiled vars:  !0 = $x, !1 = $x2, !2 = $x3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, !0
   11     2        ASSIGN                                                   !2, !0
   13     3        INIT_FCALL                                               'array_walk'
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 'intval'
          6        DO_ICALL                                                 
   14     7        INIT_FCALL                                               'array_map'
          8        FETCH_CONSTANT                                   ~7      'intval'
          9        SEND_VAL                                                 ~7
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !0, $8
   15    13        INIT_FCALL                                               'array_map'
         14        FETCH_CONSTANT                                   ~10     'int'
         15        SEND_VAL                                                 ~10
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !2, $11
   17    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        SEND_VAR                                                 !0
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                                 
   18    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.65 ms | 1395 KiB | 19 Q