3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pad=8;$e=PHP_EOL;echo 'Current PHP version: ' . phpversion() .$e. 'Strict comparisons with ==='.str_repeat($e,2);$values=array("true"=>true,"false"=>false,"1"=>1,"0"=>0,"-1"=>-1,"'1'"=>"1",'"0"'=>"0",'"-1"'=>"-1","null"=>null,"array()"=>array(),"'php'"=>"php","''" =>"");echo str_pad('', $pad);foreach ($values as $key => $value){echo str_pad($key, $pad);}echo str_repeat($e, 2);foreach ($values as $k1 => $v1){echo str_pad($k1, $pad);foreach($values as $k2 => $v2) {$varExport = var_export($v1 === $v2, true);echo str_pad(strtoupper($varExport), $pad);}echo $e;}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 28
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 28
2 jumps found. (Code = 77) Position 1 = 35, Position 2 = 63
Branch analysis from position: 35
2 jumps found. (Code = 78) Position 1 = 36, Position 2 = 63
Branch analysis from position: 36
2 jumps found. (Code = 77) Position 1 = 43, Position 2 = 60
Branch analysis from position: 43
2 jumps found. (Code = 78) Position 1 = 44, Position 2 = 60
Branch analysis from position: 44
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 60
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
Branch analysis from position: 60
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 63
Branch analysis from position: 28
filename:       /in/TvGGp
function name:  (null)
number of ops:  65
compiled vars:  !0 = $pad, !1 = $e, !2 = $values, !3 = $value, !4 = $key, !5 = $v1, !6 = $k1, !7 = $v2, !8 = $k2, !9 = $varExport
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 8
          1        ASSIGN                                                   !1, '%0A'
          2        INIT_FCALL                                               'phpversion'
          3        DO_ICALL                                         $12     
          4        CONCAT                                           ~13     'Current+PHP+version%3A+', $12
          5        CONCAT                                           ~14     ~13, !1
          6        CONCAT                                           ~15     ~14, 'Strict+comparisons+with+%3D%3D%3D'
          7        INIT_FCALL                                               'str_repeat'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 2
         10        DO_ICALL                                         $16     
         11        CONCAT                                           ~17     ~15, $16
         12        ECHO                                                     ~17
         13        ASSIGN                                                   !2, <array>
         14        INIT_FCALL                                               'str_pad'
         15        SEND_VAL                                                 ''
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $19     
         18        ECHO                                                     $19
         19      > FE_RESET_R                                       $20     !2, ->28
         20    > > FE_FETCH_R                                       ~21     $20, !3, ->28
         21    >   ASSIGN                                                   !4, ~21
         22        INIT_FCALL                                               'str_pad'
         23        SEND_VAR                                                 !4
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $23     
         26        ECHO                                                     $23
         27      > JMP                                                      ->20
         28    >   FE_FREE                                                  $20
         29        INIT_FCALL                                               'str_repeat'
         30        SEND_VAR                                                 !1
         31        SEND_VAL                                                 2
         32        DO_ICALL                                         $24     
         33        ECHO                                                     $24
         34      > FE_RESET_R                                       $25     !2, ->63
         35    > > FE_FETCH_R                                       ~26     $25, !5, ->63
         36    >   ASSIGN                                                   !6, ~26
         37        INIT_FCALL                                               'str_pad'
         38        SEND_VAR                                                 !6
         39        SEND_VAR                                                 !0
         40        DO_ICALL                                         $28     
         41        ECHO                                                     $28
         42      > FE_RESET_R                                       $29     !2, ->60
         43    > > FE_FETCH_R                                       ~30     $29, !7, ->60
         44    >   ASSIGN                                                   !8, ~30
         45        INIT_FCALL                                               'var_export'
         46        IS_IDENTICAL                                     ~32     !5, !7
         47        SEND_VAL                                                 ~32
         48        SEND_VAL                                                 <true>
         49        DO_ICALL                                         $33     
         50        ASSIGN                                                   !9, $33
         51        INIT_FCALL                                               'str_pad'
         52        INIT_FCALL                                               'strtoupper'
         53        SEND_VAR                                                 !9
         54        DO_ICALL                                         $35     
         55        SEND_VAR                                                 $35
         56        SEND_VAR                                                 !0
         57        DO_ICALL                                         $36     
         58        ECHO                                                     $36
         59      > JMP                                                      ->43
         60    >   FE_FREE                                                  $29
         61        ECHO                                                     !1
         62      > JMP                                                      ->35
         63    >   FE_FREE                                                  $25
         64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.92 ms | 1400 KiB | 23 Q