3v4l.org

run code in 300+ PHP versions simultaneously
<?php $originOrganizationName = 'degordian'; $registeredOrganizations = [ 'degordian', 'bornfight', // mediatoolkit, ]; $targetOrganizations = array_filter($registeredOrganizations, function ($organization) use ($originOrganizationName) { return $organization !== $originOrganizationName; } ); print_r($targetOrganizations); $tokenInArray = ['token' => 'in array']; $first = $second = $tokenInArray['token']; echo $first . " : " . $second . PHP_EOL; $TZTimeDate = 'Wed, 14 Nov 2018 06:46:11 GMT'; echo date('Y-m-d H:i:s', strtotime($TZTimeDate)); $requestOptions = [ 'showDeleted' => true, 'singleEvents' => true, 'pageToken' => '' ]; echo PHP_EOL; var_dump(empty($requestOptions['pageToken'])); echo PHP_EOL, PHP_EOL; var_dump(strpos('abcdefgh', 'abcd')); echo PHP_EOL, PHP_EOL; if(0){ echo 'int 0 bool true'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 48
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
filename:       /in/3b2XN
function name:  (null)
number of ops:  49
compiled vars:  !0 = $originOrganizationName, !1 = $registeredOrganizations, !2 = $targetOrganizations, !3 = $tokenInArray, !4 = $first, !5 = $second, !6 = $TZTimeDate, !7 = $requestOptions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'degordian'
    4     1        ASSIGN                                                   !1, <array>
   10     2        INIT_FCALL                                               'array_filter'
          3        SEND_VAR                                                 !1
   11     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F3b2XN%3A11%240'
          5        BIND_LEXICAL                                             ~10, !0
   13     6        SEND_VAL                                                 ~10
          7        DO_ICALL                                         $11     
   10     8        ASSIGN                                                   !2, $11
   16     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   18    12        ASSIGN                                                   !3, <array>
   19    13        FETCH_DIM_R                                      ~15     !3, 'token'
         14        ASSIGN                                           ~16     !5, ~15
         15        ASSIGN                                                   !4, ~16
   21    16        CONCAT                                           ~18     !4, '+%3A+'
         17        CONCAT                                           ~19     ~18, !5
         18        CONCAT                                           ~20     ~19, '%0A'
         19        ECHO                                                     ~20
   23    20        ASSIGN                                                   !6, 'Wed%2C+14+Nov+2018+06%3A46%3A11+GMT'
   25    21        INIT_FCALL                                               'date'
         22        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         23        INIT_FCALL                                               'strtotime'
         24        SEND_VAR                                                 !6
         25        DO_ICALL                                         $22     
         26        SEND_VAR                                                 $22
         27        DO_ICALL                                         $23     
         28        ECHO                                                     $23
   28    29        ASSIGN                                                   !7, <array>
   35    30        ECHO                                                     '%0A'
   37    31        INIT_FCALL                                               'var_dump'
         32        ISSET_ISEMPTY_DIM_OBJ                         1  ~25     !7, 'pageToken'
         33        SEND_VAL                                                 ~25
         34        DO_ICALL                                                 
   39    35        ECHO                                                     '%0A'
         36        ECHO                                                     '%0A'
   41    37        INIT_FCALL                                               'var_dump'
         38        INIT_FCALL                                               'strpos'
         39        SEND_VAL                                                 'abcdefgh'
         40        SEND_VAL                                                 'abcd'
         41        DO_ICALL                                         $27     
         42        SEND_VAR                                                 $27
         43        DO_ICALL                                                 
   43    44        ECHO                                                     '%0A'
         45        ECHO                                                     '%0A'
   45    46      > JMPZ                                                     0, ->48
   46    47    >   ECHO                                                     'int+0+bool+true'
   47    48    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F3b2XN%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3b2XN
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $organization, !1 = $originOrganizationName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
   12     2        IS_NOT_IDENTICAL                                 ~2      !0, !1
          3      > RETURN                                                   ~2
   13     4*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F3b2XN%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.52 ms | 1400 KiB | 25 Q