3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { } class A { public function foo(/* C */ $c) { echo 'c'; } } class B extends A { public function foo(C $c) { echo 'd'; } } $c = new C(); $b = new B(); echo $b->foo($c);

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.4.20.0100.01017.62
8.4.10.0100.00619.37
8.3.150.0100.00717.13
8.3.140.0090.00618.65
8.3.130.0080.00018.26
8.3.120.0060.00618.75
8.3.110.0080.00420.94
8.3.100.0050.00316.54
8.3.90.0060.00326.77
8.3.80.0040.00817.97
8.3.70.0140.00416.75
8.3.60.0070.01818.31
8.3.50.0070.01118.32
8.3.40.0130.01018.70
8.3.30.0060.00918.54
8.3.20.0070.01120.36
8.3.10.0030.00623.52
8.3.00.0080.00021.82
8.2.270.0060.01216.57
8.2.260.0040.00416.68
8.2.250.0040.00416.45
8.2.240.0000.00818.61
8.2.230.0050.00322.58
8.2.220.0150.00024.06
8.2.210.0100.00726.77
8.2.200.0000.00916.50
8.2.190.0140.00716.58
8.2.180.0120.00618.29
8.2.170.0120.00322.96
8.2.160.0190.00318.95
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00020.97
8.2.110.0030.00622.13
8.2.100.0080.00417.59
8.2.90.0040.00419.09
8.2.80.0040.00817.97
8.2.70.0080.00317.38
8.2.60.0060.00317.68
8.2.50.0040.00418.07
8.2.40.0080.00019.76
8.2.30.0070.00017.91
8.2.20.0080.00017.94
8.2.10.0000.00717.92
8.2.00.0050.00218.03
8.1.310.0140.00016.48
8.1.300.0060.00317.54
8.1.290.0090.00330.84
8.1.280.0070.01025.92
8.1.270.0080.00021.95
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00620.61
8.1.230.0060.00617.77
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0050.00517.22
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0000.00918.33
8.1.160.0040.00718.76
8.1.150.0000.00818.75
8.1.140.0000.00719.06
8.1.130.0030.00317.43
8.1.120.0030.00517.34
8.1.110.0040.00417.37
8.1.100.0000.00817.35
8.1.90.0000.00817.32
8.1.80.0040.00417.21
8.1.70.0040.00417.23
8.1.60.0080.00017.35
8.1.50.0030.00617.41
8.1.40.0040.00417.29
8.1.30.0040.00417.43
8.1.20.0040.00417.49
8.1.10.0000.00817.25
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0030.00916.58
8.0.280.0070.00018.30
8.0.270.0000.00817.17
8.0.260.0030.00317.32
8.0.250.0030.00316.89
8.0.240.0070.00016.89
8.0.230.0000.00716.91
8.0.220.0000.00716.86
8.0.210.0000.00716.72
8.0.200.0000.00916.97
8.0.190.0000.00816.84
8.0.180.0040.00416.72
8.0.170.0040.00416.73
8.0.160.0070.00016.85
8.0.150.0000.01016.82
8.0.140.0040.00416.78
8.0.130.0030.00313.18
8.0.120.0060.00316.81
8.0.110.0040.00416.64
8.0.100.0040.00416.69
8.0.90.0000.00716.71
8.0.80.0110.00716.88
8.0.70.0080.00016.75
8.0.60.0000.00816.66
8.0.50.0040.00416.86
8.0.30.0090.00816.87
8.0.20.0110.01017.40
8.0.10.0070.00016.83
8.0.00.0090.00916.57
7.4.330.0000.00516.68
7.4.320.0060.00016.54
7.4.300.0050.00216.47
7.4.290.0000.00716.59
7.4.280.0040.00416.59
7.4.270.0040.00416.47
7.4.260.0000.00716.50
7.4.250.0070.00016.45
7.4.240.0040.00416.64
7.4.230.0040.00416.70
7.4.220.0050.00516.49
7.4.210.0090.01016.53
7.4.200.0040.00416.38
7.4.160.0110.00616.45
7.4.150.0160.00317.40
7.4.140.0110.00817.86
7.4.130.0080.01616.77
7.4.120.0120.00716.47
7.4.110.0060.01516.37
7.4.100.0090.01216.70
7.4.90.0140.00316.58
7.4.80.0060.01219.39
7.4.70.0140.00416.52
7.4.60.0060.01016.47
7.4.50.0060.00916.54
7.4.40.0080.00816.30
7.4.10.0070.01114.76
7.4.00.0110.00715.04
7.3.330.0050.00013.24
7.3.320.0030.00313.21
7.3.310.0040.00416.28
7.3.300.0000.00616.25
7.3.290.0070.01116.25
7.3.280.0080.01216.24
7.3.270.0150.00317.40
7.3.260.0060.01116.44
7.3.250.0110.00816.32
7.3.240.0090.00916.25
7.3.230.0140.00916.29
7.3.210.0100.00616.36
7.3.200.0070.01016.38
7.3.190.0070.01316.36
7.3.180.0110.00816.37
7.3.170.0090.00616.30
7.3.160.0100.00616.23
7.3.130.0160.00314.82
7.3.120.0060.01014.72
7.3.110.0070.01214.83
7.3.100.0030.01114.77
7.3.90.0070.01014.82
7.3.80.0070.00514.81
7.3.70.0030.01114.82
7.3.60.0050.01014.69
7.3.50.0060.00814.58
7.3.40.0060.00714.79
7.3.30.0070.00614.71
7.3.20.0050.01016.69
7.3.10.0090.00416.58
7.3.00.0060.00716.73
7.2.330.0150.00916.67
7.2.320.0120.00916.74
7.2.310.0140.00316.51
7.2.300.0130.01016.56
7.2.290.0070.01016.70
7.2.260.0040.01414.96
7.2.250.0140.00514.80
7.2.240.0070.00915.15
7.2.230.0090.00715.06
7.2.220.0020.01615.05
7.2.210.0070.00415.01
7.2.200.0050.01215.08
7.2.190.0080.00815.00
7.2.180.0060.00314.78
7.2.170.0060.00615.01
7.2.160.0070.00714.90
7.2.150.0040.00816.77
7.2.140.0030.00716.69
7.2.130.0080.00616.84
7.2.120.0030.00616.59
7.2.110.0030.00816.88
7.2.100.0050.01116.92
7.2.90.0060.00616.97
7.2.80.0000.00916.62
7.2.70.0050.00716.83
7.2.60.0080.00717.00
7.2.50.0090.00916.76
7.2.40.0100.00616.77
7.2.30.0080.00816.94
7.2.20.0070.00716.94
7.2.10.0210.00517.14
7.2.00.0160.01217.20
7.1.330.0070.00715.56
7.1.320.0060.00715.76
7.1.310.0080.00615.85
7.1.300.0030.01115.65
7.1.290.0040.00615.56
7.1.280.0090.00615.78
7.1.270.0060.00615.78
7.1.260.0040.01115.63
7.1.250.0060.00915.66
7.1.240.0040.00715.67
7.1.230.0100.00315.90
7.1.220.0070.00715.83
7.1.210.0070.00715.84
7.1.200.0040.00915.56
7.1.190.0040.00415.87
7.1.180.0070.00715.85
7.1.170.0030.00715.48
7.1.160.0030.01015.50
7.1.150.0040.00415.89
7.1.140.0090.00615.83
7.1.130.0040.01215.75
7.1.120.0220.00816.17
7.1.110.0210.01315.87
7.1.100.0200.00815.94
7.1.90.0230.00815.81
7.1.80.0180.01015.87
7.1.70.0150.00815.53
7.1.60.0160.01424.37
7.1.50.0210.00724.15
7.1.40.0350.01023.97
7.1.30.0540.01524.05
7.1.20.0280.01024.11
7.1.10.0130.01115.15
7.1.00.0130.01015.34
7.0.330.0060.00615.36
7.0.320.0060.00915.27
7.0.310.0030.01015.39
7.0.300.0040.00415.39
7.0.290.0060.00315.50
7.0.280.0000.01015.53
7.0.270.0000.01215.32
7.0.260.0030.00715.54
7.0.250.0070.00715.11
7.0.240.0090.00315.46
7.0.230.0090.00615.10
7.0.220.0070.00315.52
7.0.210.0030.00915.18
7.0.200.0030.01015.04
7.0.190.0000.00815.42
7.0.180.0070.00715.27
7.0.170.0070.00715.39
7.0.160.0080.00315.16
7.0.150.0030.01015.41
7.0.140.0040.01115.38
7.0.130.0040.00415.15
7.0.120.0060.01015.21
7.0.110.0030.01015.29
7.0.100.0120.00615.50
7.0.90.0000.01715.35
7.0.80.0000.01315.25
7.0.70.0000.01215.37
7.0.60.0040.00415.40
7.0.50.0000.01415.31
7.0.40.0030.00713.70
7.0.30.0040.01113.70
7.0.20.0000.01013.70
7.0.10.0090.00313.70
7.0.00.0000.00813.70
5.6.400.0110.00414.53
5.6.390.0080.00414.24
5.6.380.0040.00714.34
5.6.370.0040.01114.30
5.6.360.0070.00714.50
5.6.350.0000.01414.43
5.6.340.0030.00914.46
5.6.330.0150.00013.85
5.6.320.0090.00614.33
5.6.310.0070.00714.29
5.6.300.0030.00914.11
5.6.290.0050.00314.28
5.6.280.0090.00014.25
5.6.270.0040.01114.52
5.6.260.0130.00614.37
5.6.250.0100.00714.37
5.6.240.0110.00414.27
5.6.230.0070.00714.04
5.6.220.0040.01114.27
5.6.210.0040.00814.38
5.6.200.0040.01114.19
5.6.190.0000.00914.59
5.6.180.0100.00314.18
5.6.170.0060.00614.10
5.6.160.0030.01014.35
5.6.150.0100.00014.26
5.6.140.0030.01414.27
5.6.130.0070.01014.23
5.6.120.0070.01014.26
5.6.110.0070.01314.36
5.6.100.0030.01714.31
5.6.90.0000.00814.33
5.6.80.0030.00714.18
5.6.70.0000.01414.42
5.6.60.0060.00914.34
5.6.50.0060.00914.01
5.6.40.0030.01314.17
5.6.30.0030.00714.17
5.6.20.0110.00414.26
5.6.10.0040.00814.36
5.6.00.0030.01314.07

preferences:
29.14 ms | 403 KiB | 5 Q