3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WEE { private function wewe(){ echo 'Parent', PHP_EOL; } public static function test_static () { static::wewe(); } public static function test_self () { self::wewe(); } } class child extends WEE { private function wewe(){ echo 'child', PHP_EOL; } }

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.0070.01021.07
8.3.40.0070.00718.53
8.3.30.0150.00618.64
8.3.20.0040.00420.30
8.3.10.0070.00023.61
8.3.00.0050.00323.48
8.2.180.0040.01116.63
8.2.170.0100.01022.96
8.2.160.0120.00321.92
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00417.38
8.2.110.0030.00621.04
8.2.100.0070.00417.66
8.2.90.0000.00917.66
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0040.00417.68
8.2.50.0000.00818.07
8.2.40.0080.00021.26
8.2.30.0000.00819.76
8.2.20.0040.00417.65
8.2.10.0040.00417.88
8.2.00.0000.00717.86
8.1.280.0140.00325.92
8.1.270.0110.00324.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00422.53
8.1.230.0040.00721.03
8.1.220.0030.00617.74
8.1.210.0040.00418.85
8.1.200.0040.00717.10
8.1.190.0040.00417.10
8.1.180.0030.00518.10
8.1.170.0040.00418.50
8.1.160.0050.00323.60
8.1.150.0050.00318.62
8.1.140.0050.00317.37
8.1.130.0070.00017.50
8.1.120.0040.00417.23
8.1.110.0070.00017.33
8.1.100.0070.00017.36
8.1.90.0000.00717.18
8.1.80.0040.00417.35
8.1.70.0070.00017.19
8.1.60.0030.00517.33
8.1.50.0040.00417.30
8.1.40.0070.00017.23
8.1.30.0040.00417.40
8.1.20.0000.00817.42
8.1.10.0000.00717.35
8.1.00.0050.00217.32
8.0.300.0070.00019.84
8.0.290.0050.00216.63
8.0.280.0030.00318.18
8.0.270.0030.00317.13
8.0.260.0000.00617.12
8.0.250.0070.00016.70
8.0.240.0030.00316.84
8.0.230.0070.00016.72
8.0.220.0020.00516.75
8.0.210.0000.00816.78
8.0.200.0000.00716.78
8.0.190.0080.00016.66
8.0.180.0070.00016.77
8.0.170.0040.00416.70
8.0.160.0080.00016.87
8.0.150.0030.00316.59
8.0.140.0090.00016.60
8.0.130.0030.00313.20
8.0.120.0040.00416.71
8.0.110.0000.00816.65
8.0.100.0040.00416.70
8.0.90.0000.00716.69
8.0.80.0120.00916.82
8.0.70.0000.00816.71
8.0.60.0000.00816.79
8.0.50.0050.00216.70
8.0.30.0090.00917.12
8.0.20.0120.00817.40
8.0.10.0040.00416.77
8.0.00.0090.00716.57
7.4.330.0020.00215.16
7.4.320.0000.00616.46
7.4.300.0060.00016.42
7.4.290.0000.00716.27
7.4.280.0050.00316.35
7.4.270.0030.00316.34
7.4.260.0030.00316.30
7.4.250.0000.00816.36
7.4.240.0030.00316.37
7.4.230.0000.00716.56
7.4.220.0080.00816.41
7.4.210.0110.00316.57
7.4.200.0000.00716.56
7.4.160.0060.00916.45
7.4.150.0100.00717.40
7.4.140.0140.00717.86
7.4.130.0110.00716.35
7.4.120.0100.00916.32
7.4.110.0060.01216.40
7.4.100.0060.01216.23
7.4.90.0060.01216.36
7.4.80.0120.01219.39
7.4.70.0040.01416.56
7.4.60.0080.01116.33
7.4.50.0000.00516.49
7.4.40.0140.00316.38
7.4.30.0180.00316.53
7.4.00.0000.01414.88
7.3.330.0030.00313.03
7.3.320.0060.00013.17
7.3.310.0070.00016.05
7.3.300.0000.00616.21
7.3.290.0100.00816.17
7.3.280.0110.00716.17
7.3.270.0070.01117.40
7.3.260.0030.01316.40
7.3.250.0130.00616.18
7.3.240.0080.00816.32
7.3.230.0090.01516.39
7.3.210.0040.01216.32
7.3.200.0080.00816.29
7.3.190.0130.00316.20
7.3.180.0060.01016.07
7.3.170.0070.01016.27
7.3.160.0060.01016.30
7.2.330.0120.00816.28
7.2.320.0150.00616.43
7.2.310.0140.00416.25
7.2.300.0090.00616.14
7.2.290.0070.01616.50
7.2.00.0030.01019.29
7.1.100.0060.00617.94
7.1.70.0090.00316.92
7.1.60.0130.01019.18
7.1.50.0100.01316.61
7.1.00.0070.07322.38
7.0.200.0000.00816.64
7.0.60.0130.07719.81
7.0.50.0030.05017.73
7.0.40.0030.07720.30
7.0.30.0270.08020.09
7.0.20.0270.08020.24
7.0.10.0170.08020.07
7.0.00.0030.05720.24
5.6.280.0070.06021.16
5.6.210.0100.05020.52
5.6.200.0070.04718.27
5.6.190.0130.07720.52
5.6.180.0400.06020.33
5.6.170.0230.08020.54
5.6.160.0030.08720.54
5.6.150.0030.08318.21
5.6.140.0130.07718.17
5.6.130.0030.05018.17
5.6.120.0030.04321.00
5.6.110.0070.07021.12
5.6.100.0130.06721.12
5.6.90.0100.04020.95
5.6.80.0100.08320.39
5.5.350.0300.07320.50
5.5.340.0100.03317.95
5.5.330.0000.09320.13
5.5.320.0430.03320.36
5.5.310.0330.05020.32
5.5.300.0070.08018.07
5.5.290.0130.08017.97
5.5.280.0130.07020.97
5.5.270.0130.03320.75
5.5.260.0130.07320.86
5.5.250.0000.04320.66
5.5.240.0000.08720.37
5.4.450.0130.06319.56
5.4.440.0200.05719.55
5.4.430.0300.06719.50
5.4.420.0300.05319.45
5.4.410.0270.04319.45
5.4.400.0130.05319.24
5.4.390.0200.05018.95
5.4.380.0170.05319.12
5.4.370.0200.05319.23
5.4.360.0300.05019.23
5.4.350.0300.06019.16
5.4.340.0100.06718.96
5.4.320.0170.05719.02
5.4.310.0270.04019.16
5.4.300.0070.06318.82
5.4.290.0170.05318.85
5.4.280.0130.05719.02
5.4.270.0170.05719.01
5.4.260.0270.05319.12
5.4.250.0200.06019.32
5.4.240.0170.05718.85
5.4.230.0170.05719.25
5.4.220.0230.04719.31
5.4.210.0170.05319.08
5.4.200.0200.05316.92
5.4.190.0170.05319.12
5.4.180.0170.05319.30
5.4.170.0130.05719.05
5.4.160.0170.05019.07
5.4.150.0130.05319.29
5.4.140.0200.04316.63
5.4.130.0200.04316.62
5.4.120.0130.05016.43
5.4.110.0130.05016.45
5.4.100.0130.05316.55
5.4.90.0100.06016.60
5.4.80.0170.04716.30
5.4.70.0070.06016.43
5.4.60.0170.04716.48
5.4.50.0100.05316.30
5.4.40.0100.05716.36
5.4.30.0100.05016.35
5.4.20.0270.03716.29
5.4.10.0170.04716.53
5.4.00.0170.04715.78
5.3.290.0100.06014.56
5.3.280.0170.05014.52
5.3.270.0170.05014.45
5.3.260.0100.05714.66
5.3.250.0300.04014.45
5.3.240.0200.04714.84
5.3.230.0170.05714.70
5.3.220.0130.05314.62
5.3.210.0070.06714.65
5.3.200.0130.05014.63
5.3.190.0130.05314.71
5.3.180.0130.05314.62
5.3.170.0130.05714.65
5.3.160.0170.05014.45
5.3.150.0170.05014.56
5.3.140.0170.05014.61
5.3.130.0100.06014.54
5.3.120.0270.05314.52
5.3.110.0100.05714.40
5.3.100.0170.06014.09
5.3.90.0200.05713.93
5.3.80.0130.05314.17
5.3.70.0170.05313.92
5.3.60.0230.04714.01
5.3.50.0130.06013.85
5.3.40.0170.05313.88
5.3.30.0370.05313.92
5.3.20.0130.05313.70
5.3.10.0270.04013.59
5.3.00.0270.06013.74
5.2.170.0130.04311.05
5.2.160.0170.04011.03
5.2.150.0030.05011.16
5.2.140.0200.04311.08
5.2.130.0200.05710.99
5.2.120.0170.03311.33
5.2.110.0100.04011.15
5.2.100.0130.04010.99
5.2.90.0170.05311.00
5.2.80.0130.04310.95
5.2.70.0130.04311.03
5.2.60.0070.04711.06
5.2.50.0130.03711.03
5.2.40.0100.04010.84
5.2.30.0130.03710.87
5.2.20.0100.04011.20
5.2.10.0200.04310.91
5.2.00.0100.04710.61
5.1.60.0130.0339.91
5.1.50.0070.0409.98
5.1.40.0030.0479.85
5.1.30.0170.04010.57
5.1.20.0100.04010.50
5.1.10.0200.03310.30
5.1.00.0070.04010.15
5.0.50.0100.0408.48
5.0.40.0030.0308.39
5.0.30.0030.0478.15
5.0.20.0100.0278.12
5.0.10.0130.0338.25
5.0.00.0070.0538.12
4.4.90.0000.0308.12
4.4.80.0000.0278.12
4.4.70.0030.0278.12
4.4.60.0130.0178.12
4.4.50.0070.0278.12
4.4.40.0070.0338.12
4.4.30.0030.0238.12
4.4.20.0070.0238.12
4.4.10.0030.0238.12
4.4.00.0030.0378.12
4.3.110.0070.0238.12
4.3.100.0070.0308.12
4.3.90.0030.0238.12
4.3.80.0030.0378.12
4.3.70.0070.0238.12
4.3.60.0000.0278.12
4.3.50.0070.0238.12
4.3.40.0070.0338.12
4.3.30.0030.0238.12
4.3.20.0030.0238.12
4.3.10.0070.0208.12
4.3.00.0030.0277.26

preferences:
46.5 ms | 401 KiB | 5 Q