3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function __construct() { call_user_func([$this, 'test']); call_user_func([$this, 'self::test']); call_user_func([$this, 'static::test']); } function test() { echo "foo\n"; } } class Bar extends Foo { function __construct() { call_user_func([$this, 'test']); call_user_func([$this, 'self::test']); call_user_func([$this, 'parent::test']); call_user_func([$this, 'Foo::test']); call_user_func([$this, 'Bar::test']); parent::__construct(); } function test() { echo "bar\n"; } } new Bar;

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.0090.00618.43
8.3.50.0100.00718.17
8.3.40.0140.00318.80
8.3.30.0070.00718.57
8.3.20.0040.00419.14
8.3.10.0040.00419.39
8.3.00.0080.00023.65
8.2.180.0140.00718.29
8.2.170.0120.00322.96
8.2.160.0070.00722.31
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00819.82
8.2.120.0030.00526.35
8.2.110.0100.00021.17
8.2.100.0080.00317.84
8.2.90.0090.00017.97
8.2.80.0070.00018.21
8.2.70.0000.00817.80
8.2.60.0040.00417.80
8.2.50.0050.00318.10
8.2.40.0030.00519.03
8.2.30.0000.00819.48
8.2.20.0080.00018.05
8.2.10.0050.00217.98
8.2.00.0040.00419.43
8.1.280.0000.01525.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00722.33
8.1.230.0110.00020.78
8.1.220.0080.00017.74
8.1.210.0060.00318.96
8.1.200.0060.00617.22
8.1.190.0100.00017.10
8.1.180.0040.00418.10
8.1.170.0030.00618.64
8.1.160.0040.00418.73
8.1.150.0030.00318.73
8.1.140.0040.00417.55
8.1.130.0030.00518.95
8.1.120.0040.00317.31
8.1.110.0000.00717.31
8.1.100.0040.00417.24
8.1.90.0040.00417.40
8.1.80.0000.00817.39
8.1.70.0070.00017.41
8.1.60.0000.00817.53
8.1.50.0080.00017.36
8.1.40.0040.00417.30
8.1.30.0040.00417.51
8.1.20.0030.00617.55
8.1.10.0020.00517.50
8.1.00.0000.00917.44
8.0.300.0040.00420.07
8.0.290.0030.00516.75
8.0.280.0000.00718.48
8.0.270.0070.00017.11
8.0.260.0000.00719.13
8.0.250.0030.00316.95
8.0.240.0000.00917.03
8.0.230.0000.00816.88
8.0.220.0000.00716.81
8.0.210.0030.00316.82
8.0.200.0000.00716.86
8.0.190.0080.00016.93
8.0.180.0040.00416.86
8.0.170.0040.00416.92
8.0.160.0040.00416.94
8.0.150.0040.00416.83
8.0.140.0040.00416.91
8.0.130.0050.00013.29
8.0.120.0050.00216.84
8.0.110.0040.00416.82
8.0.100.0040.00416.71
8.0.90.0030.00616.96
8.0.80.0070.00916.84
8.0.70.0050.00316.89
8.0.60.0040.00416.85
8.0.50.0040.00416.76
8.0.30.0130.01317.04
8.0.20.0040.01417.40
8.0.10.0070.00016.87
8.0.00.0110.01216.65
7.4.330.0050.00015.55
7.4.320.0000.00716.59
7.4.300.0000.00616.59
7.4.290.0030.00316.47
7.4.280.0030.00616.52
7.4.270.0020.00516.59
7.4.260.0070.00016.38
7.4.250.0030.00316.46
7.4.240.0070.00016.47
7.4.230.0030.00316.50
7.4.220.0040.00416.59
7.4.210.0060.01216.55
7.4.200.0020.00516.33
7.4.160.0090.00916.56
7.4.140.0100.00717.86
7.4.130.0170.00016.69
7.4.120.0080.01116.40
7.4.110.0110.00516.66
7.4.100.0180.00616.38
7.4.90.0000.02016.39
7.4.80.0130.00619.39
7.4.70.0080.01216.57
7.4.60.0000.01916.68
7.4.50.0110.00716.38
7.4.40.0030.01516.57
7.4.00.0070.00914.90
7.3.330.0000.00613.15
7.3.320.0030.00313.30
7.3.310.0070.00016.37
7.3.300.0070.00016.10
7.3.290.0000.00616.29
7.3.280.0090.00516.26
7.3.260.0100.00916.35
7.3.240.0070.01116.46
7.3.230.0030.01316.34
7.3.210.0130.00316.25
7.3.200.0030.01316.27
7.3.190.0150.00616.35
7.3.180.0100.01016.50
7.3.170.0160.00316.36
7.3.160.0100.00616.29
7.3.120.0040.01215.02
7.3.110.0040.01315.00
7.3.100.0080.00614.88
7.3.90.0000.00914.69
7.3.80.0030.00914.75
7.3.70.0100.00314.88
7.3.60.0060.01014.82
7.3.50.0100.00014.79
7.3.40.0080.00814.78
7.3.30.0090.00314.94
7.3.20.0040.00716.54
7.3.10.0110.00416.57
7.3.00.0040.01116.60
7.2.330.0030.01616.76
7.2.320.0100.01016.56
7.2.310.0070.01016.57
7.2.300.0090.00916.77
7.2.290.0110.01116.48
7.2.250.0070.01514.70
7.2.240.0100.01014.99
7.2.230.0100.00314.97
7.2.220.0100.00715.03
7.2.210.0050.00515.18
7.2.200.0060.00315.05
7.2.190.0040.01215.18
7.2.180.0080.00814.90
7.2.170.0040.00714.90
7.2.60.1540.00814.84
7.2.50.1310.00814.92
7.2.40.0100.01015.21
7.2.30.1600.01015.41
7.2.20.1600.01015.33
7.2.10.1510.00815.32
7.2.00.2020.01215.39
7.1.330.0110.00315.82
7.1.320.0000.01315.78
7.1.310.0000.01215.47
7.1.300.0000.00815.77
7.1.290.0040.00815.89
7.1.280.0040.00715.88
7.1.270.0040.00715.70
7.1.260.0140.00315.79
7.1.200.0030.00715.61
7.1.170.1410.00713.63
7.1.160.0360.01716.66
7.1.150.1920.01216.61
7.1.140.1670.01116.80
7.1.130.1610.01416.91
7.1.120.0370.01116.47
7.1.110.1050.01016.07
7.1.100.0140.01415.91
7.1.90.0130.01316.23
7.1.80.2110.01115.88
7.1.70.2010.01015.20
7.1.60.1110.01233.29
7.1.50.0330.01133.04
7.1.40.2060.01732.50
7.1.30.0310.02032.52
7.1.20.2230.01632.70
7.1.10.1430.01014.63
7.1.00.1620.01214.67

preferences:
49.94 ms | 400 KiB | 5 Q