3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = '1'; var_dump($foo); var_dump(addslashes($foo)); var_dump("'" . addslashes($foo) . "'");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b8HqK
function name:  (null)
number of ops:  19
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1'
    3     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'addslashes'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'addslashes'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        CONCAT                                           ~6      '%27', $5
         15        CONCAT                                           ~7      ~6, '%27'
         16        SEND_VAL                                                 ~7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.05 ms | 1386 KiB | 17 Q