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, '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.70.0150.00618.43
8.3.60.0090.00916.50
8.3.50.0190.00018.34
8.3.40.0190.00318.83
8.3.30.0120.00318.82
8.3.20.0060.00319.10
8.3.10.0000.00819.22
8.3.00.0040.00423.53
8.2.180.0140.00418.31
8.2.170.0030.01218.87
8.2.160.0110.00622.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00319.76
8.2.120.0080.00026.35
8.2.110.0110.00018.23
8.2.100.0080.00417.91
8.2.90.0050.00317.88
8.2.80.0070.00318.96
8.2.70.0000.00817.93
8.2.60.0030.00617.67
8.2.50.0050.00318.10
8.2.40.0050.00319.24
8.2.30.0000.00719.31
8.2.20.0000.00817.96
8.2.10.0050.00317.91
8.2.00.0000.00719.43
8.1.280.0150.00625.92
8.1.270.0080.00022.06
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00422.14
8.1.230.0090.00321.04
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0040.00418.57
8.1.160.0040.00418.80
8.1.150.0000.00818.77
8.1.140.0040.00417.63
8.1.130.0070.00018.84
8.1.120.0000.00817.35
8.1.110.0070.00317.38
8.1.100.0040.00417.36
8.1.90.0080.00017.36
8.1.80.0060.00317.45
8.1.70.0070.00017.35
8.1.60.0040.00417.44
8.1.50.0000.00817.52
8.1.40.0040.00417.43
8.1.30.0030.00517.45
8.1.20.0040.00417.47
8.1.10.0040.00417.37
8.1.00.0050.00317.30
8.0.300.0000.00718.77
8.0.290.0090.00016.88
8.0.280.0030.00318.44
8.0.270.0000.00717.30
8.0.260.0030.00318.98
8.0.250.0040.00416.91
8.0.240.0040.00417.00
8.0.230.0030.00617.00
8.0.220.0030.00516.97
8.0.210.0000.00716.83
8.0.200.0000.00617.03
8.0.190.0040.00416.96
8.0.180.0000.00816.98
8.0.170.0050.00316.98
8.0.160.0040.00416.89
8.0.150.0030.00316.78
8.0.140.0070.00016.91
8.0.130.0000.00613.37
8.0.120.0040.00416.88
8.0.110.0040.00416.84
8.0.100.0000.00716.75
8.0.90.0040.00416.98
8.0.80.0070.01016.92
8.0.70.0040.00416.74
8.0.60.0040.00416.85
8.0.50.0000.00816.88
8.0.30.0090.01017.20
8.0.20.0090.00917.40
8.0.10.0000.00717.07
8.0.00.0120.00616.62
7.4.330.0040.00015.55
7.4.320.0040.00416.51
7.4.300.0060.00016.42
7.4.290.0000.00716.57
7.4.280.0030.00316.46
7.4.270.0030.00316.46
7.4.260.0000.00816.56
7.4.250.0040.00416.48
7.4.240.0050.00316.51
7.4.230.0000.00716.50
7.4.220.0040.00416.62
7.4.210.0070.00816.55
7.4.200.0000.00716.47
7.4.160.0140.00216.53
7.4.140.0100.01117.86
7.4.130.0090.00916.27
7.4.120.0100.01016.56
7.4.110.0140.00316.54
7.4.100.0060.01016.46
7.4.90.0140.00416.59
7.4.80.0080.01519.39
7.4.70.0130.01016.52
7.4.60.0130.00716.51
7.4.50.0030.01016.52
7.4.40.0100.01316.38
7.4.00.0090.00614.93
7.3.330.0000.00513.23
7.3.320.0060.00013.13
7.3.310.0000.00816.34
7.3.300.0060.00016.21
7.3.290.0030.00316.31
7.3.280.0140.00216.38
7.3.260.0100.00816.44
7.3.240.0090.00916.43
7.3.230.0130.00516.51
7.3.210.0130.01016.43
7.3.200.0120.00416.49
7.3.190.0140.00516.30
7.3.180.0090.00616.59
7.3.170.0130.01016.30
7.3.160.0170.00316.40
7.3.120.0120.00315.03
7.3.110.0060.00914.44
7.3.100.0110.00714.82
7.3.90.0030.00614.78
7.3.80.0030.01314.67
7.3.70.0000.01014.42
7.3.60.0000.01514.76
7.3.50.0000.01714.70
7.3.40.0000.01614.55
7.3.30.0060.01014.78
7.3.20.0040.01416.67
7.3.10.0070.01016.30
7.3.00.0060.00616.65
7.2.330.0140.01016.63
7.2.320.0070.01116.66
7.2.310.0100.01316.73
7.2.300.0170.00016.76
7.2.290.0150.00916.70
7.2.240.0040.01115.16
7.2.230.0030.01314.91
7.2.220.0000.01415.00
7.2.210.0040.00815.12
7.2.200.0110.00415.11
7.2.190.0000.01414.77
7.2.180.0100.00714.65
7.2.170.0060.00615.01
7.2.160.0150.00015.08
7.2.150.0060.00516.95
7.2.140.0120.00617.03
7.2.130.0080.00416.98
7.2.120.0030.00716.71
7.2.110.0110.00815.75
7.2.100.0070.00915.81
7.2.90.0130.00615.85
7.2.80.0150.00315.88
7.2.70.0150.00216.08
7.2.60.0450.00815.60
7.2.50.0190.00715.43
7.2.40.0530.01215.77
7.2.30.0560.00915.76
7.2.20.0770.00815.70
7.2.10.0720.00715.71
7.2.00.0710.00815.56
7.1.330.0040.00815.62
7.1.320.0090.00615.94
7.1.310.0030.00716.02
7.1.300.0000.01515.78
7.1.290.0030.00715.46
7.1.280.0040.01115.55
7.1.270.0030.00915.79
7.1.260.0080.00515.54
7.1.250.0030.01015.76
7.1.230.0100.01013.84
7.1.220.0160.00713.84
7.1.210.0120.00913.87
7.1.200.0060.01014.70
7.1.190.0170.00714.02
7.1.180.0150.00613.98
7.1.170.0210.00413.78
7.1.160.0130.00715.34
7.1.150.1080.00815.42
7.1.140.1140.01015.29
7.1.130.1100.00815.20
7.1.120.1150.01015.18
7.1.110.0970.00814.92
7.1.100.1010.00914.83
7.1.90.0940.00915.17
7.1.80.1140.00814.91
7.1.70.1040.00914.63
7.1.60.1150.01132.56
7.1.50.1160.01032.24
7.1.40.1340.01032.24
7.1.30.1120.01232.10
7.1.20.1330.00932.02
7.1.10.1250.01514.16
7.1.00.1620.00914.32
5.6.380.0070.00714.40

preferences:
81.76 ms | 401 KiB | 5 Q