3v4l.org

run code in 300+ PHP versions simultaneously
<?php $db = new PDO('sqlite::memory:'); $db->exec(' CREATE TABLE messages ( id INTEGER PRIMARY KEY, message TEXT, updated_at DATETIME ) '); $insert = 'INSERT INTO messages (message, updated_at) VALUES (:message, :updated_at)'; $stmt = $db->prepare($insert); $stmt->bindParam(':message', 'hello'); $stmt->bindParam(':updated_at', '2013-03-03 03:33:03'); $stmt->execute();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QFdQY
function name:  (null)
number of ops:  23
compiled vars:  !0 = $db, !1 = $insert, !2 = $stmt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'PDO'
          1        SEND_VAL_EX                                              'sqlite%3A%3Amemory%3A'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        INIT_METHOD_CALL                                         !0, 'exec'
          5        SEND_VAL_EX                                              '%0A++CREATE+TABLE+messages+%28%0A++++id+INTEGER+PRIMARY+KEY%2C%0A++++message+TEXT%2C%0A++++updated_at+DATETIME%0A++%29%0A'
          6        DO_FCALL                                      0          
   12     7        ASSIGN                                                   !1, 'INSERT+INTO+messages+%28message%2C+updated_at%29+VALUES+%28%3Amessage%2C+%3Aupdated_at%29'
   13     8        INIT_METHOD_CALL                                         !0, 'prepare'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !2, $8
   14    12        INIT_METHOD_CALL                                         !2, 'bindParam'
         13        SEND_VAL_EX                                              '%3Amessage'
         14        SEND_VAL_EX                                              'hello'
         15        DO_FCALL                                      0          
   15    16        INIT_METHOD_CALL                                         !2, 'bindParam'
         17        SEND_VAL_EX                                              '%3Aupdated_at'
         18        SEND_VAL_EX                                              '2013-03-03+03%3A33%3A03'
         19        DO_FCALL                                      0          
   16    20        INIT_METHOD_CALL                                         !2, 'execute'
         21        DO_FCALL                                      0          
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.88 ms | 1394 KiB | 13 Q