3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { return 'bar'; } public static function foo() { return self::bar(); } } var_dump(Foo::foo());

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.3.60.0070.01118.40
8.3.50.0130.00721.09
8.3.40.0070.01018.84
8.3.30.0030.01020.22
8.3.20.0080.00020.21
8.3.10.0070.00021.05
8.3.00.0090.00022.37
8.2.180.0120.00318.41
8.2.170.0170.00322.96
8.2.160.0070.00722.21
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0050.00220.82
8.2.110.0060.00321.92
8.2.100.0060.00318.77
8.1.270.0000.00923.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00318.27
8.1.230.0060.00318.62
5.4.130.0100.04112.06
5.4.120.0140.03912.00
5.4.110.0110.04212.00
5.4.100.0130.04212.00
5.4.90.0170.05812.00
5.4.80.0120.04612.00
5.4.70.0120.04112.00
5.4.60.0270.06612.00
5.4.50.0100.04111.99
5.4.40.0120.04211.99
5.4.30.0140.05911.98
5.4.20.0150.03911.98
5.4.10.0140.04011.98
5.4.00.0140.06111.47
5.3.230.0090.04712.71
5.3.220.0120.04412.68
5.3.210.0180.06212.68
5.3.200.0140.04412.68
5.3.190.0120.04612.68
5.3.180.0270.07412.67
5.3.170.0150.04312.67
5.3.160.0140.04312.67
5.3.150.0160.04112.67
5.3.140.0120.04412.66
5.3.130.0140.04212.66
5.3.120.0200.06812.66
5.3.110.0120.04912.66
5.3.100.0140.04312.12
5.3.90.0210.04612.09
5.3.80.0120.04412.08
5.3.70.0100.04412.08
5.3.60.0120.04412.07
5.3.50.0140.04012.01
5.3.40.0190.06012.01
5.3.30.0110.04811.97
5.3.20.0140.05011.75
5.3.10.0130.03911.72
5.3.00.0130.04311.70

preferences:
31.08 ms | 400 KiB | 5 Q