3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p =<<<EOT That interviews should involve simple code is now common wisdom in programming circles. The story is that a high percentage of programmers, even people with impressive resumes, “just can’t code.” Asked to do the simplest things—problems a good coders could solve as fast they could write—some spend ten or twenty minutes before they get an answer, or fail entirely. (See discussion by Jeff Attwood and Joel Spolsky.) I don’t go as far as others here. I think a lot of “slow coders” are probably excellent employees, making up for it in other areas. Some projects don’t need speed. Some people just need to spend more time programming; everyone was a slow programmer some time. But I know from experience that slow coders don’t work at LibraryThing. They don’t fit the LibraryThing development culture. EOT; $pattern = '[\w\d]+'; $words = array(); preg_match_all('/'.$pattern.'/', $p, $words); var_dump($words);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mfhod
function name:  (null)
number of ops:  14
compiled vars:  !0 = $p, !1 = $pattern, !2 = $words
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'That+interviews+should+involve+simple+code+is+now+common+wisdom+in+programming+circles.+The+story+is+that+a+high+percentage+of+programmers%2C+even+people+with+impressive+resumes%2C+%E2%80%9Cjust+can%E2%80%99t+code.%E2%80%9D+Asked+to+do+the+simplest+things%E2%80%94problems+a+good+coders+could+solve+as+fast+they+could+write%E2%80%94some+spend+ten+or+twenty+minutes+before+they+get+an+answer%2C+or+fail+entirely.+%28See+discussion+by+Jeff+Attwood+and+Joel+Spolsky.%29+I+don%E2%80%99t+go+as+far+as+others+here.+I+think+a+lot+of+%E2%80%9Cslow+coders%E2%80%9D+are+probably+excellent+employees%2C+making+up+for+it+in+other+areas.+Some+projects+don%E2%80%99t+need+speed.+Some+people+just+need+to+spend+more+time+programming%3B+everyone+was+a+slow+programmer+some+time.+But+I+know+from+experience+that+slow+coders+don%E2%80%99t+work+at+LibraryThing.+They+don%E2%80%99t+fit+the+LibraryThing+development+culture.'
    5     1        ASSIGN                                                   !1, '%5B%5Cw%5Cd%5D%2B'
    6     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'preg_match_all'
          4        CONCAT                                           ~6      '%2F', !1
          5        CONCAT                                           ~7      ~6, '%2F'
          6        SEND_VAL                                                 ~7
          7        SEND_VAR                                                 !0
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.98 ms | 1395 KiB | 17 Q