3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "1$"; $cc = 1337; $bb=42; $k2 = "00000000000000000000000000000000000{$cc}$"; var_dump(strlen($k2) == $bb); var_dump(preg_match('/^\d+$/', $k2)); var_dump(!is_numeric($k2)); var_dump($k2 == $cc); $cc = '11111111111111111111111111'; var_dump(substr($cc, $bb)); var_dump(sha1($cc)); var_dump(sha1(1337)); $a = 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6TYtf
function name:  (null)
number of ops:  52
compiled vars:  !0 = $s, !1 = $cc, !2 = $bb, !3 = $k2, !4 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   QM_ASSIGN                                                !0
   4     1        QM_ASSIGN                                                !1
   5     2        QM_ASSIGN                                                !2
   7     3        ROPE_INIT                                     3  ~9      '00000000000000000000000000000000000'
         4        ROPE_ADD                                      1  ~9      ~9, !1
         5        ROPE_END                                      2  ~8      ~9, '%EF%BC%84'
         6        QM_ASSIGN                                                !3
   9     7        INIT_FCALL                                               'var_dump'
         8        STRLEN                                           ~12     !3
         9        IS_NOT_EQUAL                                     ~13     !2, ~12
        10        SEND_VAL                                                 ~13
        11        DO_ICALL                                                 
  10    12        INIT_FCALL                                               'var_dump'
        13        INIT_FCALL                                               'preg_match'
        14        SEND_VAL                                                 '%2F%5E%5Cd%2B%EF%BC%84%2F'
        15        SEND_VAR                                                 !3
        16        DO_ICALL                                         $15     
        17        SEND_VAR                                                 $15
        18        DO_ICALL                                                 
  11    19        INIT_FCALL                                               'var_dump'
        20        INIT_FCALL                                               'is_numeric'
        21        SEND_VAR                                                 !3
        22        DO_ICALL                                         $17     
        23        BOOL_XOR                                         ~18     $17
        24        SEND_VAL                                                 ~18
        25        DO_ICALL                                                 
  12    26        INIT_FCALL                                               'var_dump'
        27        IS_NOT_EQUAL                                     ~20     !3, !1
        28        SEND_VAL                                                 ~20
        29        DO_ICALL                                                 
  14    30        QM_ASSIGN                                                !1
  15    31        INIT_FCALL                                               'var_dump'
        32        INIT_FCALL                                               'substr'
        33        SEND_VAR                                                 !1
        34        SEND_VAR                                                 !2
        35        DO_ICALL                                         $23     
        36        SEND_VAR                                                 $23
        37        DO_ICALL                                                 
  16    38        INIT_FCALL                                               'var_dump'
        39        INIT_FCALL                                               'sha1'
        40        SEND_VAR                                                 !1
        41        DO_ICALL                                         $25     
        42        SEND_VAR                                                 $25
        43        DO_ICALL                                                 
  17    44        INIT_FCALL                                               'var_dump'
        45        INIT_FCALL                                               'sha1'
        46        SEND_VAL                                                 1337
        47        DO_ICALL                                         $27     
        48        SEND_VAR                                                 $27
        49        DO_ICALL                                                 
  19    50        QM_ASSIGN                                                !4
  20    51      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
11.73 ms | 416 KiB | 7 Q