3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.99 ms | 1395 KiB | 17 Q