3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stuff(int $i, string $s, float $f, Point $p, int $m = 0) {} try { str_replace(1); } catch(ArgumentCountError $e) { echo $e->getMessage(), PHP_EOL; } try { stuff(1); } catch(ArgumentCountError $e) { echo $e->getMessage(), 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.30.0080.01017.93
8.5.20.0060.00819.96
8.5.10.0100.00817.02
8.5.00.0110.01022.95
8.4.180.0160.00619.90
8.4.170.0060.00423.78
8.4.160.0120.01323.09
8.4.150.0080.00616.95
8.4.140.0360.01117.58
8.4.130.0340.00917.67
8.4.120.0390.01017.62
8.4.110.0420.01217.98
8.4.100.0340.01318.02
8.4.90.0380.00918.07
8.4.80.0400.00817.73
8.4.70.0410.00718.04
8.4.60.0420.01217.65
8.4.50.0400.00717.83
8.4.40.0370.01217.63
8.4.30.0420.01117.54
8.4.20.0430.00817.69
8.4.10.0410.00817.76
8.3.300.0080.01318.96
8.3.290.0110.00920.72
8.3.280.0070.00416.26
8.3.270.0370.00716.45
8.3.260.0370.00816.34
8.3.250.0350.01016.03
8.3.240.0400.00716.32
8.3.230.0340.01116.45
8.3.220.0370.01116.32
8.3.210.0360.01016.08
8.3.200.0360.00816.17
8.3.190.0360.01416.31
8.3.180.0360.00916.33
8.3.170.0350.01116.59
8.3.160.0380.01016.43
8.3.150.0400.00716.42
8.3.140.0430.00716.49
8.3.130.0380.00916.57
8.3.120.0350.00916.57
8.3.110.0360.01116.45
8.3.100.0430.01016.53
8.3.90.0370.01016.27
8.3.80.0430.00516.51
8.3.70.0410.00916.68
8.3.60.0410.00716.55
8.3.50.0440.00716.46
8.3.40.0390.00817.19
8.3.30.0350.00717.57
8.3.20.0350.00717.46
8.3.10.0320.00617.52
8.3.00.0320.01017.47
8.2.300.0100.01018.16
8.2.290.0290.01016.87
8.2.280.0320.00516.63
8.2.270.0300.01016.82
8.2.260.0300.00916.52
8.2.250.0410.00716.42
8.2.240.0300.01016.72
8.2.230.0380.00316.43
8.2.220.0380.00816.57
8.2.210.0330.00916.78
8.2.200.0310.00916.48
8.2.190.0310.00816.42
8.2.180.0320.01116.45
8.2.170.0320.01017.88
8.2.160.0280.01417.76
8.2.150.0400.00617.56
8.2.140.0340.01017.63
8.2.130.0350.00817.54
8.2.120.0360.00817.58
8.2.110.0330.00917.70
8.2.100.0340.00817.63
8.2.90.0320.01117.55
8.2.80.0370.00817.36
8.2.70.0340.01017.54
8.2.60.0440.01117.42
8.2.50.0400.00817.63
8.2.40.0290.01117.63
8.2.30.0330.00517.51
8.2.20.0300.00917.59
8.2.10.0300.00817.20
8.2.00.0300.01017.38
8.1.340.0090.00917.63

preferences:
34.8 ms | 403 KiB | 5 Q