3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pdo = new PDO('sqlite::memory:'); $pdo->exec("CREATE TABLE foo( field1 INT, field2 INT, )"); var_dump($pdo->query("SHOW TABLES"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZMNPY
function name:  (null)
number of ops:  14
compiled vars:  !0 = $pdo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'PDO'
          1        SEND_VAL_EX                                              'sqlite%3A%3Amemory%3A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    5     4        INIT_METHOD_CALL                                         !0, 'exec'
          5        SEND_VAL_EX                                              'CREATE+TABLE+foo%28%0A+++field1+INT%2C%0A+++field2+INT%2C%0A%29'
          6        DO_FCALL                                      0          
   10     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !0, 'query'
          9        SEND_VAL_EX                                              'SHOW+TABLES'
         10        DO_FCALL                                      0  $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.99 ms | 1394 KiB | 15 Q