3v4l.org

run code in 300+ PHP versions simultaneously
<?php $w = 2000; $h = 5000; $height = 1500; $width = ($w/$h)*$height; echo $width.'x'.$height; $tab = array(array('test' =>'toto','a'=>'plop'), array('test' =>'toto2','a'=>'plop2')); echo implode('<br/>',$tab);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GAMPh
function name:  (null)
number of ops:  16
compiled vars:  !0 = $w, !1 = $h, !2 = $height, !3 = $width, !4 = $tab
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2000
    3     1        ASSIGN                                                   !1, 5000
    4     2        ASSIGN                                                   !2, 1500
    5     3        DIV                                              ~8      !0, !1
          4        MUL                                              ~9      !2, ~8
          5        ASSIGN                                                   !3, ~9
    6     6        CONCAT                                           ~11     !3, 'x'
          7        CONCAT                                           ~12     ~11, !2
          8        ECHO                                                     ~12
    8     9        ASSIGN                                                   !4, <array>
    9    10        INIT_FCALL                                               'implode'
         11        SEND_VAL                                                 '%3Cbr%2F%3E'
         12        SEND_VAR                                                 !4
         13        DO_ICALL                                         $14     
         14        ECHO                                                     $14
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.34 ms | 1394 KiB | 15 Q