3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "Nonprofit & Activism"; $match = preg_match("/^(Autos & Vehicles|Comedy|Education|Entertainment|Film & Animation|Gaming|Howto & Style|Music|News & Politics|Nonprofit & Activism|People & Blogs|Pets & Animals|Science & Technology|Sport|Travel & Events)$/i", $data); var_dump($match); echo ($match ? "TRUE" : "FALSE");
Finding entry points
Branch analysis from position: 0
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 = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/opt1D
function name:  (null)
number of ops:  15
compiled vars:  !0 = $data, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Nonprofit+%26+Activism'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28Autos+%26+Vehicles%7CComedy%7CEducation%7CEntertainment%7CFilm+%26+Animation%7CGaming%7CHowto+%26+Style%7CMusic%7CNews+%26+Politics%7CNonprofit+%26+Activism%7CPeople+%26+Blogs%7CPets+%26+Animals%7CScience+%26+Technology%7CSport%7CTravel+%26+Events%29%24%2Fi'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    6     9      > JMPZ                                                     !1, ->12
         10    >   QM_ASSIGN                                        ~6      'TRUE'
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~6      'FALSE'
         13    >   ECHO                                                     ~6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.01 ms | 1395 KiB | 17 Q