3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function test() { echo "foo\n"; } } class Bar extends Foo { function __construct() { [$this, 'test'](); [$this, 'self::test'](); [$this, 'parent::test'](); } 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.40.0110.00418.80
8.3.30.0040.01118.71
8.3.20.0040.00419.12
8.3.10.0080.00021.78
8.3.00.0100.00720.58
8.2.170.0120.00318.86
8.2.160.0120.00822.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00418.21
8.2.120.0080.00026.35
8.2.110.0030.00619.45
8.2.100.0110.00018.28
8.2.90.0000.01017.75
8.2.80.0050.00318.85
8.2.70.0030.00617.93
8.2.60.0000.00718.09
8.2.50.0000.00818.10
8.2.40.0040.00419.30
8.2.30.0000.00719.11
8.2.20.0080.00018.03
8.2.10.0040.00418.11
8.2.00.0040.00417.72
8.1.270.0080.00020.64
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.06
8.1.230.0080.00419.04
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0090.00317.10
8.1.180.0060.00318.10
8.1.170.0050.00318.71
8.1.160.0000.00818.82
8.1.150.0050.00218.72
8.1.140.0050.00222.11
8.1.130.0000.00722.09
8.1.120.0000.00717.28
8.1.110.0050.00217.41
8.1.100.0000.00817.41
8.1.90.0080.00017.36
8.1.80.0040.00417.27
8.1.70.0000.00717.38
8.1.60.0030.00517.49
8.1.50.0000.00917.43
8.1.40.0000.00917.36
8.1.30.0050.00517.39
8.1.20.0040.00417.47
8.1.10.0030.00517.47
8.1.00.0040.00417.44
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0030.00318.39
8.0.270.0030.00317.17
8.0.260.0030.00318.43
8.0.250.0070.00017.03
8.0.240.0030.00317.08
8.0.230.0000.00917.02
8.0.220.0000.00716.85
8.0.210.0070.00016.90
8.0.200.0050.00217.00
8.0.190.0040.00416.90
8.0.180.0030.00516.97
8.0.170.0030.00616.93
8.0.160.0070.00016.83
8.0.150.0000.00716.95
8.0.140.0050.00316.80
8.0.130.0030.00313.30
8.0.120.0000.00717.02
8.0.110.0040.00416.96
8.0.100.0040.00416.93
8.0.90.0040.00416.85
8.0.80.0100.00816.99
8.0.70.0000.00716.77
8.0.60.0040.00416.75
8.0.50.0040.00416.80
8.0.30.0130.00717.05
8.0.20.0060.01517.40
8.0.10.0040.00416.81
8.0.00.0080.01116.69
7.4.330.0000.00615.55
7.4.320.0030.00316.51
7.4.300.0080.00016.51
7.4.290.0030.00316.56
7.4.280.0030.00616.60
7.4.270.0030.00316.50
7.4.260.0030.00316.59
7.4.250.0030.00316.55
7.4.240.0070.00016.51
7.4.230.0000.00816.47
7.4.220.0060.00316.30
7.4.210.0100.00716.45
7.4.200.0030.00316.29
7.4.160.0090.00716.46
7.4.140.0110.00817.86
7.4.130.0130.00316.57
7.4.120.0100.00916.47
7.4.110.0070.01716.43
7.4.100.0150.00616.69
7.4.90.0060.01516.51
7.4.80.0060.01319.39
7.4.70.0070.01016.29
7.4.60.0030.01016.40
7.4.50.0000.01816.50
7.4.40.0060.01016.46
7.4.00.0110.00714.87
7.3.330.0020.00213.21
7.3.320.0070.00013.35
7.3.310.0060.00316.22
7.3.300.0000.00716.35
7.3.290.0030.00316.32
7.3.280.0070.00816.35
7.3.260.0120.00716.46
7.3.240.0090.01016.44
7.3.230.0160.00316.20
7.3.210.0130.00316.48
7.3.200.0100.01016.18
7.3.190.0030.01616.59
7.3.180.0100.01016.33
7.3.170.0180.00716.37
7.3.160.0160.00016.34
7.3.10.0030.01016.64
7.3.00.0120.00316.58
7.2.330.0060.01216.69
7.2.320.0150.00916.77
7.2.310.0000.01716.64
7.2.300.0060.00916.72
7.2.290.0120.00816.41
7.2.130.0040.00716.78
7.2.120.0090.00017.02
7.2.110.0130.01115.62
7.2.100.0120.01015.77
7.2.90.0160.01015.67
7.2.80.0110.01315.72
7.2.70.0190.00815.91
7.2.60.0140.00916.00
7.2.50.0160.00815.88
7.2.40.0110.01015.87
7.2.30.0140.01115.71
7.2.20.0180.00915.88
7.2.10.0150.00615.71
7.2.00.0130.01015.52
7.1.250.0030.01015.63
7.1.230.0180.01413.77
7.1.220.0640.00313.82
7.1.210.0210.00813.60
7.1.200.0270.00313.83
7.1.190.0210.00913.81
7.1.180.0210.00914.02
7.1.170.0260.00713.85
7.1.160.0170.00614.02
7.1.150.0210.00513.93
7.1.140.0190.01313.78
7.1.130.0240.00313.72
7.1.120.0630.00313.74
7.1.110.0150.01513.85
7.1.100.0180.01213.96
7.1.90.0230.01013.89
7.1.80.0300.00313.87
7.1.70.0140.01113.99
7.1.60.0420.00931.52
7.1.50.0340.01431.91
7.1.40.0340.00731.63
7.1.30.0390.01031.95
7.1.20.0380.00331.66
7.1.10.0190.00313.87
7.1.00.0280.00713.96
5.6.380.0140.00714.22

preferences:
49.3 ms | 400 KiB | 5 Q