3v4l.org

run code in 300+ PHP versions simultaneously
<?php $im = new Imagick; $im->readimage($dir . 'afbeelding.jpg'); $im->setImageType(Imagick::IMGTYPE_GRAYSCALE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RDWE5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $im, !1 = $dir
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'Imagick'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_METHOD_CALL                                         !0, 'readimage'
          4        CONCAT                                           ~5      !1, 'afbeelding.jpg'
          5        SEND_VAL_EX                                              ~5
          6        DO_FCALL                                      0          
    5     7        INIT_METHOD_CALL                                         !0, 'setImageType'
          8        FETCH_CLASS_CONSTANT                             ~7      'Imagick', 'IMGTYPE_GRAYSCALE'
          9        SEND_VAL_EX                                              ~7
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.98 ms | 1393 KiB | 13 Q