3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public function baz() { return $this; } public static function foo() { return new (get_class(self)); } 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.0110.00418.56
8.3.50.0120.01021.94
8.3.40.0060.00918.80
8.3.30.0070.00719.08
8.3.20.0140.00020.39
8.3.10.0040.00420.48
8.3.00.0040.00419.50
8.2.180.0060.00916.50
8.2.170.0100.00722.96
8.2.160.0030.01020.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.13
8.2.110.0000.00922.25
8.2.100.0050.00518.88
8.1.280.0060.00925.92
8.1.270.0030.00623.84
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00918.48
8.1.230.0060.00318.58
5.4.320.0050.04512.52
5.4.310.0020.04212.52
5.4.300.0050.03712.52
5.4.290.0080.03512.52
5.4.280.0080.03212.41
5.4.270.0080.03312.41
5.4.260.0070.03612.41
5.4.250.0040.03812.41
5.4.240.0060.03512.41
5.4.230.0050.03812.40
5.4.220.0060.03512.40
5.4.210.0040.03712.40
5.4.200.0080.03612.40
5.4.190.0050.03612.39
5.4.180.0080.03312.40
5.4.170.0060.03412.41
5.4.160.0040.03612.40
5.4.150.0030.03712.39
5.4.140.0040.03812.09
5.4.130.0040.03612.07
5.4.120.0050.03512.03
5.4.110.0050.03512.03
5.4.100.0070.03412.03
5.4.90.0070.03412.03
5.4.80.0050.03712.03
5.4.70.0070.03412.03
5.4.60.0040.03612.03
5.4.50.0050.03512.02
5.4.40.0030.03712.02
5.4.30.0080.03212.01
5.4.20.0060.03412.01
5.4.10.0070.03312.01
5.4.00.0050.03611.50
5.3.290.0100.03512.80
5.3.280.0070.03612.71
5.3.270.0060.04012.73
5.3.260.0060.04112.72
5.3.250.0080.03412.72
5.3.240.0050.03712.72
5.3.230.0080.03412.71
5.3.220.0030.03812.68
5.3.210.0070.03712.68
5.3.200.0070.03412.68
5.3.190.0040.03912.67
5.3.180.0070.03612.67
5.3.170.0050.03712.67
5.3.160.0050.03612.68
5.3.150.0030.03912.67
5.3.140.0070.03512.66
5.3.130.0070.03912.65
5.3.120.0040.04212.66
5.3.110.0070.04012.65
5.3.100.0050.03812.13
5.3.90.0110.03212.11
5.3.80.0050.04812.10
5.3.70.0080.03912.10
5.3.60.0030.04012.09
5.3.50.0040.03812.03
5.3.40.0030.04012.03
5.3.30.0040.03611.98
5.3.20.0080.03311.77
5.3.10.0060.03611.73
5.3.00.0080.03911.72
5.2.170.0060.0429.23
5.2.160.0050.0349.22
5.2.150.0050.0399.22
5.2.140.0050.0329.22
5.2.130.0110.0249.18
5.2.120.0100.0269.18
5.2.110.0050.0309.18
5.2.100.0080.0289.18
5.2.90.0030.0349.18
5.2.80.0070.0399.18
5.2.70.0050.0379.18
5.2.60.0040.0329.13
5.2.50.0090.0269.10
5.2.40.0070.0279.07
5.2.30.0020.0329.05
5.2.20.0030.0309.04
5.2.10.0050.0278.95
5.2.00.0040.0328.81
5.1.60.0020.0268.09
5.1.50.0020.0268.09
5.1.40.0040.0248.07
5.1.30.0020.0288.42
5.1.20.0020.0288.44
5.1.10.0040.0288.17
5.1.00.0050.0248.17
5.0.50.0040.0196.65
5.0.40.0030.0196.50
5.0.30.0040.0306.31
5.0.20.0040.0196.29
5.0.10.0040.0186.26
5.0.00.0030.0316.25
4.4.90.0020.0164.78
4.4.80.0040.0144.75
4.4.70.0040.0214.75
4.4.60.0040.0194.75
4.4.50.0010.0184.77
4.4.40.0040.0274.71
4.4.30.0050.0214.76
4.4.20.0030.0164.85
4.4.10.0020.0164.85
4.4.00.0050.0224.76
4.3.110.0030.0194.67
4.3.100.0060.0114.66
4.3.90.0020.0154.64
4.3.80.0000.0274.58
4.3.70.0040.0134.63
4.3.60.0050.0124.63
4.3.50.0030.0164.63
4.3.40.0040.0244.54
4.3.30.0030.0153.30
4.3.20.0010.0163.28
4.3.10.0000.0173.23
4.3.00.0070.0206.99

preferences:
33.79 ms | 401 KiB | 5 Q