3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.47 ms | 1397 KiB | 13 Q