3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('foo', 'bar'); "$a" == 'Array'; (string)$a == 'Array'; $a . '' == 'Array'; is_null(pg_escape_string($a)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HGKi0
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        CAST                                          6  ~2      !0
          2        IS_EQUAL                                         ~3      ~2, 'Array'
          3        FREE                                                     ~3
    5     4        CAST                                          6  ~4      !0
          5        IS_EQUAL                                         ~5      ~4, 'Array'
          6        FREE                                                     ~5
    6     7        CONCAT                                           ~6      !0, ''
          8        IS_EQUAL                                         ~7      ~6, 'Array'
          9        FREE                                                     ~7
    8    10        INIT_FCALL_BY_NAME                                       'pg_escape_string'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $8      
         13        TYPE_CHECK                                    2  ~9      $8
         14        FREE                                                     ~9
    9    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.47 ms | 1393 KiB | 13 Q