3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tokens = token_get_all('<?php $a = 1 + 2; echo $a ?>'); foreach($tokens as $token) { echo $token[0]; }
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.1, 8.3.3, 8.3.5 - 8.3.6
389266392=392260392+392260;392291392266392391
Output for 8.3.0, 8.3.2, 8.3.4
394317397=397311397+397311;397328397317397396
Output for 8.0.30
387266390=390260390+390260;390291390266390389
Output for 8.0.0 - 8.0.29
390315393=393309393+393309;393326393315393392
Output for 7.4.0 - 7.4.33
382312385=385309385+385309;385324385312385384
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
379320382=382317382+382317;382328382320382381
Output for 5.6.0 - 5.6.40
376312379=379308379+379308;379319379312379378
Output for 5.5.0 - 5.5.38
374310377=377306377+377306;377317377310377376
Output for 5.4.0 - 5.4.45
372309375=375305375+375305;375316375309375374
Output for 5.3.0 - 5.3.29
368309371=371305371+371305;371316371309371370
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
367309370=370305370+370305;370316370309370369
Output for 5.0.0 - 5.0.5
365308368=368304368+368304;368315368308368367
Output for 4.4.2 - 4.4.9
354307357=357303357+357303;357314357307357356
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.1
353306356=356302356+356302;356313356306356355

preferences:
249.02 ms | 402 KiB | 460 Q