3v4l.org

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

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.0070.00718.71
8.3.30.0070.00718.72
8.3.20.0030.01020.39
8.3.10.0050.00223.48
8.3.00.0040.00419.43
8.2.170.0150.00022.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0040.01124.66
8.2.130.0080.00026.16
8.2.120.0040.00417.35
8.2.110.0000.00919.32
8.2.100.0040.00817.78
8.2.90.0080.00019.09
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0080.00017.80
8.2.50.0030.00518.07
8.2.40.0040.00419.39
8.2.30.0080.00019.61
8.2.20.0000.00817.49
8.2.10.0070.00017.82
8.2.00.0050.00217.94
8.1.270.0040.00420.42
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0080.00420.32
8.1.230.0070.00419.00
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0000.00818.88
8.1.180.0000.00818.10
8.1.170.0000.00818.49
8.1.160.0040.00421.89
8.1.150.0040.00418.77
8.1.140.0040.00417.33
8.1.130.0000.00717.56
8.1.120.0020.00517.39
8.1.110.0070.00017.26
8.1.100.0040.00417.33
8.1.90.0070.00017.38
8.1.80.0040.00417.22
8.1.70.0000.00717.21
8.1.60.0040.00417.44
8.1.50.0000.00717.41
8.1.40.0040.00417.43
8.1.30.0040.00417.46
8.1.20.0060.00317.43
8.1.10.0000.00717.44
8.1.00.0000.00717.37
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.33
8.0.270.0070.00017.05
8.0.260.0060.00017.13
8.0.250.0040.00416.82
8.0.240.0000.00716.83
8.0.230.0040.00416.95
8.0.220.0000.00716.80
8.0.210.0050.00316.83
8.0.200.0030.00316.79
8.0.190.0030.00316.94
8.0.180.0000.00716.75
8.0.170.0040.00416.73
8.0.160.0070.00016.86
8.0.150.0000.00716.74
8.0.140.0030.00516.80
8.0.130.0030.00313.25
8.0.120.0040.00416.79
8.0.110.0040.00416.85
8.0.100.0050.00316.70
8.0.90.0040.00416.87
8.0.80.0140.00416.87
8.0.70.0020.00516.75
8.0.60.0000.00716.79
8.0.50.0040.00416.79
8.0.30.0070.01016.92
8.0.20.0140.00617.40
8.0.10.0040.00416.80
8.0.00.0080.01116.57
7.4.330.0050.00015.08
7.4.320.0030.00316.51
7.4.300.0000.00716.61
7.4.290.0030.00316.61
7.4.280.0000.00716.59
7.4.270.0040.00416.53
7.4.260.0070.00016.45
7.4.250.0050.00316.55
7.4.240.0070.00216.54
7.4.230.0070.00016.68
7.4.220.0060.01216.54
7.4.210.0060.00916.54
7.4.200.0080.00016.64
7.4.160.0110.00516.41
7.4.150.0130.00517.40
7.4.140.0140.00817.86
7.4.130.0080.01016.64
7.4.120.0070.01016.60
7.4.110.0150.00316.58
7.4.100.0120.01216.23
7.4.90.0180.00016.55
7.4.80.0140.00319.39
7.4.70.0060.01416.45
7.4.60.0120.00316.59
7.4.50.0040.00416.59
7.4.40.0120.00616.66
7.4.30.0140.01016.62
7.4.00.0030.01515.06
7.3.330.0060.00013.22
7.3.320.0030.00313.26
7.3.310.0030.00316.30
7.3.300.0030.00316.29
7.3.290.0080.01016.31
7.3.280.0060.01216.27
7.3.270.0100.00617.40
7.3.260.0150.00316.42
7.3.250.0080.01016.28
7.3.240.0080.00816.36
7.3.230.0130.00616.39
7.3.210.0100.01016.37
7.3.200.0040.01316.38
7.3.190.0060.00916.55
7.3.180.0080.00816.43
7.3.170.0100.00716.38
7.3.160.0030.01316.35
7.2.330.0150.00916.41
7.2.320.0030.01716.36
7.2.310.0070.01716.59
7.2.300.0060.01016.76
7.2.290.0070.01316.79
7.2.60.0110.00716.59
7.2.00.0000.00919.41
7.1.200.0080.00415.56
7.1.100.0030.01317.86
7.1.70.0040.00417.07
7.1.60.0070.01720.03
7.1.50.0070.01716.94
7.1.00.0000.08022.57
7.0.200.0020.00716.62
7.0.60.0100.08320.07
7.0.50.0070.08017.84
7.0.40.0030.04320.14
7.0.30.0400.06720.12
7.0.20.0130.05020.19
7.0.10.0030.05320.30
7.0.00.0030.05320.22
5.6.280.0030.03021.13
5.6.210.0100.07720.73
5.6.200.0070.05018.14
5.6.190.0070.09320.54
5.6.180.0000.07320.61
5.6.170.0230.05320.54
5.6.160.0070.08320.57
5.6.150.0070.06318.16
5.6.140.0130.07718.15
5.6.130.0070.09018.18
5.6.120.0070.08321.02
5.6.110.0130.08021.01
5.6.100.0100.08021.02
5.6.90.0070.04720.96
5.6.80.0000.08320.43
5.5.350.4400.04320.45
5.5.340.0030.04017.92
5.5.330.0030.05020.38
5.5.320.0070.03720.20
5.5.310.0270.05320.42
5.5.300.0070.05717.95
5.5.290.0130.07018.03
5.5.280.0100.05320.73
5.5.270.0100.08320.96
5.5.260.0100.05720.76
5.5.250.0030.04020.71
5.5.240.0170.07320.16
5.4.450.0400.05719.48
5.4.440.0570.06019.17
5.4.430.0500.05719.69
5.4.420.0570.06319.65
5.4.410.0600.06319.47
5.4.400.0530.06019.12
5.4.390.0600.05719.37
5.4.380.0630.06719.13
5.4.370.0600.06718.87
5.4.360.0730.06319.37
5.4.350.0630.05719.33
5.4.340.0530.07719.28
5.4.320.0630.05719.06
5.4.310.0670.05319.02
5.4.300.0600.06019.12
5.4.290.0530.07019.37
5.4.280.0700.05319.30
5.4.270.0500.06018.98
5.4.260.0700.05719.25
5.4.250.0470.06018.83
5.4.240.0530.06719.14
5.4.230.0670.05318.98
5.4.220.0570.06319.01
5.4.210.0670.06718.83
5.4.200.0600.06719.27
5.4.190.0570.05319.10
5.4.180.0870.03719.27
5.4.170.0830.04019.00
5.4.160.0500.05719.13
5.4.150.0500.06719.25
5.4.140.0500.05016.36
5.4.130.0600.04316.48
5.4.120.0570.05016.45
5.4.110.0530.07716.65
5.4.100.0600.05316.65
5.4.90.0670.05716.67
5.4.80.0630.05016.68
5.4.70.0270.08016.49
5.4.60.0130.03716.43
5.4.50.0300.07016.33
5.4.40.0370.05716.42
5.4.30.0000.04016.38
5.4.20.0330.06016.42
5.4.10.0270.03316.30

preferences:
43.15 ms | 400 KiB | 5 Q