3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { function foo(int $a, int $b) {} } class y extends x { function foo(int $b, int $a) {} } class x2 { function foo(int $a, string $b) {} } class y2 extends x2 { function foo(string $b, int $a) {} }

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.0320.00616.61
8.5.20.0390.00616.44
8.5.10.0250.01016.49
8.5.00.0250.00816.18
8.4.180.0300.00719.49
8.4.170.0310.01319.61
8.4.160.0060.01019.65
8.4.150.0260.00319.74
8.4.140.0340.00817.28
8.4.130.0360.00817.43
8.4.120.0360.00817.65
8.4.110.0210.00517.78
8.4.100.0300.00417.81
8.4.90.0330.00917.57
8.4.80.0350.00817.55
8.4.70.0250.00317.68
8.4.60.0260.00817.41
8.4.50.0350.00917.66
8.4.40.0410.01317.61
8.4.30.0340.01017.41
8.4.20.0330.00817.51
8.4.10.0450.00517.32
8.3.300.0370.00918.29
8.3.290.0290.01018.29
8.3.280.0280.01118.00
8.3.270.0360.00516.42
8.3.260.0350.00716.82
8.3.250.0300.01016.54
8.3.240.0390.00616.49
8.3.230.0240.00416.57
8.3.220.0220.00316.55
8.3.210.0190.00016.68
8.3.200.0190.00516.45
8.3.190.0200.00616.54
8.3.180.0340.00716.54
8.3.170.0340.00416.67
8.3.160.0360.00916.67
8.3.150.0370.00816.73
8.3.140.0330.00816.45
8.3.130.0190.00416.75
8.3.120.0270.00316.78
8.3.110.0320.00616.61
8.3.100.0340.00916.60
8.3.90.0360.00716.60
8.3.80.0350.00816.65
8.3.70.0350.01116.51
8.3.60.0360.01116.50
8.3.50.0350.00916.42
8.3.40.0330.00617.77
8.3.30.0290.00717.90
8.3.20.0270.00717.70
8.3.10.0280.00617.97
8.3.00.0120.00917.58

preferences:
46.16 ms | 707 KiB | 4 Q