3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function setBar(Bar $bar) {} } class Baz extends Foo { public function setBar(Tab $bar) {} }

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.0180.00316.86
8.3.50.0290.00821.97
8.3.40.0110.00418.49
8.3.30.0100.00318.72
8.3.20.0070.00020.38
8.3.10.0000.00823.39
8.3.00.0040.00419.26
8.2.180.0140.00418.25
8.2.170.0140.00022.96
8.2.160.0000.01720.50
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00017.38
8.2.110.0050.00522.02
8.2.100.0080.00417.93
8.2.90.0000.00919.17
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0070.00019.26
8.2.30.0040.00420.57
8.2.20.0000.00717.62
8.2.10.0030.00518.05
8.2.00.0060.00317.90
8.1.280.0140.00725.92
8.1.270.0070.00024.66
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00022.64
8.1.230.0080.00417.64
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0050.00319.03
8.1.160.0050.00222.07
8.1.150.0000.00718.86
8.1.140.0030.00619.42
8.1.130.0030.00317.62
8.1.120.0040.00417.46
8.1.110.0070.00017.44
8.1.100.0000.00717.28
8.1.90.0000.00717.43
8.1.80.0000.00817.27
8.1.70.0030.00517.24
8.1.60.0030.00617.45
8.1.50.0040.00417.35
8.1.40.0030.00517.34
8.1.30.0030.00517.41
8.1.20.0040.00417.45
8.1.10.0000.00817.41
8.1.00.0000.01117.21
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0070.00018.36
8.0.270.0040.00417.25
8.0.260.0030.00317.20
8.0.250.0000.00716.97
8.0.240.0050.00216.94
8.0.230.0030.00316.82
8.0.220.0000.00716.93
8.0.210.0040.00416.89
8.0.200.0000.00816.95
8.0.190.0040.00416.90
8.0.180.0040.00416.90
8.0.170.0040.00416.90
8.0.160.0030.00316.82
8.0.150.0070.00016.84
8.0.140.0000.00716.88
8.0.130.0050.00013.29
8.0.120.0000.00716.84
8.0.110.0030.00516.89
8.0.100.0070.00016.95
8.0.90.0000.00716.74
8.0.80.0030.01216.78
8.0.70.0000.00816.85
8.0.60.0050.00316.78
8.0.50.0040.00416.70
8.0.30.0150.00416.85
8.0.20.0130.00817.40
8.0.10.0000.00716.79
8.0.00.0070.01016.58
7.4.330.0060.00015.08
7.4.320.0030.00316.41
7.4.300.0000.00616.51
7.4.290.0000.00716.57
7.4.280.0030.00616.51
7.4.270.0030.00516.34
7.4.260.0040.00416.40
7.4.250.0030.00516.39
7.4.240.0030.00416.51
7.4.230.0030.00316.56
7.4.220.0030.01216.53
7.4.210.0060.00916.51
7.4.200.0030.00316.31
7.4.160.0130.00316.52
7.4.150.0170.00017.40
7.4.140.0120.01317.86
7.4.130.0070.01416.42
7.4.120.0090.00916.50
7.4.110.0090.00916.39
7.4.100.0140.00316.57
7.4.90.0090.00616.47
7.4.80.0220.01319.39
7.4.70.0040.01316.59
7.4.60.0130.00616.44
7.4.50.0000.00816.39
7.4.40.0080.01116.28
7.4.30.0030.01316.37
7.4.00.0040.01214.70
7.3.330.0050.00013.23
7.3.320.0050.00013.18
7.3.310.0030.00316.26
7.3.300.0000.00716.10
7.3.290.0080.00716.20
7.3.280.0060.00816.27
7.3.270.0030.01517.40
7.3.260.0150.00916.29
7.3.250.0090.00816.36
7.3.240.0050.01416.20
7.3.230.0210.00016.39
7.3.210.0140.00316.39
7.3.200.0060.01016.40
7.3.190.0120.00616.25
7.3.180.0080.00816.26
7.3.170.0130.00316.36
7.3.160.0110.01116.39
7.3.10.0080.00416.75
7.3.00.0070.00416.53
7.2.330.0060.01216.23
7.2.320.0140.00316.57
7.2.310.0100.01016.58
7.2.300.0110.00516.53
7.2.290.0100.00716.29
7.2.130.0080.00316.43
7.2.120.0030.00716.60
7.2.110.0060.00616.72
7.2.100.0030.01016.68
7.2.90.0000.01216.72
7.2.80.0040.00716.60
7.2.70.0000.01116.78
7.2.60.0070.00716.68
7.2.50.0060.00616.73
7.2.40.0040.00716.63
7.2.30.0070.00716.48
7.2.20.0070.00716.52
7.2.10.0030.01016.57
7.2.00.0060.00517.89
7.1.250.0030.00915.43
7.1.200.0090.00315.49
7.1.100.0180.00317.79
7.1.70.0000.00816.96
7.1.60.0090.00919.43
7.1.50.0060.01616.91
7.1.00.0070.07022.27
7.0.200.0180.00414.48
7.0.60.0100.04320.07
7.0.50.0100.04017.90
7.0.40.0030.04320.09
7.0.30.0030.06320.29
7.0.20.0330.07720.10
7.0.10.0030.04320.23
7.0.00.0070.08720.20
5.6.280.0000.06720.99
5.6.210.0070.03720.50
5.6.200.0030.04318.25
5.6.190.0100.08020.61
5.6.180.0330.04720.68
5.6.170.0300.04720.54
5.6.160.0070.07020.44
5.6.150.0070.08318.13
5.6.140.0000.04718.25
5.6.130.0030.05718.18
5.6.120.0070.06720.98
5.6.110.0070.07720.98
5.6.100.0070.09021.00
5.6.90.0130.07021.03
5.6.80.0070.07720.29
5.5.350.0300.04020.45
5.5.340.0200.05718.05
5.5.330.0070.07320.30
5.5.320.0170.05320.36
5.5.310.0200.08020.34
5.5.300.0130.05018.07
5.5.290.0000.08018.02
5.5.280.0000.08020.79
5.5.270.0030.04020.79
5.5.260.0100.08020.77
5.5.250.0100.09020.68
5.5.240.0030.05320.16
5.4.450.0270.04719.45
5.4.440.0230.04719.57
5.4.430.0070.06019.62
5.4.420.0270.04719.53
5.4.410.0270.05019.07
5.4.400.0170.05019.17
5.4.390.0100.06719.16
5.4.380.0130.05718.98
5.4.370.0230.04719.11
5.4.360.0170.05719.29
5.4.350.0170.06319.25
5.4.340.0200.04719.23
5.4.320.0170.05319.16
5.4.310.0170.04719.15
5.4.300.0200.05019.36
5.4.290.0100.06019.01
5.4.280.0270.04319.24
5.4.270.0230.04719.24
5.4.260.0200.05019.28
5.4.250.0170.05019.11
5.4.240.0070.06019.14
5.4.230.0170.05019.13
5.4.220.0100.06319.26
5.4.210.0170.05019.13
5.4.200.0130.05319.14
5.4.190.0230.04319.24
5.4.180.0130.05719.26
5.4.170.0100.05718.96
5.4.160.0200.04719.12
5.4.150.0200.05019.23
5.4.140.0130.06016.80
5.4.130.0030.05716.32
5.4.120.0170.04716.46
5.4.110.0100.05316.52
5.4.100.0200.05316.67
5.4.90.0170.04716.64
5.4.80.0170.05016.29
5.4.70.0100.05316.48
5.4.60.0200.04316.50
5.4.50.0230.03716.40
5.4.40.0170.04316.22
5.4.30.0100.05016.62
5.4.20.0100.05316.48
5.4.10.0130.05716.50
5.4.00.0300.03315.98

preferences:
51.24 ms | 401 KiB | 5 Q