3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { public function test(\StdClass $objec); } class Foo implements FooInterface { public function test(\StdClass $object) { } } class Bar extends Foo { public function test(array $object) { echo 'yes'; } } $bar = new Bar(); $bar->test(array());

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.0160.00616.61
8.3.50.0280.00821.09
8.3.40.0100.01318.85
8.3.30.0060.01318.67
8.3.20.0000.01420.22
8.3.10.0050.00323.39
8.3.00.0030.00519.56
8.2.180.0120.00316.38
8.2.170.0070.00722.96
8.2.160.0070.00720.36
8.2.150.0040.00424.18
8.2.140.0090.00624.66
8.2.130.0090.00026.16
8.2.120.0060.00317.50
8.2.110.0030.01322.22
8.2.100.0040.00817.63
8.2.90.0080.00019.21
8.2.80.0030.00717.97
8.2.70.0030.00617.50
8.2.60.0090.00317.91
8.2.50.0060.00318.07
8.2.40.0060.00319.45
8.2.30.0080.00019.70
8.2.20.0040.00417.69
8.2.10.0000.00718.12
8.2.00.0040.00417.96
8.1.280.0070.01025.92
8.1.270.0030.00520.14
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00022.02
8.1.230.0080.00321.03
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00917.23
8.1.180.0030.00518.10
8.1.170.0050.00318.54
8.1.160.0070.00021.89
8.1.150.0080.00018.84
8.1.140.0000.00719.44
8.1.130.0000.00717.61
8.1.120.0030.00317.31
8.1.110.0060.00317.32
8.1.100.0000.00817.29
8.1.90.0030.00317.30
8.1.80.0040.00417.41
8.1.70.0030.00317.39
8.1.60.0020.00517.43
8.1.50.0060.00317.34
8.1.40.0080.00017.49
8.1.30.0030.00517.54
8.1.20.0080.00017.57
8.1.10.0000.00717.30
8.1.00.0070.00017.37
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.34
8.0.270.0040.00417.18
8.0.260.0030.00317.16
8.0.250.0000.00716.98
8.0.240.0060.00016.94
8.0.230.0070.00016.88
8.0.220.0070.00016.73
8.0.210.0000.00816.80
8.0.200.0030.00316.96
8.0.190.0000.00716.85
8.0.180.0000.00816.80
8.0.170.0030.00516.88
8.0.160.0040.00416.89
8.0.150.0040.00416.68
8.0.140.0000.00816.89
8.0.130.0030.00313.00
8.0.120.0080.00016.83
8.0.110.0070.00016.89
8.0.100.0000.00816.93
8.0.90.0070.00016.73
8.0.80.0030.01216.96
8.0.70.0080.00016.74
8.0.60.0000.00716.91
8.0.50.0000.00816.76
8.0.30.0090.01017.03
8.0.20.0140.00517.40
8.0.10.0000.00717.05
8.0.00.0090.00816.70
7.4.330.0020.00215.08
7.4.320.0030.00316.55
7.4.300.0000.00616.55
7.4.290.0030.00316.51
7.4.280.0000.00816.54
7.4.270.0070.00016.55
7.4.260.0030.00516.52
7.4.250.0050.00316.36
7.4.240.0020.00516.54
7.4.230.0070.00016.48
7.4.220.0110.00616.50
7.4.210.0130.01016.55
7.4.200.0070.00016.36
7.4.160.0080.00816.59
7.4.150.0100.01017.40
7.4.140.0140.00917.86
7.4.130.0050.01216.38
7.4.120.0110.00716.47
7.4.110.0070.01116.68
7.4.100.0060.01216.56
7.4.90.0100.00916.46
7.4.80.0070.01419.39
7.4.70.0140.00716.54
7.4.60.0070.01016.38
7.4.50.0000.00816.61
7.4.40.0100.00616.37
7.4.30.0120.01216.62
7.4.00.0040.00814.84
7.3.330.0030.00313.27
7.3.320.0030.00313.30
7.3.310.0000.00816.25
7.3.300.0040.00416.30
7.3.290.0100.00916.22
7.3.280.0080.00916.21
7.3.270.0090.00917.40
7.3.260.0110.00816.25
7.3.250.0100.00916.39
7.3.240.0030.01316.30
7.3.230.0100.01116.39
7.3.210.0110.00616.29
7.3.200.0120.00816.39
7.3.190.0090.00616.34
7.3.180.0000.01516.27
7.3.170.0100.00616.51
7.3.160.0050.01116.32
7.2.330.0110.00616.50
7.2.320.0090.00916.36
7.2.310.0080.00916.60
7.2.300.0100.00716.34
7.2.290.0110.00716.58
7.2.60.0040.00416.63
7.2.00.0060.00619.33
7.1.200.0140.00415.58
7.1.100.0030.00917.92
7.1.70.0000.00816.75
7.1.60.0180.00720.03
7.1.50.0110.01116.85
7.1.00.0000.08022.51
7.0.200.0000.00716.40
7.0.60.0070.06320.07
7.0.50.0070.03717.87
7.0.40.0100.07720.09
7.0.30.0470.05320.08
7.0.20.0300.08020.34
7.0.10.0030.09020.07
7.0.00.0070.05720.20
5.6.280.0100.05020.90
5.6.210.0100.07720.48
5.6.200.0070.08018.19
5.6.190.0030.05020.39
5.6.180.1530.03720.55
5.6.170.0200.05320.44
5.6.160.0070.04320.48
5.6.150.0030.06318.14
5.6.140.0100.04318.24
5.6.130.0030.04018.18
5.6.120.0070.08020.97
5.6.110.0170.07021.01
5.6.100.0030.08320.99
5.6.90.0030.09020.98
5.6.80.0100.08720.53
5.6.70.3170.03020.39
5.5.350.0270.06020.43
5.5.340.0070.08017.94
5.5.330.0130.08020.37
5.5.320.0270.07720.34
5.5.310.0300.07320.36
5.5.300.0100.03717.99
5.5.290.0070.08017.92
5.5.280.0100.04020.96
5.5.270.0030.04320.85
5.5.260.0030.04020.68
5.5.250.0070.06020.46
5.5.240.0200.04720.16
5.4.450.0100.06719.63
5.4.440.0170.06319.18
5.4.430.0200.05319.33
5.4.420.0200.08019.38
5.4.410.0170.08019.20
5.4.400.0130.06018.98
5.4.390.0170.05719.14
5.4.380.0100.06019.25
5.4.370.0130.06719.14
5.4.360.0030.07718.98
5.4.350.0170.05718.98
5.4.340.0170.06319.37
5.4.320.0230.05319.37
5.4.310.0200.05319.14
5.4.300.0200.05719.28
5.4.290.0230.06018.85
5.4.280.0200.05019.15
5.4.270.0200.04718.86
5.4.260.0130.05718.84
5.4.250.0300.06019.38
5.4.240.0200.07319.30
5.4.230.0130.07319.39
5.4.220.0200.06718.82
5.4.210.0230.06719.14
5.4.200.0400.05719.12
5.4.190.0200.06318.82
5.4.180.0300.06018.85
5.4.170.0230.04719.14
5.4.160.0130.05719.04
5.4.150.0230.04719.12
5.4.140.0230.05016.73
5.4.130.0030.06716.24
5.4.120.0200.06716.31
5.4.110.0230.06716.23
5.4.100.0170.05016.57
5.4.90.0230.06016.32
5.4.80.0200.06316.48
5.4.70.0430.05016.38
5.4.60.0300.07016.43
5.4.50.0000.07316.38
5.4.40.0000.07316.25
5.4.30.0130.04716.48
5.4.20.0300.06716.53

preferences:
56.96 ms | 401 KiB | 5 Q