3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Return true to win function foo($value) { return $value != $value; } // false var_dump(foo(false)); var_dump(foo(1)); var_dump(foo(1.0)); var_dump(foo(!0)); var_dump(foo('')); var_dump(foo(true)); var_dump(foo([])); var_dump(foo((float)1.09876544567543456)); // true var_dump(foo(NAN)); // Score 3
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QOBnP
function name:  (null)
number of ops:  56
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'foo'
          2        SEND_VAL                                                 <false>
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   12     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'foo'
          8        SEND_VAL                                                 1
          9        DO_FCALL                                      0  $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
   13    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'foo'
         14        SEND_VAL                                                 1
         15        DO_FCALL                                      0  $4      
         16        SEND_VAR                                                 $4
         17        DO_ICALL                                                 
   14    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'foo'
         20        SEND_VAL                                                 <true>
         21        DO_FCALL                                      0  $6      
         22        SEND_VAR                                                 $6
         23        DO_ICALL                                                 
   15    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'foo'
         26        SEND_VAL                                                 ''
         27        DO_FCALL                                      0  $8      
         28        SEND_VAR                                                 $8
         29        DO_ICALL                                                 
   16    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'foo'
         32        SEND_VAL                                                 <true>
         33        DO_FCALL                                      0  $10     
         34        SEND_VAR                                                 $10
         35        DO_ICALL                                                 
   17    36        INIT_FCALL                                               'var_dump'
         37        INIT_FCALL                                               'foo'
         38        SEND_VAL                                                 <array>
         39        DO_FCALL                                      0  $12     
         40        SEND_VAR                                                 $12
         41        DO_ICALL                                                 
   18    42        INIT_FCALL                                               'var_dump'
         43        INIT_FCALL                                               'foo'
         44        CAST                                          5  ~14     1.09877
         45        SEND_VAL                                                 ~14
         46        DO_FCALL                                      0  $15     
         47        SEND_VAR                                                 $15
         48        DO_ICALL                                                 
   21    49        INIT_FCALL                                               'var_dump'
         50        INIT_FCALL                                               'foo'
         51        SEND_VAL                                                 NAN
         52        DO_FCALL                                      0  $17     
         53        SEND_VAR                                                 $17
         54        DO_ICALL                                                 
         55      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QOBnP
function name:  foo
number of ops:  4
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        IS_NOT_EQUAL                                     ~1      !0, !0
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.22 ms | 1403 KiB | 24 Q