3v4l.org

run code in 300+ PHP versions simultaneously
<?php $img_str = 'https://unsplash.com/photos/Dd_7xDCuuUo/download'; $image = imagecreatefromstring($img_str); $w = imagesx($image); $h = imagesy($image); echo $w.'px '.$h.'px';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qpA0C
function name:  (null)
number of ops:  18
compiled vars:  !0 = $img_str, !1 = $image, !2 = $w, !3 = $h
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Funsplash.com%2Fphotos%2FDd_7xDCuuUo%2Fdownload'
    5     1        INIT_FCALL_BY_NAME                                       'imagecreatefromstring'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $5      
          4        ASSIGN                                                   !1, $5
    6     5        INIT_FCALL_BY_NAME                                       'imagesx'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !2, $7
    7     9        INIT_FCALL_BY_NAME                                       'imagesy'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0  $9      
         12        ASSIGN                                                   !3, $9
    9    13        CONCAT                                           ~11     !2, 'px+'
         14        CONCAT                                           ~12     ~11, !3
         15        CONCAT                                           ~13     ~12, 'px'
         16        ECHO                                                     ~13
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.64 ms | 938 KiB | 14 Q