3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function (int $errno, string $msg) { require __DIR__.'/b.php'; echo 'error handler called: ', $msg; }); $code = '<?php class _ {};'; $tokens = token_get_all($code, \TOKEN_PARSE); echo "\n\n"; foreach ($tokens as $token) { if (is_string($token)) { echo $token, "\n"; } else { echo token_name($token[0]) . ' "' . $token[1], "\"\n"; } }

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.30.0100.00817.84
8.5.20.0080.00820.25
8.5.10.0110.00816.91
8.5.00.0120.00922.95
8.4.180.0110.01019.59
8.4.170.0130.01023.88
8.4.160.0110.01223.67
8.4.150.0100.00316.88
8.4.140.0110.01017.59
8.4.130.0120.00819.22
8.4.120.0150.00522.48
8.4.110.0440.00717.58
8.4.100.0420.00917.44
8.4.90.0370.01317.98
8.4.80.0420.00817.75
8.4.70.0390.01117.66
8.4.60.0350.01217.40
8.4.50.0300.00518.00
8.4.40.0240.00617.35
8.4.30.0410.01117.64
8.4.20.0420.00817.66
8.4.10.0410.01117.59
8.3.300.0120.00818.57
8.3.290.0160.01020.79
8.3.280.0070.00416.33
8.3.270.0140.00616.45
8.3.260.0120.00916.50
8.3.250.0090.00917.04
8.3.240.0210.00516.64
8.3.230.0140.00716.50
8.3.220.0270.00616.38
8.3.210.0160.00616.48
8.3.200.0330.01016.32
8.3.190.0220.00516.52
8.3.180.0450.00816.71
8.3.170.0460.00616.42
8.3.160.0410.01116.39
8.3.150.0410.00516.63
8.3.140.0390.00916.51
8.3.130.0350.00916.52
8.3.120.0350.00616.56
8.3.110.0390.00716.56
8.3.100.0460.00616.29
8.3.90.0450.00516.42
8.3.80.0410.01016.28
8.3.70.0310.00516.73
8.3.60.0410.00916.29
8.3.50.0410.01016.63
8.3.40.0360.00817.53
8.3.30.0500.01217.35
8.3.20.0340.00917.61
8.3.10.0260.00517.37
8.3.00.0230.00617.70
8.2.300.0090.01122.16
8.2.290.0130.00516.87
8.2.280.0130.00416.61
8.2.270.0300.01016.65
8.2.260.0300.00816.35
8.2.250.0120.00716.41
8.2.240.0150.00416.32
8.2.230.0160.00616.23
8.2.220.0360.00616.69
8.2.210.0250.00816.13
8.2.200.0150.00416.59
8.2.190.0180.00516.76
8.2.180.0170.00416.34
8.2.170.0170.00417.63
8.2.160.0150.00517.73
8.2.150.0360.00917.77
8.2.140.0330.00817.70
8.2.130.0330.00917.40
8.2.120.0320.01317.54
8.2.110.0230.00417.66
8.2.100.0320.01117.44
8.2.90.0320.00917.63
8.2.80.0300.01417.35
8.2.70.0380.00717.76
8.2.60.0340.00417.35
8.2.50.0360.00717.19
8.2.40.0320.00817.12
8.2.30.0460.00717.31
8.2.20.0140.00817.56
8.2.10.0140.00417.32
8.2.00.0330.00917.20
8.1.340.0100.01117.52

preferences:
44.38 ms | 841 KiB | 5 Q