3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class Foo { function test() { $this->staticTest(); } function test2() { self::staticTest(); } function test3() { static::staticTest(); } public static function staticTest() { echo 'jow'.PHP_EOL; } } class Bar extends Foo { } $foo = new Foo(); $foo->test(); $foo->test2(); $foo->test3(); $bar = new Bar(); $bar->test(); $bar->test2(); $bar->test3();

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.40.0110.00418.57
8.3.30.0070.00719.04
8.3.20.0050.00220.31
8.3.10.0040.00422.00
8.3.00.0080.00022.52
8.2.170.0110.00322.96
8.2.160.0110.00720.98
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00417.50
8.2.110.0060.00321.93
8.2.100.0080.00417.78
8.2.90.0000.00819.28
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0060.00318.22
8.2.30.0070.00318.11
8.2.20.0070.00017.55
8.2.10.0000.00819.41
8.2.00.0050.00517.51
8.1.270.0070.00023.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.75
8.1.230.0110.00319.14
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0040.00417.39
8.1.180.0030.00618.10
8.1.170.0000.00818.59
8.1.160.0000.00721.95
8.1.150.0040.00418.64
8.1.140.0030.00617.35
8.1.130.0000.00717.83
8.1.120.0040.00417.44
8.1.110.0020.00517.41
8.1.100.0040.00417.35
8.1.90.0030.00417.38
8.1.80.0000.00717.28
8.1.70.0000.00717.35
8.1.60.0000.00817.61
8.1.50.0040.00417.45
8.1.40.0000.00717.51
8.1.30.0070.00317.57
8.1.20.0000.00817.70
8.1.10.0020.00517.62
8.1.00.0000.00717.51
8.0.300.0000.00718.77
8.0.290.0040.00417.18
8.0.280.0050.00318.45
8.0.270.0000.00717.32
8.0.260.0030.00316.86
8.0.250.0030.00316.89
8.0.240.0030.00316.78
8.0.230.0000.00816.97
8.0.220.0040.00416.71
8.0.210.0000.00716.84
8.0.200.0000.00716.88
8.0.190.0000.00716.92
8.0.180.0070.00016.77
8.0.170.0000.00816.87
8.0.160.0030.00516.71
8.0.150.0030.00316.85
8.0.140.0040.00416.74
8.0.130.0060.00013.23
8.0.120.0040.00416.79
8.0.110.0000.00816.81
8.0.100.0050.00216.78
8.0.90.0050.00216.73
8.0.80.0130.00916.78
8.0.70.0040.00416.80
8.0.60.0000.00716.86
8.0.50.0070.00016.86
8.0.30.0140.00916.96
8.0.20.0090.01017.40
8.0.10.0040.00416.84
8.0.00.0070.01016.73
7.4.330.0000.00515.08
7.4.320.0070.00016.46
7.4.300.0000.00616.65
7.4.290.0030.00516.62
7.4.280.0000.00716.42
7.4.270.0030.00316.65
7.4.260.0000.00716.48
7.4.250.0050.00216.48
7.4.240.0000.00816.52
7.4.230.0030.00316.72
7.4.220.0070.01016.72
7.4.210.0070.00716.55
7.4.200.0030.00316.45
7.4.190.0030.00316.71
7.4.160.0160.00016.39
7.4.150.0130.00617.40
7.4.140.0120.01317.86
7.4.130.0180.01016.54
7.4.120.0110.00616.55
7.4.110.0100.00716.44
7.4.100.0040.01316.48
7.4.90.0110.00716.29
7.4.80.0160.01119.39
7.4.70.0030.01316.52
7.4.60.0040.01216.56
7.4.50.0000.00816.50
7.4.40.0130.00322.77
7.4.30.0080.00816.42
7.4.00.0060.01114.85
7.3.330.0000.00513.18
7.3.320.0030.00313.18
7.3.310.0000.00716.13
7.3.300.0050.00316.24
7.3.290.0140.00616.22
7.3.280.0120.00516.23
7.3.270.0080.01117.40
7.3.260.0100.00716.29
7.3.250.0090.01116.32
7.3.240.0090.00916.17
7.3.230.0150.00016.39
7.3.210.0110.00516.31
7.3.200.0070.01019.39
7.3.190.0100.01316.38
7.3.180.0060.01016.11
7.3.170.0110.00516.46
7.3.160.0070.01416.32
7.3.120.0060.01014.64
7.3.110.0080.00814.77
7.3.100.0050.01014.63
7.3.90.0060.00914.75
7.3.80.0050.00914.63
7.3.70.0050.00614.69
7.3.60.0060.00914.82
7.3.50.0030.00914.54
7.3.40.0070.00714.56
7.3.30.0040.00914.62
7.3.20.0040.00816.50
7.3.10.0030.01016.58
7.3.00.0080.00516.54
7.2.330.0120.00616.73
7.2.320.0180.00016.47
7.2.310.0070.01016.75
7.2.300.0100.01316.38
7.2.290.0080.00816.71
7.2.250.0050.01415.05
7.2.240.0070.00814.94
7.2.230.0050.00914.90
7.2.220.0070.00514.95
7.2.210.0050.01014.90
7.2.200.0040.01015.05
7.2.190.0020.01315.01
7.2.180.0060.01014.99
7.2.170.0070.00814.98
7.2.160.0030.00815.00
7.2.150.0040.01116.86
7.2.140.0100.00616.78
7.2.130.0050.01016.92
7.2.120.0050.01016.85
7.2.110.0070.00816.89
7.2.100.0080.00816.82
7.2.90.0100.00516.82
7.2.80.0050.00817.05
7.2.70.0070.00916.82
7.2.60.0070.00616.99
7.2.50.0110.00516.76
7.2.40.0000.01616.63
7.2.30.0030.01316.59
7.2.20.0080.00516.91
7.2.10.0080.00816.65
7.2.00.0060.01017.56
7.1.330.0060.00815.50
7.1.320.0070.00515.77
7.1.310.0070.00715.69
7.1.300.0010.01115.62
7.1.290.0040.00615.56
7.1.280.0030.01115.63
7.1.270.0070.00815.58
7.1.260.0080.00515.56
7.1.250.0070.00715.69
7.1.200.0110.00815.67
7.1.100.0110.00418.26
7.1.70.0000.01217.12
7.1.60.0090.01519.82
7.1.50.0110.01116.73
7.1.00.0000.08022.51
7.0.200.0000.00916.55
7.0.140.0030.07321.92
7.0.60.0130.07720.03
7.0.50.0130.06017.88
7.0.40.0070.06320.09
7.0.30.0230.07720.23
7.0.20.0330.04720.11
7.0.10.0100.06720.21
7.0.00.0100.08020.16
5.6.280.0030.07321.14
5.6.210.0070.03720.75
5.6.200.0130.08018.29
5.6.190.0030.06720.52
5.6.180.0400.04320.54
5.6.170.0270.04020.55
5.6.160.0030.05020.47
5.6.150.0200.06018.16
5.6.140.0030.04318.24
5.6.130.0030.08318.15
5.6.120.0030.07320.99
5.6.110.0100.08321.11
5.6.100.0130.07720.97
5.6.90.0070.06320.98
5.6.80.0030.05020.41
5.5.350.0170.09020.50
5.5.340.0000.04318.01
5.5.330.0070.08320.57
5.5.320.0470.07020.23
5.5.310.0230.04020.34
5.5.300.0000.08318.04
5.5.290.0070.04017.95
5.5.280.0030.08020.89
5.5.270.0100.08020.71
5.5.260.0030.08720.77
5.5.250.0070.03720.80
5.5.240.0070.06720.28
5.4.450.0200.05319.48
5.4.440.0870.05319.33
5.4.430.0100.05319.47
5.4.420.0030.07019.49
5.4.410.0000.06019.10
5.4.400.0130.05318.88
5.4.390.0070.05718.47
5.4.380.0100.05718.79
5.4.370.0330.04718.72
5.4.360.0200.04718.56
5.4.350.0270.05318.48
5.4.340.0230.05318.74
5.4.320.0080.03512.51
5.4.310.0030.04112.50
5.4.300.0090.03512.51
5.4.290.0070.03912.50
5.4.280.0030.03812.37
5.4.270.0050.03812.37
5.4.260.0060.03812.37
5.4.250.0080.03612.37
5.4.240.0080.03412.37
5.4.230.0050.03912.36
5.4.220.0050.04912.36
5.4.210.0060.03612.36
5.4.200.0060.04012.37
5.4.190.0060.03612.36
5.4.180.0050.03912.36
5.4.170.0070.03412.38
5.4.160.0070.04112.37
5.4.150.0070.04112.36
5.4.140.0050.03812.05
5.4.130.0060.03512.03
5.4.120.0040.03611.99
5.4.110.0020.04011.98
5.4.100.0060.03511.98
5.4.90.0080.03911.99
5.4.80.0080.03911.98
5.4.70.0040.03611.98
5.4.60.0050.03511.99
5.4.50.0070.03511.98
5.4.40.0040.03811.98
5.4.30.0080.03311.97
5.4.20.0050.03711.97
5.4.10.0060.03611.97
5.4.00.0060.03611.46
5.3.290.0070.03812.80
5.3.280.0070.03712.71
5.3.270.0070.03712.73
5.3.260.0060.03912.72
5.3.250.0060.03812.72
5.3.240.0050.03912.72
5.3.230.0060.03912.71
5.3.220.0060.03812.68
5.3.210.0030.04212.68
5.3.200.0060.03612.68
5.3.190.0060.03812.68
5.3.180.0110.03212.67
5.3.170.0130.04512.67
5.3.160.0070.03612.67
5.3.150.0050.03812.67
5.3.140.0090.03312.66
5.3.130.0050.04112.66
5.3.120.0030.04212.66
5.3.110.0050.03912.66
5.3.100.0050.03812.12
5.3.90.0050.03912.09
5.3.80.0080.03412.07
5.3.70.0050.03712.07
5.3.60.0060.04412.07
5.3.50.0090.03212.00
5.3.40.0060.03812.01
5.3.30.0040.03611.96
5.3.20.0030.03911.75
5.3.10.0060.03711.70
5.3.00.0140.04311.70
5.2.170.0050.0329.20
5.2.160.0050.0299.20
5.2.150.0040.0429.20
5.2.140.0040.0319.19
5.2.130.0040.0319.15
5.2.120.0050.0279.15
5.2.110.0050.0299.15
5.2.100.0020.0319.15
5.2.90.0030.0329.14
5.2.80.0020.0339.15
5.2.70.0040.0319.14
5.2.60.0070.0289.10
5.2.50.0060.0289.07
5.2.40.0070.0269.05
5.2.30.0050.0299.02
5.2.20.0060.0299.00
5.2.10.0020.0318.92
5.2.00.0060.0358.79
5.1.60.0060.0228.07
5.1.50.0030.0288.07
5.1.40.0050.0348.05
5.1.30.0060.0368.39
5.1.20.0020.0308.43
5.1.10.0050.0338.15
5.1.00.0050.0258.14
5.0.50.0000.0246.62
5.0.40.0040.0206.48
5.0.30.0040.0336.29
5.0.20.0030.0206.26
5.0.10.0040.0196.24
5.0.00.0020.0326.23
4.4.90.0020.0174.78
4.4.80.0020.0164.75
4.4.70.0020.0174.75
4.4.60.0050.0134.75
4.4.50.0030.0164.77
4.4.40.0010.0274.70
4.4.30.0020.0174.76
4.4.20.0010.0214.84
4.4.10.0030.0174.85
4.4.00.0030.0294.76
4.3.110.0030.0164.66
4.3.100.0020.0164.66
4.3.90.0040.0154.63
4.3.80.0040.0244.58
4.3.70.0060.0124.63
4.3.60.0020.0154.63
4.3.50.0010.0174.63
4.3.40.0040.0234.54
4.3.30.0040.0173.29
4.3.20.0030.0173.27
4.3.10.0040.0143.24
4.3.00.0070.0206.61

preferences:
43.65 ms | 400 KiB | 5 Q