3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = array('string1' => "\n\r\t", 'string2' => "\narf12", 'string3' => '\n\r\t'); foreach ($strings as $name => $testcase) { if (ctype_space($testcase)) { echo "The string '$name' consists of all whitespace characters.\n"; } else { echo "The string '$name' does not consist of all whitespace characters.\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/ne0au
function name:  (null)
number of ops:  20
compiled vars:  !0 = $strings, !1 = $testcase, !2 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $4      !0, ->18
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->18
          3    >   ASSIGN                                                   !2, ~5
    5     4        INIT_FCALL                                               'ctype_space'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $7      
          7      > JMPZ                                                     $7, ->13
    6     8    >   ROPE_INIT                                     3  ~9      'The+string+%27'
          9        ROPE_ADD                                      1  ~9      ~9, !2
         10        ROPE_END                                      2  ~8      ~9, '%27+consists+of+all+whitespace+characters.%0A'
         11        ECHO                                                     ~8
         12      > JMP                                                      ->17
    8    13    >   ROPE_INIT                                     3  ~12     'The+string+%27'
         14        ROPE_ADD                                      1  ~12     ~12, !2
         15        ROPE_END                                      2  ~11     ~12, '%27+does+not+consist+of+all+whitespace+characters.%0A'
         16        ECHO                                                     ~11
    4    17    > > JMP                                                      ->2
         18    >   FE_FREE                                                  $4
   10    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.27 ms | 1395 KiB | 15 Q