3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { static function test(int $x): int; } class B implements A { static function test(string $x): string { return $x; } }

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.130.0090.01018.63
8.4.120.0130.00624.27
8.4.110.0120.00818.90
8.4.100.0100.00718.53
8.4.90.0140.00620.56
8.4.80.0130.00718.73
8.4.70.0120.00818.92
8.4.60.0050.00318.83
8.4.50.0100.00718.70
8.4.40.0130.00717.75
8.4.30.0090.00918.95
8.4.20.0060.00321.74
8.4.10.0040.01519.32
8.3.260.0140.00516.64
8.3.250.0110.00818.93
8.3.240.0040.00517.13
8.3.230.0040.00416.57
8.3.220.0110.00618.73
8.3.210.0060.00218.63
8.3.200.0080.00116.62
8.3.190.0120.00817.31
8.3.180.0070.01218.69
8.3.170.0060.01220.80
8.3.160.0090.00916.68
8.3.150.0070.01117.07
8.3.140.0080.00016.43
8.3.130.0080.00018.40
8.3.120.0040.00418.97
8.3.110.0120.00316.63
8.3.100.0090.00024.06
8.3.90.0060.01226.77
8.3.80.0380.01030.84
8.3.70.0290.01330.84
8.3.60.0250.01530.84
8.3.50.0140.00830.84
8.3.40.0360.00330.84
8.3.30.0300.00930.84
8.3.20.0230.01230.84
8.3.10.0220.00330.84
8.3.00.0320.00630.84
8.2.290.0130.00620.22
8.2.280.0110.00720.37
8.2.270.0070.01117.21
8.2.260.0070.01016.36
8.2.250.0040.00417.13
8.2.240.0140.00416.87
8.2.230.0060.00320.94
8.2.220.0040.00437.54
8.2.210.0030.00526.77
8.2.200.0360.00630.84
8.2.190.0300.01030.84
8.2.180.0310.00730.84
8.2.170.0240.01230.84
8.2.160.0190.00030.84
8.2.150.0290.01130.84
8.2.140.0380.00630.84
8.2.130.0470.01330.84
8.2.120.0290.01630.84
8.2.110.0200.02930.84
8.2.100.0330.00730.84
8.2.90.0290.00630.84
8.2.80.0140.01130.84
8.2.70.0370.00330.84
8.2.60.0360.00530.84
8.2.50.0350.00930.84
8.2.40.0300.01230.84
8.2.30.0370.00330.84
8.2.20.0300.00930.84
8.2.10.0310.00630.84
8.2.00.0350.00630.84
8.1.330.0130.00621.91
8.1.320.0090.01018.12
8.1.310.0070.01016.63
8.1.300.0050.00515.96
8.1.290.0380.01030.84
8.1.280.0320.00830.84
8.1.270.0340.01130.84
8.1.260.0380.00430.84
8.1.250.0330.00930.84
8.1.240.0350.00330.84
8.1.230.0340.00330.84
8.1.220.0150.02330.84
8.1.210.0370.00030.84
8.1.200.0330.00430.84
8.1.190.0270.01030.84
8.1.180.0340.00430.84
8.1.170.0290.00930.84
8.1.160.0360.00830.84
8.1.150.0330.00730.84
8.1.140.0270.01330.84
8.1.130.0280.01230.84
8.1.120.0300.01030.84
8.1.110.0300.01030.84
8.1.100.0170.02130.84
8.1.90.0310.00630.84
8.1.80.0280.00930.84
8.1.70.0230.01530.84
8.1.60.0260.01530.84
8.1.50.0310.00930.84
8.1.40.0270.01330.84
8.1.30.0330.00730.84
8.1.20.0350.00630.84
8.1.10.0380.00330.84
8.1.00.0470.00030.84

preferences:
29.71 ms | 403 KiB | 5 Q