3v4l.org

run code in 300+ PHP versions simultaneously
<?php $country = 'US'; try { $response = $nexmo->account->pricing->country($country); } catch (Exception $e) { die($e->getMessage()); } echo 'Price is ' . $response->price();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/TBbjv
function name:  (null)
number of ops:  17
compiled vars:  !0 = $country, !1 = $response, !2 = $nexmo, !3 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'US'
    5     1        FETCH_OBJ_R                                      ~5      !2, 'account'
          2        FETCH_OBJ_R                                      ~6      ~5, 'pricing'
          3        INIT_METHOD_CALL                                         ~6, 'country'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $7      
          6        ASSIGN                                                   !1, $7
          7      > JMP                                                      ->12
    6     8  E > > CATCH                                       last         'Exception'
    7     9    >   INIT_METHOD_CALL                                         !3, 'getMessage'
         10        DO_FCALL                                      0  $9      
         11      > EXIT                                                     $9
    9    12    >   INIT_METHOD_CALL                                         !1, 'price'
         13        DO_FCALL                                      0  $10     
         14        CONCAT                                           ~11     'Price+is+', $10
         15        ECHO                                                     ~11
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.1 ms | 1398 KiB | 13 Q