3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ 'Test', 'test', 'test1', '1test', 'test!' ]; foreach ($tests as $test) { echo "$test: " , (ctype_lower($test) ? 'true' : 'false') , "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 16
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/GmlrB
function name:  (null)
number of ops:  18
compiled vars:  !0 = $tests, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    9     1      > FE_RESET_R                                       $3      !0, ->16
          2    > > FE_FETCH_R                                               $3, !1, ->16
   10     3    >   NOP                                                      
          4        FAST_CONCAT                                      ~4      !1, '%3A+'
          5        ECHO                                                     ~4
          6        INIT_FCALL                                               'ctype_lower'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9      > JMPZ                                                     $5, ->12
         10    >   QM_ASSIGN                                        ~6      'true'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~6      'false'
         13    >   ECHO                                                     ~6
         14        ECHO                                                     '%0A'
    9    15      > JMP                                                      ->2
         16    >   FE_FREE                                                  $3
   11    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.72 ms | 997 KiB | 14 Q