3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B {} class Overloaded { protected $value; //+overloaded function setValue(A $x) { $this->value = $x; } //+overloaded function setVаlue(B $x) { $this->value = $x; } function dump() { var_dump("The value =", $this->value); } } $something = new Overloaded(); $something->setValue(new A); $something->dump(); $something->setVаlue(new B); $something->dump();

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.0100.00718.56
8.3.50.0110.01118.37
8.3.40.0110.00418.64
8.3.30.0140.00018.76
8.3.20.0080.00020.90
8.3.10.0070.00021.76
8.3.00.0040.00417.63
8.2.180.0110.01116.75
8.2.170.0170.00322.96
8.2.160.0080.00620.96
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00417.82
8.2.120.0040.00426.35
8.2.110.0030.00722.13
8.2.100.0080.00317.78
8.2.90.0090.00020.48
8.2.80.0060.00317.97
8.2.70.0050.00317.93
8.2.60.0000.00718.03
8.2.50.0070.00418.10
8.2.40.0040.00420.90
8.2.30.0000.00718.06
8.2.20.0040.00417.96
8.2.10.0040.00417.86
8.2.00.0000.00817.68
8.1.280.0090.00625.92
8.1.270.0040.00420.33
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00322.29
8.1.230.0080.00320.80
8.1.220.0050.00317.74
8.1.210.0000.00818.84
8.1.200.0040.00417.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.67
8.1.160.0000.00818.70
8.1.150.0050.00318.83
8.1.140.0000.00719.45
8.1.130.0070.00019.02
8.1.120.0000.00717.33
8.1.110.0090.00317.41
8.1.100.0050.00317.38
8.1.90.0070.00017.40
8.1.80.0000.00717.30
8.1.70.0040.00417.36
8.1.60.0080.00017.62
8.1.50.0090.00017.56
8.1.40.0000.00817.42
8.1.30.0040.00417.62
8.1.20.0030.00617.62
8.1.10.0000.00717.49
8.1.00.0000.00817.46
8.0.300.0060.00319.95
8.0.290.0090.00016.75
8.0.280.0000.00718.30
8.0.270.0080.00017.11
8.0.260.0030.00717.26
8.0.250.0040.00416.92
8.0.240.0050.00316.89
8.0.230.0000.00616.88
8.0.220.0000.00716.84
8.0.210.0030.00316.90
8.0.200.0000.00816.88
8.0.190.0000.00716.96
8.0.180.0000.00716.93
8.0.170.0000.00816.96
8.0.160.0080.00016.91
8.0.150.0000.00716.89
8.0.140.0070.00016.86
8.0.130.0000.00613.25
8.0.120.0000.00816.84
8.0.110.0000.00716.79
8.0.100.0000.00716.79
8.0.90.0030.00516.88
8.0.80.0060.01216.88
8.0.70.0060.00316.84
8.0.60.0080.00016.86
8.0.50.0070.00016.79
8.0.30.0120.00717.18
8.0.20.0110.00717.40
8.0.10.0040.00416.87
8.0.00.0030.01416.91
7.4.330.0000.00515.55
7.4.320.0060.00016.54
7.4.300.0040.00416.60
7.4.290.0070.00316.45
7.4.280.0050.00316.61
7.4.270.0000.00616.50
7.4.260.0030.00616.64
7.4.250.0030.00316.57
7.4.240.0030.00316.50
7.4.230.0030.00316.68
7.4.220.0200.00616.47
7.4.210.0090.00616.55
7.4.200.0070.00016.63
7.4.160.0050.01116.57
7.4.150.0130.00617.40
7.4.140.0110.01117.86
7.4.130.0100.00916.44
7.4.120.0060.01216.43
7.4.110.0130.00316.43
7.4.100.0130.00316.61
7.4.90.0040.01516.41
7.4.80.0030.01719.39
7.4.70.0130.00616.39
7.4.60.0080.00816.58
7.4.50.0040.01116.48
7.4.40.0180.00016.55
7.4.30.0030.01316.50
7.4.00.0040.01114.89
7.3.330.0060.00013.11
7.3.320.0020.00213.31
7.3.310.0000.00716.26
7.3.300.0020.00516.12
7.3.290.0080.00716.21
7.3.280.0110.00516.23
7.3.270.0160.00317.40
7.3.260.0170.00316.28
7.3.250.0100.00716.30
7.3.240.0070.00916.39
7.3.230.0130.00316.19
7.3.210.0050.01116.16
7.3.200.0070.01016.34
7.3.190.0030.01316.27
7.3.180.0120.00616.32
7.3.170.0030.01416.54
7.3.160.0160.00016.16
7.3.120.0100.00714.82
7.3.110.0080.00714.77
7.3.100.0030.00614.54
7.3.90.0000.01314.69
7.3.80.0070.00714.73
7.3.70.0030.01314.62
7.3.60.0030.01314.46
7.3.50.0070.00714.66
7.3.40.0110.00614.91
7.3.30.0080.00314.63
7.3.20.0070.00716.65
7.3.10.0100.00616.27
7.3.00.0100.00316.48
7.2.330.0090.00916.47
7.2.320.0130.00616.70
7.2.310.0160.00016.79
7.2.300.0180.00316.73
7.2.290.0110.00516.68
7.2.250.0060.01315.17
7.2.240.0130.00714.69
7.2.230.0110.00714.95
7.2.220.0000.00914.68
7.2.210.0070.01115.16
7.2.200.0070.00714.90
7.2.190.0070.01414.97
7.2.180.0030.01614.79
7.2.170.0050.00514.77
7.2.60.0090.00616.65
7.1.330.0100.00315.64
7.1.320.0090.00315.63
7.1.310.0040.01215.58
7.1.300.0070.01015.71
7.1.290.0040.01115.73
7.1.280.0060.00315.61
7.1.270.0090.00915.86
7.1.260.0040.00815.81
7.1.200.0040.00815.84
7.1.70.0000.00917.21
7.1.60.0000.01116.95
7.1.50.0040.00716.57
7.1.40.0040.00716.45
7.1.30.0030.00716.46
7.1.20.0100.00316.55
7.1.10.0000.00816.62
7.1.00.0060.00316.75
7.0.200.0040.00416.91
7.0.190.0000.00716.85
7.0.180.0050.00316.05
7.0.170.0000.00816.19
7.0.160.0040.00716.11
7.0.150.0030.00716.20
7.0.140.0030.00516.51
7.0.130.0040.00416.41
7.0.120.0060.00316.57
7.0.110.0100.00016.48
7.0.100.0060.00316.24
7.0.90.0000.00716.38
7.0.80.0000.00716.30
7.0.70.0000.00916.36
7.0.60.0000.01016.21
7.0.50.0000.00716.25
7.0.40.0060.00615.29
7.0.30.0060.01115.29
7.0.20.0000.01015.29
7.0.10.0050.00215.29
7.0.00.0000.00715.29
5.6.300.0030.04320.81
5.6.290.0060.04120.75
5.6.280.0030.04420.83
5.6.270.0060.04520.92
5.6.260.0130.03520.79
5.6.250.0000.04321.00
5.6.240.0100.03721.07
5.6.230.0060.03920.96
5.6.220.0000.04720.89
5.6.210.0000.04320.93
5.6.200.0000.04920.75
5.6.190.0070.05220.93
5.6.180.0040.03920.94
5.6.170.0030.04120.97
5.6.160.0030.04320.84
5.6.150.0030.04820.83
5.6.140.0000.05120.77
5.6.130.0030.04420.84
5.6.120.0100.03920.82
5.6.110.0000.04620.97
5.6.100.0060.04220.85
5.6.90.0030.04720.85
5.6.80.0060.03820.25
5.6.70.0070.04020.23
5.6.60.0030.05020.35
5.6.50.0030.04720.44
5.6.40.0130.03320.32
5.6.30.0030.03920.35
5.6.20.0030.04220.28
5.6.10.0130.03220.20
5.6.00.0070.03420.16

preferences:
62.21 ms | 401 KiB | 5 Q