3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Thing { public function stuff() { echo $this->foo() . "\n"; echo static::foo() . "\n"; echo self::foo() . "\n"; } public static function foo() { return 'hello'; } } class Thing2 extends Thing { public static function foo() { return 'noooo'; } } $foo = new Thing2(); $foo->stuff();

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.00416.38
8.3.50.0140.00421.99
8.3.40.0150.00618.63
8.3.30.0100.00718.81
8.3.20.0030.00520.46
8.3.10.0100.00323.48
8.3.00.0040.00418.84
8.2.180.0110.00418.41
8.2.170.0130.00622.96
8.2.160.0110.00420.39
8.2.150.0040.00424.18
8.2.140.0180.00024.66
8.2.130.0080.00026.16
8.2.120.0100.00020.80
8.2.110.0040.00422.33
8.2.100.0050.00517.91
8.2.90.0050.00319.21
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0030.00517.93
8.2.50.0000.00818.07
8.2.40.0080.00019.94
8.2.30.0040.00418.13
8.2.20.0040.00417.68
8.2.10.0000.00717.88
8.2.00.0000.00717.67
8.1.280.0070.01425.92
8.1.270.0000.00923.84
8.1.260.0080.00026.35
8.1.250.0170.00028.09
8.1.240.0030.00623.84
8.1.230.0040.00719.23
8.1.220.0030.00517.79
8.1.210.0000.00818.77
8.1.200.0110.00017.35
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0030.00718.27
8.1.160.0040.00422.00
8.1.150.0030.00518.64
8.1.140.0000.00717.46
8.1.130.0000.00817.70
8.1.120.0000.00717.51
8.1.110.0040.00417.40
8.1.100.0050.00317.35
8.1.90.0040.00417.44
8.1.80.0040.00417.49
8.1.70.0000.00717.43
8.1.60.0040.00417.56
8.1.50.0060.00317.41
8.1.40.0000.00917.58
8.1.30.0050.00317.68
8.1.20.0040.00417.58
8.1.10.0040.00417.50
8.1.00.0040.00417.52
8.0.300.0080.00018.77
8.0.290.0040.00417.05
8.0.280.0030.00318.48
8.0.270.0030.00317.16
8.0.260.0000.00817.17
8.0.250.0080.00016.98
8.0.240.0080.00016.94
8.0.230.0040.00416.96
8.0.220.0000.00716.82
8.0.210.0030.00416.77
8.0.200.0000.00716.79
8.0.190.0000.00717.05
8.0.180.0070.00016.85
8.0.170.0050.00316.85
8.0.160.0040.00416.91
8.0.150.0040.00316.83
8.0.140.0070.00016.85
8.0.130.0000.00613.32
8.0.120.0000.00816.75
8.0.110.0040.00416.85
8.0.100.0040.00416.88
8.0.90.0040.00416.75
8.0.80.0060.00916.87
8.0.70.0050.00316.76
8.0.60.0000.00716.63
8.0.50.0030.00516.77
8.0.30.0110.01116.96
8.0.20.0080.01017.41
8.0.10.0030.00616.77
8.0.00.0110.00816.73
7.4.330.0000.00515.08
7.4.320.0030.00316.52
7.4.300.0060.00016.36
7.4.290.0030.00316.53
7.4.280.0070.00016.52
7.4.270.0040.00316.46
7.4.260.0000.00716.59
7.4.250.0000.00816.54
7.4.240.0020.00516.43
7.4.230.0070.00016.42
7.4.220.0060.01216.66
7.4.210.0100.00816.61
7.4.200.0050.00216.68
7.4.190.0000.00716.55
7.4.160.0070.01116.54
7.4.150.0170.00017.40
7.4.140.0090.00817.86
7.4.130.0130.00516.60
7.4.120.0080.01116.57
7.4.110.0070.01016.49
7.4.100.0100.00716.56
7.4.90.0110.00716.38
7.4.80.0150.00719.39
7.4.70.0040.01216.40
7.4.60.0100.01316.62
7.4.50.0050.00316.27
7.4.40.0200.00016.40
7.4.30.0120.00916.44
7.4.00.0110.00714.88
7.3.330.0070.00013.28
7.3.320.0050.00013.25
7.3.310.0030.00316.30
7.3.300.0030.00316.16
7.3.290.0140.00716.31
7.3.280.0100.00716.27
7.3.270.0130.00317.40
7.3.260.0110.00816.32
7.3.250.0110.00816.31
7.3.240.0070.01016.21
7.3.230.0060.01016.39
7.3.210.0060.01316.25
7.3.200.0110.00719.39
7.3.190.0070.01416.44
7.3.180.0080.00816.44
7.3.170.0110.00416.27
7.3.160.0080.00816.56
7.3.120.0070.00814.76
7.3.110.0070.01114.81
7.3.100.0120.00614.76
7.3.90.0040.00714.76
7.3.80.0070.01014.80
7.3.70.0090.00614.71
7.3.60.0080.00614.57
7.3.50.0100.00314.95
7.3.40.0080.00814.78
7.3.30.0060.00314.83
7.3.20.0080.00816.43
7.3.10.0110.00416.71
7.3.00.0030.01416.41
7.2.330.0120.00616.33
7.2.320.0090.00916.38
7.2.310.0170.00716.81
7.2.300.0030.01316.63
7.2.290.0100.00716.70
7.2.250.0090.00914.48
7.2.240.0070.01414.88
7.2.230.0090.00914.58
7.2.220.0040.00814.84
7.2.210.0060.00914.89
7.2.200.0070.01114.90
7.2.190.0070.00314.77
7.2.180.0000.01814.96
7.2.170.0040.01114.78
7.1.330.0090.00615.52
7.1.320.0000.00915.66
7.1.310.0030.01015.75
7.1.300.0090.00315.70
7.1.290.0130.00315.61
7.1.280.0000.01315.84
7.1.270.0080.00815.51
7.1.260.0090.00615.60
7.1.100.0060.00617.75
7.1.70.0000.00817.04
7.1.60.0140.01017.12
7.1.50.0140.01016.89
7.1.00.0100.07022.40
7.0.200.0060.00916.84
7.0.140.0030.07322.16
7.0.60.0030.07019.86
7.0.50.0100.07017.88
7.0.40.0130.07720.20
7.0.30.0200.08320.23
7.0.20.0200.07020.07
7.0.10.0070.08320.15
7.0.00.0100.07320.33
5.6.280.0130.06721.07
5.6.210.0100.07020.57
5.6.200.0170.07318.15
5.6.190.0070.05020.63
5.6.180.0300.05020.52
5.6.170.0170.06020.57
5.6.160.0170.06320.55
5.6.150.0070.03718.25
5.6.140.0070.08018.17
5.6.130.0070.08018.17
5.6.120.0130.05021.15
5.6.110.0070.07721.02
5.6.100.0170.07320.98
5.6.90.0100.07721.11
5.6.80.0170.07320.51
5.5.350.4070.04320.53
5.5.340.0130.07317.99
5.5.330.0130.07320.27
5.5.320.0330.07020.33
5.5.310.0300.04320.19
5.5.300.0070.05317.98
5.5.290.0070.08017.98
5.5.280.0200.06020.66
5.5.270.0030.08720.77
5.5.260.0130.06020.88
5.5.250.0030.04020.67
5.5.240.0130.03720.26
5.4.450.0230.04719.31
5.4.440.0230.04319.63
5.4.430.0130.06319.27
5.4.420.0200.07719.41
5.4.410.0170.04719.50
5.4.400.0130.04719.08
5.4.390.0230.07019.22
5.4.380.0070.06019.09
5.4.370.0200.05719.08
5.4.360.0230.03319.22
5.4.350.0270.07018.84
5.4.340.0230.06319.09
5.4.320.0100.04719.13
5.4.310.0130.04019.09
5.4.300.0270.07019.09
5.4.290.0130.06018.84
5.4.280.0270.04019.19
5.4.270.0170.05018.82
5.4.260.0270.07319.09
5.4.250.0330.04018.86
5.4.240.0270.06719.13
5.4.230.0230.04018.84
5.4.220.0170.08018.83
5.4.210.0270.06018.87
5.4.200.0230.05719.21
5.4.190.0200.04019.08
5.4.180.0200.04018.94
5.4.170.0330.06719.13
5.4.160.0170.04719.06
5.4.150.0200.04719.04
5.4.140.0230.05316.40
5.4.130.0170.06016.50
5.4.120.0170.04316.36
5.4.110.0100.04316.55
5.4.100.0200.06316.59
5.4.90.0100.04016.50
5.4.80.0130.03316.61
5.4.70.0070.04716.59
5.4.60.0170.06316.59
5.4.50.0200.04016.17
5.4.40.0200.06316.55
5.4.30.0170.07016.42
5.4.20.0230.03016.43
5.4.10.0230.06016.48
5.4.00.0200.06715.93
5.3.290.0200.08014.64
5.3.280.0200.07014.74
5.3.270.0200.06014.68
5.3.260.0200.06314.52
5.3.250.0130.04714.58
5.3.240.0270.03714.50
5.3.230.0200.08014.48
5.3.220.0100.04714.71
5.3.210.0100.04714.57
5.3.200.0100.04014.57
5.3.190.0170.04714.64
5.3.180.0130.07714.71
5.3.170.0100.05314.59
5.3.160.0170.07014.54
5.3.150.0200.04314.54
5.3.140.0170.03714.63
5.3.130.0200.06314.77
5.3.120.0200.07314.66
5.3.110.0270.05014.54
5.3.100.0230.06314.12
5.3.90.0200.06714.03
5.3.80.0230.03714.10
5.3.70.0200.04014.11
5.3.60.0270.05013.98
5.3.50.0270.06314.10
5.3.40.0100.05013.96
5.3.30.0170.06714.02
5.3.20.0070.04013.84
5.3.10.0070.04713.61
5.3.00.0170.04713.65
5.2.170.0200.03712.53
5.2.160.0130.03712.53
5.2.150.0200.05312.53
5.2.140.0200.05712.53
5.2.130.0030.04712.53
5.2.120.0200.02712.53
5.2.110.0100.04012.53
5.2.100.0130.03712.53
5.2.90.0130.04312.53
5.2.80.0100.03312.53
5.2.70.0200.03012.53
5.2.60.0100.03012.53
5.2.50.0100.03012.53
5.2.40.0170.02312.53
5.2.30.0270.05012.53
5.2.20.0170.04712.53
5.2.10.0200.05012.53
5.2.00.0070.03312.53
5.1.60.0130.04012.53
5.1.50.0170.02012.53
5.1.40.0130.02312.53
5.1.30.0200.05312.53
5.1.20.0230.02712.53
5.1.10.0170.03312.53
5.1.00.0130.05312.53
5.0.50.0070.03712.53
5.0.40.0100.03312.53
5.0.30.0100.04012.53
5.0.20.0100.02712.53
5.0.10.0100.02312.53
5.0.00.0070.04012.53
4.4.90.0100.01312.53
4.4.80.0030.01712.53
4.4.70.0030.02312.53
4.4.60.0070.03712.53
4.4.50.0070.03712.53
4.4.40.0100.03312.53
4.4.30.0070.03712.53
4.4.20.0070.02012.53
4.4.10.0070.02712.53
4.4.00.0130.04012.53
4.3.110.0070.03012.53
4.3.100.0030.01712.53
4.3.90.0070.01712.53
4.3.80.0070.05312.53
4.3.70.0130.02712.53
4.3.60.0070.02312.53
4.3.50.0100.01712.53
4.3.40.0070.04312.53
4.3.30.0000.02012.53
4.3.20.0070.03712.53
4.3.10.0070.01312.53
4.3.00.0000.02312.53

preferences:
38 ms | 401 KiB | 5 Q