3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function bar() { $foo = static function() { return get_called_class(); }; return $foo(); } } class Bar extends Foo { static function bar() { $foo = static function() { return get_called_class(); }; return $foo(); } } print Foo::bar(); print Bar::bar();

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.40.0140.00718.84
8.3.30.0110.00419.23
8.3.20.0000.00820.29
8.3.10.0030.00623.54
8.3.00.0070.00317.46
8.2.170.0040.01122.96
8.2.160.0100.00320.22
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0070.01126.16
8.2.120.0050.00222.27
8.2.110.0100.00022.02
8.2.100.0040.00718.74
8.1.270.0050.00322.11
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00618.65
8.1.230.0070.00418.53
5.4.280.0110.05412.38
5.4.270.0110.04512.38
5.4.260.0080.05112.38
5.4.250.0130.07512.38
5.4.240.0170.08012.38
5.4.230.0190.09212.38
5.4.220.0090.05612.38
5.4.210.0090.05712.38
5.4.200.0090.05612.38
5.4.190.0160.06112.38
5.4.180.0100.05012.38
5.4.170.0190.07012.38
5.4.160.0150.04912.38
5.4.150.0110.05612.38
5.4.140.0150.05312.06
5.4.130.0160.04912.04
5.4.120.0120.06712.00
5.4.110.0110.06012.00
5.4.100.0090.05812.00
5.4.90.0080.03912.00
5.4.80.0060.04112.00
5.4.70.0060.03712.00
5.4.60.0090.03512.00
5.4.50.0070.04311.99
5.4.40.0190.04811.99
5.4.30.0180.06111.98
5.4.20.0070.05511.98
5.4.10.0180.04611.98
5.4.00.0100.04911.47
5.3.280.0160.04812.71
5.3.270.0140.05412.72
5.3.260.0210.06512.71
5.3.250.0100.06012.72
5.3.240.0160.07112.72
5.3.230.0080.04812.71
5.3.220.0110.07312.68
5.3.210.0160.06912.68
5.3.200.0170.05312.68
5.3.190.0110.04912.68
5.3.180.0130.06012.67
5.3.170.0090.07312.67
5.3.160.0100.07512.67
5.3.150.0300.13412.68
5.3.140.0140.04512.66
5.3.130.0130.05512.66
5.3.120.0160.05712.65
5.3.110.0180.07912.66
5.3.100.0290.08012.12
5.3.90.0100.05912.08
5.3.80.0110.05812.08
5.3.70.0080.04012.07
5.3.60.0080.04412.07
5.3.50.0110.03712.00
5.3.40.0110.04412.00
5.3.30.0270.07811.95
5.3.20.0400.07411.73
5.3.10.0140.06211.70
5.3.00.0130.05211.69

preferences:
26.94 ms | 400 KiB | 5 Q