3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface RouteCollectionInterface { public function add(string $from, $to, ?array $options = null): self; } class RouteCollection implements RouteCollectionInterface { public function add(string $from, $to, ?array $options = null) { } }

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.4.140.0110.01117.48
8.4.130.0100.00817.93
8.4.120.0080.00320.53
8.4.110.0120.00920.73
8.4.100.0100.00717.72
8.4.90.0080.00317.70
8.4.80.0040.00420.73
8.4.70.0090.00817.82
8.4.60.0130.00717.82
8.4.50.0120.01018.05
8.4.40.0030.01519.36
8.4.30.0090.00618.71
8.4.20.0130.00618.01
8.4.10.0160.00424.01
8.3.270.0160.01016.59
8.3.260.0110.00816.46
8.3.250.0070.00318.75
8.3.240.0140.00916.62
8.3.230.0120.00716.73
8.3.220.0090.00817.10
8.3.210.0110.00916.71
8.3.200.0100.00916.62
8.3.190.0110.00716.69
8.3.180.0120.00716.62
8.3.170.0180.00020.88
8.3.160.0100.01016.54
8.3.150.0110.00416.91
8.3.140.0070.00720.75
8.3.130.0040.00418.59
8.3.120.0080.00819.01
8.3.110.0040.00420.94
8.3.100.0110.00424.06
8.3.90.0040.01126.77
8.3.80.0100.00016.63
8.3.70.0150.00416.88
8.3.60.0110.00418.43
8.3.50.0100.01316.70
8.3.40.0060.00920.09
8.3.30.0040.01118.63
8.3.20.0050.00324.18
8.3.10.0000.00724.66
8.3.00.0050.00326.16
8.2.290.0130.00720.27
8.2.280.0060.00116.58
8.2.270.0060.01216.91
8.2.260.0070.00018.73
8.2.250.0070.01318.38
8.2.240.0060.00317.00
8.2.230.0000.00822.58
8.2.220.0000.00837.54
8.2.210.0130.00626.77
8.2.200.0000.00916.50
8.2.190.0190.00316.58
8.2.180.0110.00425.92
8.2.170.0120.00918.95
8.2.160.0070.00722.96
8.2.150.0050.00325.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00321.00
8.2.110.0100.00021.00
8.2.100.0080.00419.38
8.2.90.0000.00917.50
8.2.80.0050.00318.70
8.2.70.0030.00617.50
8.2.60.0000.00817.50
8.2.50.0160.00319.49
8.2.40.0100.00719.49
8.2.30.0100.00319.49
8.2.20.0130.00419.49
8.2.10.0120.00419.49
8.2.00.0110.00619.49
8.1.330.0110.00816.55
8.1.320.0110.00516.01
8.1.310.0100.00716.58
8.1.300.0040.01118.26
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00720.81
8.1.230.0070.00417.57
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0030.00519.02
8.1.180.0120.00519.49
8.1.170.0120.00319.49
8.1.160.0100.00519.49
8.1.150.0120.00519.49
8.1.140.0110.00519.49
8.1.130.0110.00519.49
8.1.120.0160.00019.49
8.1.110.0140.00219.49
8.1.100.0160.00319.49
8.1.90.0120.00419.49
8.1.80.0080.00819.49
8.1.70.0110.00519.49
8.1.60.0150.00419.49
8.1.50.0160.00219.49
8.1.40.0140.00319.49
8.1.30.0110.00619.49
8.1.20.0120.00519.49
8.1.10.0120.00519.49
8.1.00.0110.00719.49
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0120.00419.49
8.0.270.0020.01319.49
8.0.260.0140.00219.49
8.0.250.0160.00019.49
8.0.240.0120.00419.49
8.0.230.0120.00319.49
8.0.220.0120.00419.49
8.0.210.0130.00219.49
8.0.200.0120.00419.49
8.0.190.0020.01419.49
8.0.180.0140.00219.49
8.0.170.0110.00619.49
8.0.160.0120.00419.49
8.0.150.0120.00419.49
8.0.140.0100.00319.49
8.0.130.0140.00119.49
8.0.120.0110.00519.49
8.0.110.0100.00519.49
8.0.100.0070.00919.49
8.0.90.0100.00719.49
8.0.80.0070.01019.49
8.0.70.0080.00719.49
8.0.60.0110.00419.49
8.0.50.0110.00419.49
8.0.30.0120.00319.49
8.0.20.0130.00219.49
8.0.10.0100.00619.49

preferences:
28.82 ms | 403 KiB | 5 Q