3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { function foo(string $arg): string {} } class ChildClass extends ParentClass { // typehints are missing function foo($arg) {} }

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)
7.3.20.0430.00514.64
7.3.10.0410.00814.71
7.3.00.0430.00914.65
7.2.150.0430.00714.66
7.2.140.0400.00714.88
7.2.130.0420.00814.84
7.2.120.0480.00514.74
7.2.110.0410.00614.72
7.2.100.0400.00414.88
7.2.90.0320.00814.76
7.2.80.0330.01014.69
7.2.70.0470.00914.72
7.2.60.0540.00314.71
7.2.50.0390.00314.81
7.2.40.0330.01114.82
7.2.30.0440.00514.83
7.2.20.0550.00214.94
7.2.10.0780.00814.73
7.2.00.0840.00814.88
7.1.250.0460.00513.68

preferences:
29.76 ms | 406 KiB | 5 Q