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) { } } class Bar extends Foo { public function test() { echo 'yes'; } } $bar = new Bar(); $bar->test();

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.0140.00716.75
8.3.50.0200.00920.94
8.3.40.0090.00618.71
8.3.30.0040.01118.58
8.3.20.0140.00020.30
8.3.10.0000.00821.63
8.3.00.0080.00019.66
8.2.180.0140.00716.38
8.2.170.0040.01122.96
8.2.160.0130.00020.47
8.2.150.0050.00324.18
8.2.140.0080.00624.66
8.2.130.0060.00326.16
8.2.120.0030.00717.35
8.2.110.0090.00019.27
8.2.100.0060.00617.59
8.2.90.0080.00019.11
8.2.80.0090.00017.97
8.2.70.0030.00617.38
8.2.60.0040.00417.91
8.2.50.0000.00818.07
8.2.40.0020.00519.38
8.2.30.0040.00419.66
8.2.20.0000.00717.46
8.2.10.0070.00017.81
8.2.00.0040.00417.83
8.1.280.0070.01325.92
8.1.270.0030.00920.24
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00623.97
8.1.230.0000.01017.45
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0000.00718.52
8.1.160.0050.00221.94
8.1.150.0000.00718.74
8.1.140.0000.00817.27
8.1.130.0000.00717.56
8.1.120.0000.00717.32
8.1.110.0060.00317.27
8.1.100.0030.00517.39
8.1.90.0000.00817.25
8.1.80.0040.00317.27
8.1.70.0070.00017.38
8.1.60.0030.00517.39
8.1.50.0040.00417.37
8.1.40.0040.00417.42
8.1.30.0060.00317.53
8.1.20.0040.00417.48
8.1.10.0030.00617.28
8.1.00.0040.00417.28
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.19
8.0.270.0000.00717.19
8.0.260.0060.00017.17
8.0.250.0040.00416.84
8.0.240.0050.00316.93
8.0.230.0000.00716.75
8.0.220.0000.00716.88
8.0.210.0040.00416.86
8.0.200.0000.00616.89
8.0.190.0070.00016.80
8.0.180.0070.00016.85
8.0.170.0030.00516.84
8.0.160.0030.00316.91
8.0.150.0000.00716.83
8.0.140.0070.00016.77
8.0.130.0050.00013.24
8.0.120.0040.00416.77
8.0.110.0050.00216.72
8.0.100.0050.00316.71
8.0.90.0000.00716.79
8.0.80.0060.01416.75
8.0.70.0050.00316.60
8.0.60.0050.00216.69
8.0.50.0000.00816.89
8.0.30.0160.00516.98
8.0.20.0100.01017.40
8.0.10.0070.00016.96
8.0.00.0100.01116.64
7.4.330.0050.00015.08
7.4.320.0030.00316.44
7.4.300.0060.00016.60
7.4.290.0000.00716.49
7.4.280.0040.00416.59
7.4.270.0080.00016.50
7.4.260.0000.00716.59
7.4.250.0050.00316.49
7.4.240.0030.00516.59
7.4.230.0070.00016.34
7.4.220.0130.00716.54
7.4.210.0090.00616.46
7.4.200.0040.00416.34
7.4.160.0070.01016.43
7.4.150.0100.00717.40
7.4.140.0130.01117.86
7.4.130.0070.01016.45
7.4.120.0090.01016.45
7.4.110.0110.00716.47
7.4.100.0070.01416.48
7.4.90.0120.00616.36
7.4.80.0140.00719.39
7.4.70.0150.00616.46
7.4.60.0070.01616.49
7.4.50.0030.00516.52
7.4.40.0130.00716.26
7.4.30.0080.01516.53
7.4.00.0090.00914.84
7.3.330.0000.00513.26
7.3.320.0050.00013.38
7.3.310.0030.00316.25
7.3.300.0030.00316.32
7.3.290.0040.01116.27
7.3.280.0100.00816.32
7.3.270.0070.01017.40
7.3.260.0140.00316.24
7.3.250.0110.00616.36
7.3.240.0070.01016.52
7.3.230.0110.00716.39
7.3.210.0120.00616.39
7.3.200.0090.00916.28
7.3.190.0040.01316.31
7.3.180.0030.01216.37
7.3.170.0060.00916.32
7.3.160.0140.00316.29
7.3.120.0070.01214.79
7.3.110.0110.00514.96
7.3.100.0100.00614.65
7.3.90.0050.00514.63
7.3.80.0060.00714.79
7.3.70.0030.00814.60
7.3.60.0090.00414.81
7.3.50.0060.00814.90
7.3.40.0070.00714.78
7.3.30.0060.01014.70
7.3.20.0060.01116.66
7.3.10.0050.00716.53
7.3.00.0040.00716.53
7.2.330.0120.01116.50
7.2.320.0190.00316.46
7.2.310.0140.00616.75
7.2.300.0000.01616.71
7.2.290.0100.01016.30
7.2.250.0080.01215.18
7.2.240.0080.01114.88
7.2.230.0070.00715.08
7.2.220.0050.00914.98
7.2.210.0060.00914.86
7.2.200.0060.00914.97
7.2.190.0050.00914.82
7.2.180.0030.01115.02
7.2.170.0030.01214.91
7.2.60.0070.00716.62
7.2.00.0000.01419.20
7.1.330.0040.00915.74
7.1.320.0030.00915.80
7.1.310.0100.00415.74
7.1.300.0030.00815.62
7.1.290.0050.00915.61
7.1.280.0060.00815.65
7.1.270.0070.00715.70
7.1.260.0060.00415.38
7.1.200.0080.00415.57
7.1.70.0000.00717.14
7.1.60.0120.00816.84
7.1.50.0130.01316.90
7.1.00.0100.06722.30
7.0.200.0090.00616.66
7.0.60.0030.06319.93
7.0.50.0030.06717.88
7.0.40.0030.06320.24
7.0.30.0230.08020.08
7.0.20.0170.05020.15
7.0.10.0030.05720.27
7.0.00.0070.07320.06
5.6.280.0130.06021.11
5.6.210.0030.04020.77
5.6.200.0130.06018.19
5.6.190.0100.04320.52
5.6.180.0270.04020.55
5.6.170.0300.05720.45
5.6.160.0100.08320.39
5.6.150.0100.07718.17
5.6.140.0070.03718.24
5.6.130.0130.07318.12
5.6.120.0200.06721.12
5.6.110.0200.07321.03
5.6.100.0170.03320.98
5.6.90.0130.08021.02
5.6.80.0030.08320.38
5.5.350.3970.03320.44
5.5.340.0070.03718.09
5.5.330.0130.07020.32
5.5.320.0100.07720.34
5.5.310.0300.07720.27
5.5.300.0100.08018.05
5.5.290.0170.07018.08
5.5.280.0230.07020.76
5.5.270.0200.05720.77
5.5.260.0100.08320.87
5.5.250.0170.07320.71
5.5.240.0170.07320.16
5.4.450.0230.05019.32
5.4.440.0300.07319.41
5.4.430.0330.04019.47
5.4.420.0300.06019.54
5.4.410.0300.05019.36
5.4.400.0330.06718.88
5.4.390.0270.07718.99
5.4.380.0300.06718.86
5.4.370.0370.06019.06
5.4.360.0370.02719.18
5.4.350.0300.06319.07
5.4.340.0300.07319.16
5.4.320.0230.04019.00
5.4.310.0330.06719.19
5.4.300.0370.06319.08
5.4.290.0300.06319.13
5.4.280.0330.05019.31
5.4.270.0300.03718.95
5.4.260.0270.06719.24
5.4.250.0230.03719.22
5.4.240.0200.04019.19
5.4.230.0230.03318.86
5.4.220.0200.03319.13
5.4.210.0130.04018.98
5.4.200.0100.05019.21
5.4.190.0200.03318.86
5.4.180.0170.04319.07
5.4.170.0270.03318.86
5.4.160.0300.05719.14
5.4.150.0230.04019.17
5.4.140.0300.03716.72
5.4.130.0200.03316.33
5.4.120.0200.04316.35
5.4.110.0170.03716.50
5.4.100.0170.04316.31
5.4.90.0130.03716.42
5.4.80.0200.03716.48

preferences:
60.67 ms | 401 KiB | 5 Q