3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 1,2,3); $array2 = array( 3,4,5); $_checked = isset( $array ) ? array_map( 'intval', (array)$array ) : array_map( 'intval', (array)$array2 ); print_r($_checked);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3JpRm
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $array2, !2 = $_checked
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ISSET_ISEMPTY_CV                                         !0
          3      > JMPZ                                                     ~5, ->11
          4    >   INIT_FCALL                                               'array_map'
          5        SEND_VAL                                                 'intval'
          6        CAST                                          7  ~6      !0
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                         $7      
          9        QM_ASSIGN                                        ~8      $7
         10      > JMP                                                      ->17
         11    >   INIT_FCALL                                               'array_map'
         12        SEND_VAL                                                 'intval'
         13        CAST                                          7  ~9      !1
         14        SEND_VAL                                                 ~9
         15        DO_ICALL                                         $10     
         16        QM_ASSIGN                                        ~8      $10
         17    >   ASSIGN                                                   !2, ~8
    7    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.71 ms | 1399 KiB | 17 Q