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; } } child::test_static();

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.0030.01718.97
8.3.30.0070.00718.89
8.3.20.0030.00620.08
8.3.10.0050.00223.53
8.3.00.0040.00423.61
8.2.170.0090.00622.96
8.2.160.0060.00919.20
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00917.63
8.2.110.0050.00519.02
8.2.100.0100.00317.50
8.2.90.0080.00019.14
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0050.00317.92
8.2.50.0030.00518.07
8.2.40.0030.00520.93
8.2.30.0000.00819.76
8.2.20.0030.00517.75
8.2.10.0060.00317.92
8.2.00.0040.00417.90
8.1.270.0040.00420.20
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.86
8.1.230.0080.00417.52
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0050.00517.10
8.1.190.0000.00817.11
8.1.180.0000.00718.10
8.1.170.0030.00518.46
8.1.160.0070.00021.97
8.1.150.0000.00718.70
8.1.140.0070.00017.33
8.1.130.0080.00017.52
8.1.120.0000.00717.21
8.1.110.0030.00517.30
8.1.100.0040.00417.34
8.1.90.0000.00817.33
8.1.80.0000.00717.29
8.1.70.0030.00317.32
8.1.60.0000.00817.55
8.1.50.0050.00317.37
8.1.40.0030.00517.33
8.1.30.0040.00417.50
8.1.20.0000.00817.60
8.1.10.0030.00517.42
8.1.00.0040.00417.49
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0030.00317.07
8.0.260.0080.00017.20
8.0.250.0050.00316.88
8.0.240.0030.00316.94
8.0.230.0070.00016.88
8.0.220.0030.00316.91
8.0.210.0060.00316.86
8.0.200.0070.00016.94
8.0.190.0080.00016.96
8.0.180.0000.00716.77
8.0.170.0000.00716.90
8.0.160.0080.00016.86
8.0.150.0000.00716.88
8.0.140.0070.00316.82
8.0.130.0000.00613.36
8.0.120.0020.00716.87
8.0.110.0060.00316.89
8.0.100.0040.00416.88
8.0.90.0000.00716.77
8.0.80.0030.01316.94
8.0.70.0040.00416.88
8.0.60.0030.00516.80
8.0.50.0040.00416.79
8.0.30.0050.01317.02
8.0.20.0080.01317.40
8.0.10.0070.00016.96
8.0.00.0100.00716.77
7.4.330.0050.00015.09
7.4.320.0030.00316.39
7.4.300.0060.00016.52
7.4.290.0050.00316.40
7.4.280.0000.00816.48
7.4.270.0030.00316.59
7.4.260.0000.00716.48
7.4.250.0000.00716.45
7.4.240.0020.00516.56
7.4.230.0070.00016.66
7.4.220.0060.00916.38
7.4.210.0080.00616.57
7.4.200.0030.00316.56
7.4.160.0130.00316.39
7.4.150.0070.01017.40
7.4.140.0110.00717.86
7.4.130.0080.01116.45
7.4.120.0060.01116.61
7.4.110.0100.01016.68
7.4.100.0130.02316.42
7.4.90.0090.00816.39
7.4.80.0110.00819.39
7.4.70.0150.00316.27
7.4.60.0130.00316.50
7.4.50.0020.00216.34
7.4.40.0140.00316.45
7.4.30.0040.01416.53
7.4.00.0090.00615.14
7.3.330.0030.00313.38
7.3.320.0000.00613.21
7.3.310.0040.00416.38
7.3.300.0030.00316.23
7.3.290.0050.01116.30
7.3.280.0100.01016.35
7.3.270.0140.00317.40
7.3.260.0110.00716.57
7.3.250.0100.00716.35
7.3.240.0090.00916.37
7.3.230.0030.01616.39
7.3.210.0090.00616.26
7.3.200.0110.00516.41
7.3.190.0130.00316.24
7.3.180.0100.00616.47
7.3.170.0030.01316.52
7.3.160.0130.00316.41
7.3.10.0030.01116.57
7.3.00.0000.01316.64
7.2.330.0100.00716.22
7.2.320.0160.00316.61
7.2.310.0060.01016.49
7.2.300.0090.00616.43
7.2.290.0100.01316.61
7.2.130.0000.01516.82
7.2.120.0090.00616.84
7.2.110.0060.00616.46
7.2.100.0030.00616.81
7.2.90.0030.01216.84
7.2.80.0060.00916.66
7.2.70.0040.00816.59
7.2.60.0080.00816.76
7.2.50.0080.00816.84
7.2.40.0080.00816.68
7.2.30.0000.01116.73
7.2.20.0050.01316.84
7.2.10.0110.00716.77
7.2.00.0220.00918.18
7.1.250.0030.00715.71
7.1.200.0040.00815.73
7.1.100.0080.00617.90
7.1.70.0080.00416.52
7.1.60.0040.01119.18
7.1.50.0070.01316.84
7.1.00.0070.06722.46
7.0.200.0100.00716.69
7.0.60.0070.08319.96
7.0.50.0030.08017.84
7.0.40.0000.05320.28
7.0.30.0170.04020.21
7.0.20.0230.05320.12
7.0.10.0130.08320.09
7.0.00.0030.08320.06
5.6.280.0100.05021.03
5.6.210.0100.08020.61
5.6.200.0000.04318.19
5.6.190.0000.09020.61
5.6.180.3770.04720.63
5.6.170.0230.07320.44
5.6.160.0100.08320.54
5.6.150.0030.05318.29
5.6.140.0070.04018.27
5.6.130.0070.03718.17
5.6.120.0030.04321.08
5.6.110.0070.06321.14
5.6.100.0070.08021.07
5.6.90.0170.06721.04
5.6.80.0030.04020.37
5.5.350.0100.05020.40
5.5.340.0070.04318.07
5.5.330.0030.08020.28
5.5.320.0100.07720.51
5.5.310.0270.08320.51
5.5.300.0100.07717.95
5.5.290.0100.08018.04
5.5.280.0070.05020.85
5.5.270.0100.07720.95
5.5.260.0070.08320.74
5.5.250.0100.07720.70
5.5.240.0100.04320.36
5.4.450.0170.06719.70
5.4.440.0200.07319.18
5.4.430.0200.05719.48
5.4.420.0230.05019.18
5.4.410.0270.05019.04
5.4.400.0330.04018.96
5.4.390.0170.06019.12
5.4.380.0170.05719.29
5.4.370.0200.05018.86
5.4.360.0200.06019.16
5.4.350.0230.05018.85
5.4.340.0230.05019.13
5.4.320.0130.06019.20
5.4.310.0200.05019.24
5.4.300.0200.05019.23
5.4.290.0130.05719.09
5.4.280.0170.05718.93
5.4.270.0270.04319.31
5.4.260.0170.05319.31
5.4.250.0300.05718.86
5.4.240.0330.04319.17
5.4.230.0230.04719.29
5.4.220.0200.05319.11
5.4.210.0300.04719.11
5.4.200.0200.05017.11
5.4.190.0200.05019.07
5.4.180.0270.05018.96
5.4.170.0130.07319.00
5.4.160.0230.06318.91
5.4.150.0270.05019.08
5.4.140.0230.04716.78
5.4.130.0200.04716.59
5.4.120.0200.04716.57
5.4.110.0130.05316.60
5.4.100.0200.06316.36
5.4.90.0270.04316.58
5.4.80.0230.04316.36
5.4.70.0200.05716.40
5.4.60.0200.04716.47
5.4.50.0200.04716.38
5.4.40.0200.06316.29
5.4.30.0200.05316.51
5.4.20.0200.05716.34
5.4.10.0170.05016.29
5.4.00.0130.05315.79
5.3.290.0200.05314.66
5.3.280.0200.05314.64
5.3.270.0230.04714.62
5.3.260.0270.04314.61
5.3.250.0230.04314.50
5.3.240.0230.04714.61
5.3.230.0200.05314.74
5.3.220.0100.06014.60
5.3.210.0230.04714.56
5.3.200.0200.05014.57
5.3.190.0200.05014.58
5.3.180.0030.06314.54
5.3.170.0200.05014.47
5.3.160.0100.05714.65
5.3.150.0200.04314.56
5.3.140.0230.04314.45
5.3.130.0230.04714.60
5.3.120.0230.04314.43
5.3.110.0170.05714.59
5.3.100.0230.07013.94
5.3.90.0200.04714.07
5.3.80.0200.05014.03
5.3.70.0200.05014.07
5.3.60.0170.05014.15
5.3.50.0200.06314.00
5.3.40.0170.05713.95
5.3.30.0170.04713.93
5.3.20.0070.06013.58
5.3.10.0230.04313.52
5.3.00.0100.06013.57
5.2.170.0170.04011.20
5.2.160.0170.03711.06
5.2.150.0170.04011.23
5.2.140.0130.04310.99
5.2.130.0200.04011.03
5.2.120.0070.04711.11
5.2.110.0130.04011.00
5.2.100.0130.04711.33
5.2.90.0270.02711.04
5.2.80.0130.04711.24
5.2.70.0130.04311.10
5.2.60.0200.05310.99
5.2.50.0130.04711.18
5.2.40.0100.04311.01
5.2.30.0130.05010.98
5.2.20.0130.05010.87
5.2.10.0230.04710.91
5.2.00.0170.05310.56
5.1.60.0170.0439.98
5.1.50.0130.03310.00
5.1.40.0230.02010.13
5.1.30.0100.04010.20
5.1.20.0130.03710.50
5.1.10.0100.04710.08
5.1.00.0200.04710.15
5.0.50.0100.0308.58
5.0.40.0230.0238.24
5.0.30.0100.0408.30
5.0.20.0130.0278.30
5.0.10.0130.0238.12
5.0.00.0030.0478.16
4.4.90.0070.0208.12
4.4.80.0030.0238.12
4.4.70.0070.0278.12
4.4.60.0100.0178.12
4.4.50.0130.0178.12
4.4.40.0030.0378.12
4.4.30.0030.0238.12
4.4.20.0070.0208.12
4.4.10.0030.0238.12
4.4.00.0000.0408.12
4.3.110.0070.0208.12
4.3.100.0100.0208.12
4.3.90.0130.0208.12
4.3.80.0100.0308.12
4.3.70.0030.0238.12
4.3.60.0030.0238.12
4.3.50.0030.0278.12
4.3.40.0070.0378.12
4.3.30.0070.0278.12
4.3.20.0070.0208.12
4.3.10.0030.0278.12
4.3.00.0070.0207.26

preferences:
48.49 ms | 400 KiB | 5 Q