3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = '[1,2]'; $c = 2; $v = json_decode($d); $b = json_decode($c); var_dump($v); var_dump($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aGcGG
function name:  (null)
number of ops:  17
compiled vars:  !0 = $d, !1 = $c, !2 = $v, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B1%2C2%5D'
    5     1        ASSIGN                                                   !1, 2
    7     2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !2, $6
    9     6        INIT_FCALL                                               'json_decode'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !3, $8
   11    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   12    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.19 ms | 1394 KiB | 17 Q