3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key='123456'; // Create a Clockwork object using your API key $clockwork = new Clockwork( $key ); // Setup and send a message $message = array( "to" => "441234567890", "message" => "Hello World" ); $result = $clockwork->send( $message ); // Check if the send was successful if( $result["success"] ) { echo "Message sent - ID: " . $result["id"]; } else { echo "Message failed - Error: " . $result["error_message"]; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UnonR
function name:  (null)
number of ops:  20
compiled vars:  !0 = $key, !1 = $clockwork, !2 = $message, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '123456'
    4     1        NEW                                              $5      'Clockwork'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $5
    7     5        ASSIGN                                                   !2, <array>
    8     6        INIT_METHOD_CALL                                         !1, 'send'
          7        SEND_VAR_EX                                              !2
          8        DO_FCALL                                      0  $9      
          9        ASSIGN                                                   !3, $9
   11    10        FETCH_DIM_R                                      ~11     !3, 'success'
         11      > JMPZ                                                     ~11, ->16
   12    12    >   FETCH_DIM_R                                      ~12     !3, 'id'
         13        CONCAT                                           ~13     'Message+sent+-+ID%3A+', ~12
         14        ECHO                                                     ~13
         15      > JMP                                                      ->19
   14    16    >   FETCH_DIM_R                                      ~14     !3, 'error_message'
         17        CONCAT                                           ~15     'Message+failed+-+Error%3A+', ~14
         18        ECHO                                                     ~15
   16    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.05 ms | 1385 KiB | 13 Q