3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); $foo = 42; var_dump(strlen($foo)); var_dump(ctype_digit($foo)); var_dump(htmlspecialchars($foo));
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/VBU05
function name:  (null)
number of ops:  21
compiled vars:  !0 = $foo
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'error_reporting'
         1        SEND_VAL                                                 32767
         2        DO_ICALL                                                 
   5     3        ASSIGN                                                   !0, 42
   6     4        INIT_FCALL                                               'var_dump'
         5        STRLEN                                           ~3      !0
         6        SEND_VAL                                                 ~3
         7        DO_ICALL                                                 
   7     8        INIT_FCALL                                               'var_dump'
         9        INIT_FCALL                                               'ctype_digit'
        10        SEND_VAR                                                 !0
        11        DO_ICALL                                         $5      
        12        SEND_VAR                                                 $5
        13        DO_ICALL                                                 
   8    14        INIT_FCALL                                               'var_dump'
        15        INIT_FCALL                                               'htmlspecialchars'
        16        SEND_VAR                                                 !0
        17        DO_ICALL                                         $7      
        18        SEND_VAR                                                 $7
        19        DO_ICALL                                                 
        20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0