3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php class A { } class Foo { public static function bar($x) { echo get_class($x), "\n"; } } Foo::bar(new A()); Foo::bar(null);

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.0.120.0000.00613.36
8.0.110.0030.00313.29
8.0.100.0070.00013.38
8.0.90.0070.00013.39
8.0.80.0050.00213.39
8.0.70.0030.00313.42
8.0.60.0050.00313.41
8.0.50.0030.00313.40
8.0.30.0050.00213.42
8.0.20.0040.00413.45
8.0.10.0020.00513.43
8.0.00.0060.00313.50
7.4.250.0000.00713.25
7.4.240.0070.00013.17
7.4.230.0060.00313.26
7.4.220.0080.00013.29
7.4.210.0080.00013.17
7.4.200.0050.00313.13
7.4.190.0030.00313.32
7.4.180.0050.00313.34
7.4.160.0040.00413.36
7.4.150.0050.00313.10
7.4.140.0050.00313.07
7.4.130.0040.00413.04
7.4.120.0030.00413.12
7.4.110.0060.00313.03
7.4.100.0000.00613.26
7.4.90.0030.00413.11
7.4.80.0020.00513.07
7.4.70.0130.00012.59
7.4.60.0150.00012.87
7.4.50.0070.00712.86
7.4.40.0110.00012.68
7.4.30.0140.00012.87
7.4.20.0110.00012.71
7.4.10.0130.00012.73
7.4.00.0100.00012.84
7.3.320.0090.00312.68
7.3.310.0080.00412.78
7.3.300.0070.00312.86
7.3.290.0070.00312.85
7.3.280.0110.00413.07
7.3.270.0090.00412.69
7.3.260.0110.00413.03
7.3.250.0100.00312.88
7.3.240.0080.00413.12
7.3.230.0080.00012.85
7.3.220.0040.00812.54
7.3.210.0070.00713.03
7.3.200.0120.00312.92
7.3.190.0000.01212.72
7.3.180.0100.00312.90
7.3.170.0090.00013.10
7.3.160.0080.00412.79
7.3.150.0130.00012.66
7.3.140.0110.00012.68
7.3.130.0100.00312.65
7.3.120.0120.00012.67
7.3.110.0120.00012.93
7.3.100.0040.00812.33
7.3.90.0060.00713.45
7.3.80.0100.00512.83
7.3.70.0100.00012.95
7.3.60.0110.00212.89
7.3.50.0050.01013.07
7.3.40.0130.00013.16
7.3.30.0130.00013.04
7.3.20.0120.00214.89
7.3.10.0100.00514.57
7.3.00.0090.00514.28
7.0.00.0020.00413.99
5.6.400.0110.00112.58

preferences:
129.59 ms | 1428 KiB | 7 Q