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']); self::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.60.0060.01218.52
8.3.50.0100.01016.41
8.3.40.0080.00818.74
8.3.30.0070.00718.70
8.3.20.0080.00019.12
8.3.10.0080.00019.36
8.3.00.0080.00023.48
8.2.180.0070.01418.16
8.2.170.0150.00022.96
8.2.160.0060.00922.07
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0030.00619.82
8.2.120.0040.00426.35
8.2.110.0000.00920.51
8.2.100.0080.00417.62
8.2.90.0030.00617.63
8.2.80.0050.00318.75
8.2.70.0000.00818.03
8.2.60.0030.00617.80
8.2.50.0030.00518.10
8.2.40.0040.00419.23
8.2.30.0000.00719.38
8.2.20.0070.00018.10
8.2.10.0080.00019.64
8.2.00.0030.00519.38
8.1.280.0100.00725.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00020.60
8.1.230.0070.00422.21
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0040.00717.25
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0040.00418.89
8.1.150.0000.00718.86
8.1.140.0000.00717.63
8.1.130.0000.00718.86
8.1.120.0050.00217.46
8.1.110.0000.00817.36
8.1.100.0050.00317.29
8.1.90.0070.00017.36
8.1.80.0070.00017.26
8.1.70.0000.00717.38
8.1.60.0030.00717.55
8.1.50.0000.00917.50
8.1.40.0020.00517.34
8.1.30.0040.00417.57
8.1.20.0050.00517.55
8.1.10.0040.00417.47
8.1.00.0040.00417.46
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0000.00718.40
8.0.270.0070.00017.32
8.0.260.0000.00617.25
8.0.250.0070.00016.95
8.0.240.0060.00316.87
8.0.230.0030.00316.96
8.0.220.0040.00416.91
8.0.210.0030.00316.96
8.0.200.0060.00016.91
8.0.190.0070.00016.98
8.0.180.0040.00416.95
8.0.170.0060.00316.92
8.0.160.0070.00016.91
8.0.150.0000.00816.87
8.0.140.0020.00516.75
8.0.130.0000.00513.36
8.0.120.0040.00416.89
8.0.110.0070.00016.90
8.0.100.0030.00616.79
8.0.90.0070.00016.76
8.0.80.0110.00816.85
8.0.70.0060.00316.74
8.0.60.0050.00216.92
8.0.50.0040.00416.95
8.0.30.0110.00717.10
8.0.20.0130.00717.40
8.0.10.0040.00416.97
8.0.00.0130.01016.71
7.4.330.0050.00015.55
7.4.320.0000.00616.58
7.4.300.0000.00716.36
7.4.290.0040.00416.41
7.4.280.0000.00816.62
7.4.270.0030.00316.48
7.4.260.0030.00316.59
7.4.250.0040.00416.53
7.4.240.0030.00316.57
7.4.230.0000.00616.48
7.4.220.0000.00816.55
7.4.210.0070.00816.45
7.4.200.0030.00316.50
7.4.160.0070.00916.41
7.4.140.0110.00817.86
7.4.130.0160.00816.65
7.4.120.0120.00716.48
7.4.110.0150.00316.60
7.4.100.0130.00616.44
7.4.90.0070.01116.45
7.4.80.0090.00919.39
7.4.70.0070.01416.45
7.4.60.0090.00916.54
7.4.50.0030.01316.40
7.4.40.0150.00916.48
7.4.00.0100.00715.03
7.3.330.0000.00613.27
7.3.320.0050.00013.30
7.3.310.0000.00716.28
7.3.300.0030.00316.32
7.3.290.0030.00316.19
7.3.280.0110.00816.29
7.3.260.0140.00616.25
7.3.240.0120.00916.40
7.3.230.0030.01416.27
7.3.210.0070.01016.22
7.3.200.0070.01016.47
7.3.190.0170.00016.35
7.3.180.0120.00616.32
7.3.170.0130.01016.20
7.3.160.0100.00716.58
7.2.330.0090.00916.75
7.2.320.0100.01416.75
7.2.310.0130.00516.75
7.2.300.0080.00816.46
7.2.290.0140.00816.55
7.2.60.2260.01014.86
7.2.50.2120.01114.85
7.2.40.0140.01015.43
7.2.30.0330.00715.46
7.2.20.0420.01015.33
7.2.10.2260.00815.36
7.2.00.2440.01015.45
7.1.200.0040.00915.73
7.1.170.0660.00813.86
7.1.160.2040.01116.45
7.1.150.1570.00916.85
7.1.140.2140.00816.44
7.1.130.2180.01016.68
7.1.120.2440.00916.80
7.1.110.1080.01216.30
7.1.100.0110.00916.47
7.1.90.0160.00916.24
7.1.80.0120.00816.26
7.1.70.1080.01015.28
7.1.60.0360.01833.17
7.1.50.0320.01633.09
7.1.40.0690.01532.45
7.1.30.0340.01132.60
7.1.20.0390.01332.61
7.1.10.0530.01014.75
7.1.00.1900.00714.82

preferences:
52.41 ms | 400 KiB | 5 Q