3v4l.org

run code in 500+ PHP versions simultaneously
<?php function e(array $d) { var_dump($d); } $a = array(1, 2, 3); $b = json_encode($a); $c = json_decode($b, true); $d = json_decode($b); e($c); e($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WmUOn
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                       !0, <array>
    8     1        INIT_FCALL                                                   'json_encode'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                             $5      
          4        ASSIGN                                                       !1, $5
    9     5        INIT_FCALL                                                   'json_decode'
          6        SEND_VAR                                                     !1
          7        SEND_VAL                                                     <true>
          8        DO_ICALL                                             $7      
          9        ASSIGN                                                       !2, $7
   10    10        INIT_FCALL                                                   'json_decode'
         11        SEND_VAR                                                     !1
         12        DO_ICALL                                             $9      
         13        ASSIGN                                                       !3, $9
   12    14        INIT_FCALL                                                   'e'
         15        SEND_VAR                                                     !2
         16        DO_FCALL                                          0          
   13    17        INIT_FCALL                                                   'e'
         18        SEND_VAR                                                     !3
         19        DO_FCALL                                          0          
         20      > RETURN                                                       1

Function e:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WmUOn
function name:  e
number of ops:  5
compiled vars:  !0 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
    5     4      > RETURN                                                       null

End of function e

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
133.04 ms | 509 KiB | 14 Q