3v4l.org

run code in 500+ PHP versions simultaneously
<?php $code = '<?php class Foo { public const NEW = Bar::NEW; }'; foreach (token_get_all($code, TOKEN_PARSE) as $t) { if (is_array($t) && strcasecmp($t[1], 'new') === 0) { echo token_name($t[0]), ' [', $t[1], ']', PHP_EOL; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.100.0120.00716.80
8.5.90.0080.00516.74
8.5.80.0070.00416.77
8.5.70.0130.00416.56
8.5.60.0140.00417.59
8.5.50.0100.00716.89
8.5.40.0090.00416.48
8.5.30.0090.00516.62
8.5.20.0080.00216.81
8.5.10.0150.00516.69
8.5.00.0070.00316.51
8.4.250.0110.01219.44
8.4.240.0070.00619.54
8.4.230.0130.01119.38
8.4.220.0160.01019.47
8.4.210.0110.00519.34
8.4.200.0080.00519.47
8.4.190.0050.01319.48
8.4.180.0070.00719.57
8.4.170.0080.01019.68
8.4.160.0090.01419.57
8.4.150.0120.00719.71
8.4.140.0150.00917.75
8.4.130.0080.00417.64
8.4.120.0110.00417.92
8.4.110.0150.00817.95
8.4.100.0160.00717.90
8.4.90.0100.00917.54
8.4.80.0130.00917.89
8.4.70.0100.00717.80
8.4.60.0140.00718.04
8.4.50.0120.01117.84
8.4.40.0120.00917.93
8.4.30.0120.00217.61
8.4.20.0150.00817.69
8.4.10.0120.00517.86
8.3.330.0130.00318.32
8.3.320.0130.00718.35
8.3.310.0100.00618.52
8.3.300.0160.00718.43
8.3.290.0120.00318.43
8.3.280.0080.00418.31
8.3.270.0150.00716.76
8.3.260.0050.00816.75
8.3.250.0150.00516.75
8.3.240.0130.00716.74
8.3.230.0120.00716.66
8.3.220.0130.00816.76
8.3.210.0110.00816.68
8.3.200.0080.00716.76
8.3.190.0120.00916.69
8.3.180.0140.00616.63
8.3.170.0150.00716.42
8.3.160.0130.00816.63
8.3.150.0140.00516.63
8.3.140.0140.00616.55
8.3.130.0090.00916.56
8.3.120.0160.00516.67
8.3.110.0150.00716.61
8.3.100.0180.00416.61
8.3.90.0150.00416.63
8.3.80.0150.00816.52
8.3.70.0090.00316.77
8.3.60.0120.00716.68
8.3.50.0120.00816.65
8.3.40.0070.00818.08
8.3.30.0100.00317.96
8.3.20.0130.01117.86
8.3.10.0090.01117.92
8.3.00.0120.00718.93
8.2.330.0110.00718.92
8.2.320.0170.00517.99
8.2.310.0080.00718.11

preferences:
44.9 ms | 786 KiB | 5 Q