3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public function baz() { return $this; } public static function foo() { return new (get_called_class()); } public function somethingElse() {} } Bar::foo()->baz()->somethingElse();

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.0080.00618.16
8.3.50.0070.01318.05
8.3.40.0040.01118.89
8.3.30.0100.00318.92
8.3.20.0050.00220.38
8.3.10.0080.00020.41
8.3.00.0040.00419.13
8.2.180.0060.00916.38
8.2.170.0110.00422.96
8.2.160.0160.00320.13
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0040.00422.23
8.2.110.0030.00721.99
8.2.100.0030.00618.46
8.1.280.0100.00725.92
8.1.270.0030.00623.96
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0070.00318.45
8.1.230.0060.00318.49
5.4.320.0190.04315.90
5.4.310.0160.04715.82
5.4.300.0190.04615.89
5.4.290.0200.04215.86
5.4.280.0190.04315.78
5.4.270.0170.04415.73
5.4.260.0160.04815.77
5.4.250.0200.04215.73
5.4.240.0160.04815.81
5.4.230.0220.04215.78
5.4.220.0230.04015.77
5.4.210.0210.04115.78
5.4.200.0160.04515.69
5.4.190.0150.04615.82
5.4.180.0220.04015.77
5.4.170.0180.04515.83
5.4.160.0180.04215.83
5.4.150.0170.04515.72
5.4.140.0210.04214.31
5.4.130.0140.04514.18
5.4.120.0150.04714.32
5.4.110.0220.04514.23
5.4.100.0200.04414.23
5.4.90.0220.04414.24
5.4.80.0280.03614.31
5.4.70.0190.04214.26
5.4.60.0250.03814.26
5.4.50.0260.04114.21
5.4.40.0240.04014.32
5.4.30.0250.03714.30
5.4.20.0260.03914.29
5.4.10.0180.04514.29
5.4.00.0220.04613.63
5.3.290.0260.04613.75
5.3.280.0250.05013.61
5.3.270.0250.04513.68
5.3.260.0250.04713.70
5.3.250.0240.05113.62
5.3.240.0210.04813.73
5.3.230.0230.04113.70
5.3.220.0240.04213.65
5.3.210.0240.04513.63
5.3.200.0200.05013.63
5.3.190.0280.04113.55
5.3.180.0280.05013.55
5.3.170.0250.04213.66
5.3.160.0230.04213.57
5.3.150.0270.04213.63
5.3.140.0200.04413.61
5.3.130.0190.04813.56
5.3.120.0240.04313.60
5.3.110.0220.04413.55
5.3.100.0280.03813.20
5.3.90.0180.04613.02
5.3.80.0190.04713.06
5.3.70.0210.04513.01
5.3.60.0200.05013.00
5.3.50.0220.04212.92
5.3.40.0260.04912.95
5.3.30.0270.04712.90
5.3.20.0210.04012.68
5.3.10.0190.04112.65
5.3.00.0200.04812.63
5.2.170.0230.03710.16
5.2.160.0260.03410.21
5.2.150.0170.03710.14
5.2.140.0180.03810.30
5.2.130.0190.04410.17
5.2.120.0190.03310.10
5.2.110.0180.03410.10
5.2.100.0210.03410.15
5.2.90.0140.03810.11
5.2.80.0150.03910.07
5.2.70.0210.03410.14
5.2.60.0150.04510.12
5.2.50.0200.03310.13
5.2.40.0140.03410.08
5.2.30.0180.0339.96
5.2.20.0150.03310.12
5.2.10.0160.0349.91
5.2.00.0150.0329.77
5.1.60.0140.0289.06
5.1.50.0220.0309.01
5.1.40.0140.0298.97
5.1.30.0190.0289.42
5.1.20.0110.0349.41
5.1.10.0080.0359.09
5.1.00.0160.0319.20
5.0.50.0090.0247.59
5.0.40.0130.0227.47
5.0.30.0070.0397.28
5.0.20.0100.0217.20
5.0.10.0050.0277.18
5.0.00.0080.0357.13
4.4.90.0040.0206.07
4.4.80.0030.0206.06
4.4.70.0080.0176.06
4.4.60.0080.0166.05
4.4.50.0060.0206.06
4.4.40.0080.0296.04
4.4.30.0100.0176.06
4.4.20.0070.0206.10
4.4.10.0100.0186.10
4.4.00.0110.0266.06
4.3.110.0070.0196.02
4.3.100.0080.0206.01
4.3.90.0050.0226.00
4.3.80.0080.0305.97
4.3.70.0060.0165.99
4.3.60.0050.0205.99
4.3.50.0060.0195.99
4.3.40.0060.0285.95
4.3.30.0030.0195.33
4.3.20.0030.0195.32
4.3.10.0040.0175.30
4.3.00.0080.0187.17

preferences:
39.99 ms | 400 KiB | 5 Q