3v4l.org

run code in 300+ PHP versions simultaneously
<?php $occurredOn = 1370541380000; $ss = substr($occurredOn, 0, 3); if ($ss == "000") { $occurredOn = substr($occurredOn, -3); } var_dump($occurredOn);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/9ALbO
function name:  (null)
number of ops:  18
compiled vars:  !0 = $occurredOn, !1 = $ss
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1370541380000
    4     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 3
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        IS_EQUAL                                                 !1, '000'
          8      > JMPZ                                                     ~5, ->14
    7     9    >   INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 -3
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !0, $6
    9    14    >   INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
220.59 ms | 1394 KiB | 17 Q