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')); foreach($tab as $key => $value) { $tab[$key] = implode(',',$value); } echo '('.implode('),(',$tab).')';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/N565D
function name:  (null)
number of ops:  29
compiled vars:  !0 = $w, !1 = $h, !2 = $height, !3 = $width, !4 = $tab, !5 = $value, !6 = $key
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                                              ~10     !0, !1
          4        MUL                                              ~11     !2, ~10
          5        ASSIGN                                                   !3, ~11
    6     6        CONCAT                                           ~13     !3, 'x'
          7        CONCAT                                           ~14     ~13, !2
          8        ECHO                                                     ~14
    8     9        ASSIGN                                                   !4, <array>
    9    10      > FE_RESET_R                                       $16     !4, ->20
         11    > > FE_FETCH_R                                       ~17     $16, !5, ->20
         12    >   ASSIGN                                                   !6, ~17
   10    13        INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 '%2C'
         15        SEND_VAR                                                 !5
         16        DO_ICALL                                         $20     
         17        ASSIGN_DIM                                               !4, !6
         18        OP_DATA                                                  $20
    9    19      > JMP                                                      ->11
         20    >   FE_FREE                                                  $16
   12    21        INIT_FCALL                                               'implode'
         22        SEND_VAL                                                 '%29%2C%28'
         23        SEND_VAR                                                 !4
         24        DO_ICALL                                         $21     
         25        CONCAT                                           ~22     '%28', $21
         26        CONCAT                                           ~23     ~22, '%29'
         27        ECHO                                                     ~23
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.43 ms | 1396 KiB | 15 Q