3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expected = 1; $actual = true; $code = 'return $expected == $actual;'; //var_export(assert($code)); echo "\n"; var_export(eval("return $code;"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E2VSY
function name:  (null)
number of ops:  12
compiled vars:  !0 = $expected, !1 = $actual, !2 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, <true>
    4     2        ASSIGN                                                   !2, 'return+%24expected+%3D%3D+%24actual%3B'
    6     3        ECHO                                                     '%0A'
    7     4        INIT_FCALL                                               'var_export'
          5        ROPE_INIT                                     3  ~7      'return+'
          6        ROPE_ADD                                      1  ~7      ~7, !2
          7        ROPE_END                                      2  ~6      ~7, '%3B'
          8        INCLUDE_OR_EVAL                                  $9      ~6, EVAL
          9        SEND_VAR                                                 $9
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.36 ms | 1394 KiB | 15 Q