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; array_walk($x2,'intval'); $x = array_map(intval,$x); var_dump($x2,$x,intval('as12345')) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X3Zuu
function name:  (null)
number of ops:  19
compiled vars:  !0 = $x, !1 = $x2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, !0
   12     2        INIT_FCALL                                               'array_walk'
          3        SEND_REF                                                 !1
          4        SEND_VAL                                                 'intval'
          5        DO_ICALL                                                 
   13     6        INIT_FCALL                                               'array_map'
          7        FETCH_CONSTANT                                   ~5      'intval'
          8        SEND_VAL                                                 ~5
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !0, $6
   15    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        SEND_VAR                                                 !0
         15        CAST                                          4  ~8      'as12345'
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                                 
   16    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.27 ms | 1394 KiB | 19 Q