3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function addCommands(iterable $commands) { } } class B extends A { public function addCommands(array $commands) { } }

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.0150.00018.38
8.3.50.0070.00720.00
8.3.40.0040.01118.71
8.3.30.0090.00618.60
8.3.20.0040.00421.90
8.3.10.0080.00023.48
8.3.00.0040.00421.85
8.2.180.0120.00616.50
8.2.170.0110.00722.96
8.2.160.0070.00720.41
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00420.35
8.2.120.0000.00826.35
8.2.110.0060.00320.52
8.2.100.0090.00317.72
8.2.90.0050.00319.11
8.2.80.0040.00417.97
8.2.70.0090.00017.38
8.2.60.0060.00317.92
8.2.50.0070.00018.10
8.2.40.0040.00420.59
8.2.30.0040.00419.00
8.2.20.0070.00017.93
8.2.10.0040.00417.89
8.2.00.0000.00717.79
8.1.280.0110.00425.92
8.1.270.0040.00422.13
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0100.00019.12
8.1.230.0080.00417.71
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0070.00417.23
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0040.00418.46
8.1.160.0040.00418.61
8.1.150.0040.00418.75
8.1.140.0000.00719.11
8.1.130.0030.00318.66
8.1.120.0030.00317.37
8.1.110.0000.00717.34
8.1.100.0030.00617.35
8.1.90.0040.00417.20
8.1.80.0030.00617.38
8.1.70.0040.00417.34
8.1.60.0030.00617.36
8.1.50.0030.00617.40
8.1.40.0040.00417.27
8.1.30.0000.00817.41
8.1.20.0050.00517.51
8.1.10.0000.00717.44
8.1.00.0050.00217.31
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0000.00718.31
8.0.270.0030.00316.99
8.0.260.0050.00316.79
8.0.250.0050.00216.88
8.0.240.0000.00716.85
8.0.230.0070.00016.94
8.0.220.0000.00716.88
8.0.210.0070.00016.84
8.0.200.0000.00616.85
8.0.190.0040.00416.75
8.0.180.0000.00716.77
8.0.170.0050.00316.88
8.0.160.0040.00416.79
8.0.150.0000.00716.73
8.0.140.0000.00716.78
8.0.130.0080.00013.20
8.0.120.0060.00316.69
8.0.110.0000.00716.61
8.0.100.0000.00716.84
8.0.90.0000.00716.86
8.0.80.0080.00716.81
8.0.70.0050.00216.70
8.0.60.0040.00416.77
8.0.50.0040.00416.77
8.0.30.0090.00716.93
8.0.20.0120.00717.40
8.0.10.0050.00316.76
8.0.00.0080.01316.68
7.4.330.0050.00015.55
7.4.320.0060.00016.35
7.4.300.0030.00316.39
7.4.290.0070.00016.36
7.4.280.0060.00316.46
7.4.270.0040.00416.38
7.4.260.0000.00716.45
7.4.250.0020.00516.39
7.4.240.0000.00716.32
7.4.230.0050.00316.36
7.4.220.0000.00716.53
7.4.210.0090.00616.40
7.4.200.0030.00316.25
7.4.160.0090.00816.45
7.4.150.0130.00617.40
7.4.140.0120.00817.86
7.4.130.0030.01316.45
7.4.120.0090.01116.48
7.4.110.0110.00616.25
7.4.100.0090.00916.25
7.4.90.0140.00916.37
7.4.80.0110.00619.39
7.4.70.0230.00016.43
7.4.60.0090.00616.34
7.4.50.0050.00516.35
7.4.40.0090.00616.36
7.4.30.0130.00316.38
7.4.00.0130.00314.92
7.3.330.0050.00013.19
7.3.320.0000.00613.21
7.3.310.0030.00316.39
7.3.300.0040.00416.11
7.3.290.0090.01016.21
7.3.280.0060.01016.19
7.3.270.0090.00917.40
7.3.260.0100.00716.29
7.3.250.0110.00816.42
7.3.240.0120.00816.23
7.3.230.0070.01316.50
7.3.210.0170.00016.47
7.3.200.0070.01416.35
7.3.190.0090.00616.20
7.3.180.0060.00916.28
7.3.170.0150.00316.23
7.3.160.0090.00616.21
7.2.330.0000.01716.23
7.2.320.0100.00616.51
7.2.310.0100.01216.41
7.2.300.0060.01016.30
7.2.290.0090.00916.21
7.2.60.0100.00316.55
7.2.00.0070.01219.63
7.1.200.0030.01015.32
7.1.120.0060.01318.46
7.1.110.0050.00917.57
7.1.100.0100.00517.90
7.1.90.0120.00417.79
7.1.80.0040.01418.04
7.1.70.0030.01516.94
7.1.60.0220.00935.13
7.1.50.0190.01334.39
7.1.40.0240.01034.31
7.1.30.0200.01734.37
7.1.20.0190.01934.35
7.1.10.0130.00716.46
7.1.00.0030.01416.36

preferences:
69.41 ms | 401 KiB | 5 Q