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']); echo "---\n"; 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.70.0150.00016.58
8.3.60.0120.00318.68
8.3.50.0150.00616.29
8.3.40.0120.00918.54
8.3.30.0120.00918.84
8.3.20.0000.00819.12
8.3.10.0040.00419.34
8.3.00.0040.00423.61
8.2.180.0070.01418.29
8.2.170.0060.00922.96
8.2.160.0070.00722.16
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0030.00519.82
8.2.120.0040.00426.35
8.2.110.0030.00721.18
8.2.100.0080.00317.84
8.2.90.0080.00018.16
8.2.80.0060.00317.97
8.2.70.0030.00617.79
8.2.60.0040.00417.93
8.2.50.0030.00518.10
8.2.40.0040.00419.36
8.2.30.0020.00519.41
8.2.20.0070.00017.88
8.2.10.0000.00818.07
8.2.00.0000.00719.36
8.1.280.0070.01125.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.54
8.1.230.0060.00621.04
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.01017.10
8.1.180.0000.00818.10
8.1.170.0080.00018.72
8.1.160.0000.00818.89
8.1.150.0070.00018.82
8.1.140.0020.00517.63
8.1.130.0050.00218.99
8.1.120.0040.00417.45
8.1.110.0080.00017.28
8.1.100.0030.00517.32
8.1.90.0040.00417.39
8.1.80.0000.00717.44
8.1.70.0000.00717.44
8.1.60.0080.00017.49
8.1.50.0050.00317.34
8.1.40.0040.00417.37
8.1.30.0080.00017.57
8.1.20.0000.00917.41
8.1.10.0000.00717.44
8.1.00.0030.00617.45
8.0.300.0000.00719.86
8.0.290.0000.00816.75
8.0.280.0000.00718.45
8.0.270.0070.00017.25
8.0.260.0000.00618.38
8.0.250.0030.00316.80
8.0.240.0060.00316.82
8.0.230.0030.00516.97
8.0.220.0000.00716.96
8.0.210.0060.00016.82
8.0.200.0000.00816.95
8.0.190.0060.00316.82
8.0.180.0040.00416.93
8.0.170.0000.00916.87
8.0.160.0030.00316.89
8.0.150.0050.00316.75
8.0.140.0000.00816.86
8.0.130.0000.00613.41
8.0.120.0040.00416.82
8.0.110.0050.00216.91
8.0.100.0070.00016.76
8.0.90.0080.00016.82
8.0.80.0100.01316.91
8.0.70.0030.00516.76
8.0.60.0070.00016.96
8.0.50.0040.00416.74
8.0.30.0100.01017.05
8.0.20.0090.01017.40
8.0.10.0070.00017.02
8.0.00.0140.01016.71
7.4.330.0050.00015.55
7.4.320.0060.00016.66
7.4.300.0030.00316.60
7.4.290.0040.00416.41
7.4.280.0030.00516.51
7.4.270.0030.00316.51
7.4.260.0030.00316.48
7.4.250.0040.00416.47
7.4.240.0000.00716.41
7.4.230.0000.00616.55
7.4.220.0050.00216.62
7.4.210.0060.01216.62
7.4.200.0040.00416.59
7.4.160.0090.00916.47
7.4.140.0060.01217.86
7.4.130.0030.01416.46
7.4.120.0100.00916.54
7.4.110.0100.00716.51
7.4.100.0130.00416.56
7.4.90.0120.01316.44
7.4.80.0160.00619.39
7.4.70.0130.00616.44
7.4.60.0130.00916.63
7.4.50.0030.01316.11
7.4.40.0000.01916.42
7.4.00.0060.00314.96
7.3.330.0000.00613.27
7.3.320.0060.00013.16
7.3.310.0000.00716.34
7.3.300.0040.00416.16
7.3.290.0000.00716.23
7.3.280.0080.00716.30
7.3.260.0080.01016.35
7.3.240.0110.00816.34
7.3.230.0110.00716.52
7.3.210.0030.01316.28
7.3.200.0120.00616.31
7.3.190.0070.01016.40
7.3.180.0060.00916.14
7.3.170.0130.01016.30
7.3.160.0060.01216.41
7.3.120.0150.00014.97
7.3.110.0090.00614.68
7.3.100.0060.00914.95
7.3.90.0070.01014.82
7.3.80.0070.00414.53
7.3.70.0040.01114.79
7.3.60.0130.00014.75
7.3.50.0030.00614.55
7.3.40.0070.00714.71
7.3.30.0100.00714.91
7.3.20.0070.01016.21
7.3.10.0000.01316.46
7.3.00.0100.00716.26
7.2.330.0090.00916.50
7.2.320.0060.01616.42
7.2.310.0140.00416.38
7.2.300.0110.00616.67
7.2.290.0000.02216.70
7.2.240.0080.00614.95
7.2.230.0040.00815.04
7.2.220.0000.01314.63
7.2.210.0000.01414.94
7.2.200.0070.01115.16
7.2.190.0040.01215.04
7.2.180.0070.00714.97
7.2.170.0070.01014.99
7.2.160.0100.00614.83
7.2.150.0040.00916.92
7.2.140.0130.00016.85
7.2.130.0070.00716.93
7.2.120.0110.00716.86
7.2.110.0050.00516.90
7.2.100.0060.00916.76
7.2.90.0140.00316.89
7.2.80.0110.00717.04
7.2.70.0060.00916.83
7.2.60.1010.00915.79
7.2.50.0820.00815.74
7.2.40.1160.00616.07
7.2.30.0870.00816.18
7.2.20.1000.01116.02
7.2.10.0920.00616.10
7.2.00.0990.00815.99
7.1.330.0000.01215.76
7.1.320.0040.01115.68
7.1.310.0070.00715.81
7.1.300.0040.01115.66
7.1.290.0060.00315.76
7.1.280.0100.00715.61
7.1.270.0040.00715.45
7.1.260.0070.00715.88
7.1.250.0030.00915.78
7.1.200.0000.01415.77
7.1.170.1650.00513.98
7.1.160.1850.01116.94
7.1.150.2340.01016.78
7.1.140.1680.01516.65
7.1.130.2110.01016.60
7.1.120.1480.01216.77
7.1.110.1730.01015.99
7.1.100.1830.01116.13
7.1.90.2280.01416.10
7.1.80.2030.01016.18
7.1.70.2240.00815.21
7.1.60.2250.01533.20
7.1.50.2730.01233.03
7.1.40.2310.01032.57
7.1.30.2340.01232.51
7.1.20.2530.01832.58
7.1.10.2100.01214.70
7.1.00.2300.00914.85

preferences:
58.21 ms | 401 KiB | 5 Q