3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Agg { public static function init() { echo 'init'; } } class Foo { private $testString = 'Agg'; public function test() { $tmp = $this->testString; $this->testString::init(); $tmp::init(); } } $foo = new Foo(); $foo->test();

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.0120.00618.05
8.3.50.0080.01022.83
8.3.40.0090.00918.66
8.3.30.0070.01119.08
8.3.20.0000.00820.33
8.3.10.0030.00523.65
8.3.00.0080.00019.38
8.2.180.0150.00616.50
8.2.170.0140.00022.96
8.2.160.0070.01020.56
8.2.150.0040.00424.18
8.2.140.0060.01324.66
8.2.130.0040.00426.16
8.2.120.0040.00421.06
8.2.110.0070.00422.11
8.2.100.0030.00817.90
8.2.90.0040.00418.88
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00419.88
8.2.30.0040.00417.91
8.2.20.0080.00017.68
8.2.10.0070.00017.90
8.2.00.0040.00417.60
8.1.280.0040.01125.92
8.1.270.0080.00023.79
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00324.01
8.1.230.0070.00619.16
8.1.220.0080.00017.74
8.1.210.0000.00918.77
8.1.200.0080.00017.23
8.1.190.0040.00417.11
8.1.180.0000.00818.10
8.1.170.0000.00818.54
8.1.160.0040.00421.88
8.1.150.0000.00718.88
8.1.140.0000.00717.44
8.1.130.0000.00717.73
8.1.120.0000.00717.29
8.1.110.0000.00717.30
8.1.100.0040.00417.40
8.1.90.0030.00617.38
8.1.80.0000.00717.42
8.1.70.0030.00317.41
8.1.60.0040.00417.58
8.1.50.0040.00417.59
8.1.40.0080.00017.46
8.1.30.0000.00817.55
8.1.20.0040.00417.61
8.1.10.0000.00817.61
8.1.00.0040.00417.52
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0040.00418.35
8.0.270.0030.00317.32
8.0.260.0000.00717.29
8.0.250.0030.00316.83
8.0.240.0000.00716.75
8.0.230.0000.00716.82
8.0.220.0000.00716.74
8.0.210.0030.00316.71
8.0.200.0000.00716.87
8.0.190.0000.00916.85
8.0.180.0040.00416.91
8.0.170.0040.00416.69
8.0.160.0080.00016.84
8.0.150.0030.00316.71
8.0.140.0040.00416.83
8.0.130.0030.00313.21
8.0.120.0040.00416.80
8.0.110.0000.00716.76
8.0.100.0040.00416.82
8.0.90.0030.00316.70
8.0.80.0070.00716.84
8.0.70.0070.00016.88
8.0.60.0050.00216.79
8.0.50.0070.00016.74
8.0.30.0160.01017.09
8.0.20.0110.00817.40
8.0.10.0030.00517.00
8.0.00.0130.00816.81
7.4.330.0080.00015.00
7.4.320.0030.00316.57
7.4.300.0000.00616.52
7.4.290.0030.00316.46
7.4.280.0060.00316.49
7.4.270.0040.00416.59
7.4.260.0050.00016.59
7.4.250.0040.00416.55
7.4.240.0000.00716.62
7.4.230.0040.00416.53
7.4.220.0150.00616.68
7.4.210.0060.01316.71
7.4.200.0000.00716.67
7.4.160.0100.00616.32
7.4.150.0110.00617.40
7.4.140.0090.01217.86
7.4.130.0060.01016.40
7.4.120.0060.01116.51
7.4.110.0080.00816.48
7.4.100.0090.00916.37
7.4.90.0060.01216.41
7.4.80.0120.00919.39
7.4.70.0060.01916.50
7.4.60.0090.01516.57
7.4.50.0040.00416.61
7.4.40.0040.01216.19
7.4.30.0040.01216.68
7.4.00.0060.01214.91
7.3.330.0000.00613.14
7.3.320.0030.00313.24
7.3.310.0040.00316.27
7.3.300.0030.00316.32
7.3.290.0060.00816.27
7.3.280.0060.01416.26
7.3.270.0100.00717.40
7.3.260.0140.00316.36
7.3.250.0080.00816.49
7.3.240.0060.01016.52
7.3.230.0150.00716.39
7.3.210.0140.00816.46
7.3.200.0080.00819.39
7.3.190.0130.00316.48
7.3.180.0080.00816.36
7.3.170.0090.00616.48
7.3.160.0100.00516.59
7.3.120.0080.00814.52
7.3.110.0110.00714.84
7.3.100.0070.00314.62
7.3.90.0060.00314.73
7.3.80.0070.00714.45
7.3.70.0030.00914.77
7.3.60.0050.00414.91
7.3.50.0090.00614.80
7.3.40.0030.01014.88
7.3.30.0000.00814.90
7.3.20.0030.00716.58
7.3.10.0120.00716.33
7.3.00.0110.00516.29
7.2.330.0150.00316.67
7.2.320.0100.00716.39
7.2.310.0100.00716.46
7.2.300.0060.00916.62
7.2.290.0110.00516.42
7.2.250.0150.00315.27
7.2.240.0040.01114.53
7.2.230.0100.00715.07
7.2.220.0030.01015.30
7.2.210.0040.01414.94
7.2.200.0000.01415.18
7.2.190.0000.01515.03
7.2.180.0060.00914.90
7.2.170.0130.00314.96
7.2.130.0150.00816.47
7.2.120.0170.00716.37
7.2.110.0120.00716.24
7.2.100.0090.01116.13
7.2.90.0190.00416.63
7.2.80.0060.01216.46
7.2.70.0100.01015.82
7.2.60.0100.00616.59
7.2.50.0150.00816.27
7.2.40.0130.00616.33
7.2.30.0180.01216.52
7.2.20.0200.00616.51
7.2.10.0110.01116.63
7.2.00.0070.01218.00
7.1.330.0100.00715.47
7.1.320.0060.00615.74
7.1.310.0090.00615.63
7.1.300.0080.00415.57
7.1.290.0060.00615.59
7.1.280.0000.00915.49
7.1.270.0060.00315.63
7.1.260.0030.01315.62
7.1.250.0070.01415.49
7.1.200.0070.00715.53
7.1.100.0050.00518.13
7.1.70.0000.00817.07
7.1.60.0180.00719.40
7.1.50.0140.01016.92
7.1.00.0070.08322.30
7.0.200.0040.01114.89
7.0.140.0030.07322.09
7.0.60.0030.04019.91
7.0.50.0030.08317.86
7.0.40.0030.04319.96
7.0.30.0270.04020.17
7.0.20.0330.08020.06
7.0.10.0030.06020.20
7.0.00.0130.04020.15
5.6.280.0030.07021.00
5.6.210.0000.08020.78
5.6.200.0000.04318.34
5.6.190.0130.07320.41
5.6.180.0300.07020.53
5.6.170.0230.08020.54
5.6.160.0130.04720.43
5.6.150.0100.08318.23
5.6.140.0030.08718.15
5.6.130.0070.04018.16
5.6.120.0100.08721.12
5.6.110.0130.07720.99
5.6.100.0070.08720.98
5.6.90.0270.06020.97
5.6.80.0070.04720.46
5.5.350.0130.07020.39
5.5.340.0070.08018.07
5.5.330.0070.06720.26
5.5.320.0230.04320.27
5.5.310.0300.06720.37
5.5.300.0000.04317.92
5.5.290.0130.07717.94
5.5.280.0030.04020.87
5.5.270.0170.07320.89
5.5.260.0170.04720.88
5.5.250.0170.07320.50
5.5.240.0100.06020.24
5.4.450.1200.06019.20
5.4.440.0830.05319.50
5.4.430.0130.05019.52
5.4.420.0830.05019.50
5.4.410.0430.05719.48
5.4.400.0770.05319.18
5.4.390.0770.05719.32
5.4.380.0100.06018.74
5.4.370.0070.05018.71
5.4.360.0100.04318.55
5.4.350.0100.04512.04
5.4.340.0110.05612.03
5.4.320.0090.04412.52
5.4.310.0040.04912.51
5.4.300.0050.04412.52
5.4.290.0070.04212.51
5.4.280.0110.03612.41
5.4.270.0090.03212.41
5.4.260.0060.03812.41
5.4.250.0070.03512.41
5.4.240.0070.03312.41
5.4.230.0070.04112.40
5.4.220.0070.03512.40
5.4.210.0090.03312.40
5.4.200.0090.04212.40
5.4.190.0080.03912.39
5.4.180.0080.04212.40
5.4.170.0120.04212.41
5.4.160.0050.03612.40
5.4.150.0060.03512.40
5.4.140.0070.03512.09
5.4.130.0070.03412.07
5.4.120.0020.03912.04
5.4.110.0050.03612.03
5.4.100.0040.03712.04
5.4.90.0050.03712.03
5.4.80.0080.03412.04
5.4.70.0070.03412.03
5.4.60.0070.03312.03
5.4.50.0040.03712.03
5.4.40.0050.03712.02
5.4.30.0060.03612.01
5.4.20.0060.03412.00
5.4.10.0070.03312.01
5.4.00.0050.03811.50
5.3.290.0060.03912.80
5.3.280.0060.03712.71
5.3.270.0090.03612.73
5.3.260.0030.04212.72
5.3.250.0080.03512.72
5.3.240.0060.03712.71
5.3.230.0060.03712.71
5.3.220.0050.03812.68
5.3.210.0070.03812.68
5.3.200.0030.03912.68
5.3.190.0050.03912.68
5.3.180.0070.03612.68
5.3.170.0090.03312.66
5.3.160.0050.03712.67
5.3.150.0060.03712.67
5.3.140.0040.03912.66
5.3.130.0070.03812.66
5.3.120.0050.04012.66
5.3.110.0060.03912.66
5.3.100.0050.03812.13
5.3.90.0080.03512.11
5.3.80.0050.03712.10
5.3.70.0080.03412.10
5.3.60.0080.03512.08
5.3.50.0080.03412.03
5.3.40.0040.03712.03
5.3.30.0060.04111.99
5.3.20.0060.03411.77
5.3.10.0060.03311.73
5.3.00.0040.03811.72
5.2.170.0090.0339.23
5.2.160.0040.0379.22
5.2.150.0090.0289.22
5.2.140.0050.0299.22
5.2.130.0030.0369.18
5.2.120.0050.0439.18
5.2.110.0080.0329.19
5.2.100.0030.0349.18
5.2.90.0050.0289.18
5.2.80.0060.0299.18
5.2.70.0060.0289.18
5.2.60.0040.0299.13
5.2.50.0050.0299.09
5.2.40.0060.0269.08
5.2.30.0060.0279.05
5.2.20.0040.0299.04
5.2.10.0070.0268.95
5.2.00.0020.0328.80
5.1.60.0050.0238.10
5.1.50.0040.0258.09
5.1.40.0050.0238.07
5.1.30.0020.0288.42
5.1.20.0060.0248.44
5.1.10.0060.0238.17
5.1.00.0040.0248.17
5.0.50.0030.0276.64
5.0.40.0070.0166.51
5.0.30.0020.0336.32
5.0.20.0030.0206.29
5.0.10.0030.0206.26
5.0.00.0020.0326.25
4.4.90.0010.0174.78
4.4.80.0030.0144.76
4.4.70.0010.0164.75
4.4.60.0010.0164.76
4.4.50.0010.0174.77
4.4.40.0040.0234.71
4.4.30.0030.0154.76
4.4.20.0030.0164.84
4.4.10.0030.0154.84
4.4.00.0040.0244.76
4.3.110.0030.0154.67
4.3.100.0030.0144.66
4.3.90.0050.0124.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0010.0164.63
4.3.50.0030.0164.63
4.3.40.0020.0254.54
4.3.30.0020.0173.30
4.3.20.0010.0173.28
4.3.10.0000.0173.24
4.3.00.0070.0238.42

preferences:
42.91 ms | 401 KiB | 5 Q