3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function Foo() { var_dump(self::class); } } var_dump(Foo::class); $foo = new Foo; var_dump($foo::class);

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.13
8.3.50.0100.01021.04
8.3.40.0060.01518.73
8.3.30.0070.00719.10
8.3.20.0070.00020.04
8.3.10.0000.00823.69
8.3.00.0090.00019.00
8.2.180.0160.00016.59
8.2.170.0120.00322.96
8.2.160.0120.00318.84
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.23
8.2.110.0030.00622.31
8.2.100.0070.00318.80
8.1.280.0120.00825.92
8.1.270.0050.00322.25
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0070.00318.45
8.1.230.0090.00018.57
5.4.340.0040.04512.03
5.4.320.0110.03312.52
5.4.310.0080.03612.51
5.4.300.0060.03812.52
5.4.290.0050.04412.52
5.4.280.0050.05012.41
5.4.270.0080.04112.41
5.4.260.0100.04512.41
5.4.250.0080.04012.41
5.4.240.0070.03512.41
5.4.230.0050.03912.40
5.4.220.0040.03712.40
5.4.210.0050.04512.40
5.4.200.0070.03612.40
5.4.190.0120.03112.39
5.4.180.0070.04812.39
5.4.170.0090.04212.41
5.4.160.0090.03612.40
5.4.150.0050.03912.40
5.4.140.0060.03612.09
5.4.130.0050.04212.07
5.4.120.0090.04712.03
5.4.110.0080.04812.03
5.4.100.0090.03912.03
5.4.90.0040.03812.03
5.4.80.0050.03712.03
5.4.70.0070.03412.03
5.4.60.0060.03512.02
5.4.50.0070.03312.02
5.4.40.0060.03512.02
5.4.30.0040.03812.01
5.4.20.0040.03612.01
5.4.10.0040.03612.00
5.4.00.0060.03511.50
5.3.290.0070.03812.80
5.3.280.0060.04012.71
5.3.270.0030.04212.73
5.3.260.0030.04212.72
5.3.250.0050.03812.71
5.3.240.0070.03512.72
5.3.230.0090.03512.70
5.3.220.0070.03612.68
5.3.210.0040.04012.68
5.3.200.0040.03812.68
5.3.190.0080.03712.67
5.3.180.0060.04212.67
5.3.170.0080.03312.67
5.3.160.0100.03512.67
5.3.150.0070.04012.68
5.3.140.0100.04012.66
5.3.130.0100.05412.66
5.3.120.0110.03412.66
5.3.110.0130.04912.66
5.3.100.0090.04712.12
5.3.90.0070.04012.11
5.3.80.0070.03812.09
5.3.70.0060.03612.09
5.3.60.0040.04012.08
5.3.50.0090.03212.02
5.3.40.0050.03712.03
5.3.30.0040.03611.98
5.3.20.0060.03611.77
5.3.10.0050.03811.73
5.3.00.0050.04111.72
5.2.170.0060.0289.22
5.2.160.0050.0319.22
5.2.150.0040.0349.22
5.2.140.0030.0389.21
5.2.130.0090.0409.18
5.2.120.0060.0399.18
5.2.110.0040.0389.18
5.2.100.0060.0329.18
5.2.90.0070.0279.18
5.2.80.0060.0319.17
5.2.70.0070.0329.17
5.2.60.0070.0359.13
5.2.50.0080.0299.10
5.2.40.0040.0359.08
5.2.30.0040.0379.05
5.2.20.0070.0279.04
5.2.10.0070.0258.95
5.2.00.0080.0268.80
5.1.60.0010.0278.09
5.1.50.0050.0318.09
5.1.40.0070.0348.07
5.1.30.0060.0358.42
5.1.20.0090.0358.44
5.1.10.0080.0318.17
5.1.00.0080.0328.16
5.0.50.0060.0266.64
5.0.40.0070.0246.50
5.0.30.0070.0386.31
5.0.20.0040.0246.28
5.0.10.0040.0206.26
5.0.00.0030.0326.25
4.4.90.0060.0174.78
4.4.80.0050.0164.75
4.4.70.0030.0164.76
4.4.60.0020.0164.75
4.4.50.0010.0214.77
4.4.40.0060.0254.71
4.4.30.0040.0194.75
4.4.20.0040.0184.84
4.4.10.0030.0214.84
4.4.00.0040.0334.76
4.3.110.0070.0184.67
4.3.100.0050.0214.66
4.3.90.0040.0194.64
4.3.80.0020.0324.58
4.3.70.0050.0144.63
4.3.60.0030.0154.63
4.3.50.0030.0174.63
4.3.40.0050.0294.54
4.3.30.0060.0173.30
4.3.20.0010.0223.28
4.3.10.0020.0203.23
4.3.00.0130.0237.19

preferences:
38.03 ms | 401 KiB | 5 Q