3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo intdiv(3, -2.5) . "\n"; echo (int)(3 / -2.5);
based on r8ZYO
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0E3hh
function name:  (null)
number of ops:  9
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'intdiv'
         1        SEND_VAL                                                 3
         2        SEND_VAL                                                 -2.5
         3        DO_ICALL                                         $0      
         4        CONCAT                                           ~1      $0, '%0A'
         5        ECHO                                                     ~1
   4     6        CAST                                          4  ~2      -1.2
         7        ECHO                                                     ~2
         8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0