3v4l.org

run code in 300+ PHP versions simultaneously
<?php $image = new Imagick(); $image->newImage(0, 0, '#dddddd', 'png' ); try { $image->roundCorners(5, 5); echo "fail\n"; } catch (ImagickException $e) { echo "success\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 15
Branch analysis from position: 15
2 jumps found. (Code = 107) Position 1 = 16, Position 2 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9X45B
function name:  (null)
number of ops:  18
compiled vars:  !0 = $image, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'Imagick'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        INIT_METHOD_CALL                                         !0, 'newImage'
          4        SEND_VAL_EX                                              0
          5        SEND_VAL_EX                                              0
          6        SEND_VAL_EX                                              '%23dddddd'
          7        SEND_VAL_EX                                              'png'
          8        DO_FCALL                                      0          
    6     9        INIT_METHOD_CALL                                         !0, 'roundCorners'
         10        SEND_VAL_EX                                              5
         11        SEND_VAL_EX                                              5
         12        DO_FCALL                                      0          
    7    13        ECHO                                                     'fail%0A'
         14      > JMP                                                      ->17
    8    15  E > > CATCH                                       last         'ImagickException'
    9    16    >   ECHO                                                     'success%0A'
   10    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.54 ms | 1394 KiB | 13 Q