3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function example($a, $b, $c); } class A implements I { public function example($a, $b = null, $c = null) { } // compatible with I::example } class B extends A { public function example($a, $b, $c = null) { } // compatible with I::example }

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.0110.00416.63
8.3.50.0070.01418.17
8.3.40.0030.01318.88
8.3.30.0060.00918.64
8.3.20.0070.00023.71
8.3.10.0040.00421.60
8.3.00.0040.00419.01
8.2.180.0130.00616.50
8.2.170.0130.00619.00
8.2.160.0100.00722.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0040.00417.97
8.2.120.0040.00426.35
8.2.110.0090.00022.08
8.2.100.0030.00917.66
8.2.90.0090.00017.78
8.2.80.0040.00418.98
8.2.70.0000.00817.50
8.2.60.0040.00417.63
8.2.50.0050.00318.10
8.2.40.0000.00720.55
8.2.30.0080.00019.06
8.2.20.0040.00418.04
8.2.10.0070.00018.02
8.2.00.0040.00417.52
8.1.280.0030.01025.92
8.1.270.0090.00020.57
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.92
8.1.230.0080.00320.68
8.1.220.0050.00317.74
8.1.210.0090.00018.77
8.1.200.0000.00817.22
8.1.190.0040.00417.25
8.1.180.0000.00718.10
8.1.170.0000.00918.82
8.1.160.0000.00718.82
8.1.150.0040.00420.20
8.1.140.0000.00719.51
8.1.130.0000.00717.41
8.1.120.0040.00417.44
8.1.110.0020.00517.39
8.1.100.0040.00417.42
8.1.90.0000.00717.40
8.1.80.0040.00417.28
8.1.70.0000.00717.31
8.1.60.0000.00817.39
8.1.50.0030.00517.34
8.1.40.0060.00317.40
8.1.30.0040.00417.52
8.1.20.0030.00617.41
8.1.10.0040.00417.35
8.1.00.0000.00817.17
8.0.300.0040.00420.04
8.0.290.0000.00816.75
8.0.280.0040.00218.37
8.0.270.0040.00416.80
8.0.260.0000.00716.73
8.0.250.0030.00516.94
8.0.240.0000.00716.88
8.0.230.0000.00716.90
8.0.220.0030.00316.88
8.0.210.0040.00416.90
8.0.200.0000.01116.94
8.0.190.0000.00716.99
8.0.180.0000.00716.79
8.0.170.0040.00416.82
8.0.160.0030.00316.84
8.0.150.0000.00716.84
8.0.140.0040.00416.80
8.0.130.0030.00313.27
8.0.120.0080.00016.68
8.0.110.0070.00016.68
8.0.100.0070.00016.92
8.0.90.0070.00016.93
8.0.80.0070.00716.86
8.0.70.0070.00016.95
8.0.60.0000.00716.79
8.0.50.0080.00016.71
8.0.30.0090.01016.84
8.0.20.0140.00717.40
8.0.10.0070.00017.03
8.0.00.0100.00716.47
7.4.330.0020.00215.55
7.4.320.0060.00016.33
7.4.300.0000.00616.58
7.4.290.0080.00316.43
7.4.280.0000.00716.45
7.4.270.0050.00316.46
7.4.260.0030.00616.56
7.4.250.0000.00716.44
7.4.240.0050.00316.33
7.4.230.0030.00316.56
7.4.220.0100.00716.41
7.4.210.0110.00316.39
7.4.200.0030.00316.43
7.4.160.0080.00716.58
7.4.150.0120.01217.40
7.4.140.0090.00917.86
7.4.130.0090.00816.35
7.4.120.0100.01116.51
7.4.110.0030.01316.35
7.4.100.0090.00916.25
7.4.90.0070.01016.37
7.4.80.0160.00019.39
7.4.70.0070.01016.20
7.4.60.0130.00316.50
7.4.50.0080.00816.41
7.4.40.0190.00416.41
7.4.30.0040.01116.50
7.4.00.0030.01314.77
7.3.330.0020.00213.31
7.3.320.0000.00513.27
7.3.310.0070.00016.34
7.3.300.0030.00316.17
7.3.290.0100.00516.28
7.3.280.0120.00516.26
7.3.270.0030.01517.40
7.3.260.0080.01116.30
7.3.250.0100.00716.40
7.3.240.0170.00516.36
7.3.230.0080.00816.27
7.3.210.0120.00616.39
7.3.200.0110.00516.42
7.3.190.0090.00916.37
7.3.180.0070.01016.33
7.3.170.0100.00716.66
7.3.160.0100.00616.23
7.3.10.0070.00716.66
7.3.00.0080.00316.52
7.2.330.0040.01816.53
7.2.320.0060.01316.57
7.2.310.0110.01316.60
7.2.300.0070.01516.39
7.2.290.0110.00716.47
7.2.130.0070.01016.82
7.2.120.0030.01316.86
7.2.110.0040.01316.59
7.2.100.0060.00916.71
7.2.90.0150.00016.69
7.2.80.0070.00316.78
7.2.70.0080.00816.92
7.2.60.0110.00416.59
7.2.50.0030.00716.74
7.2.40.0090.00616.93
7.2.30.0000.01316.85
7.2.20.0070.00316.89
7.2.10.0070.00716.47
7.2.00.0030.01117.76
7.1.250.0030.01015.19
7.1.200.0070.00315.68
7.1.100.0060.00618.16
7.1.70.0060.00616.82
7.1.60.0100.01017.21
7.1.50.0100.00716.89
7.1.40.0120.00316.58
7.1.30.0000.01216.44
7.1.20.0000.02216.65
7.1.10.0180.00715.31
7.1.00.0130.01016.78
7.0.200.0050.00216.75
7.0.190.0070.00716.35
7.0.180.0000.00716.21
7.0.170.0030.00716.18
7.0.160.0030.00716.08
7.0.150.0240.00416.19
7.0.140.0140.00816.13
7.0.130.0180.00316.52
7.0.120.0200.00316.40
7.0.110.0130.00616.16
7.0.100.0150.00416.28
7.0.90.0090.00316.46
7.0.80.0050.00516.32
7.0.70.0140.00416.28
7.0.60.0090.01216.08
7.0.50.0170.00316.55
7.0.40.0100.00015.31
7.0.30.0070.00215.31
7.0.20.0050.01015.31
7.0.10.0050.00515.31
7.0.00.0080.00415.31
5.6.300.0060.04820.82
5.6.290.0070.04020.87
5.6.280.0100.04020.99
5.6.270.0130.03720.88
5.6.260.0090.03920.98
5.6.250.0070.04421.04
5.6.240.0100.04120.96
5.6.230.0000.05420.98
5.6.220.0000.05220.79
5.6.210.0030.04821.05
5.6.200.0030.05220.84
5.6.190.0070.04420.87
5.6.180.0000.05121.04
5.6.170.0060.04720.77
5.6.160.0070.03721.03
5.6.150.0070.04120.87
5.6.140.0100.04121.03
5.6.130.0090.04920.82
5.6.120.0000.05420.87
5.6.110.0090.04320.76
5.6.100.0170.03720.93
5.6.90.0100.06320.82
5.6.80.0030.04420.34
5.6.70.0030.04520.21
5.6.60.0100.06420.23
5.6.50.0090.04120.13
5.6.40.0150.03020.21
5.6.30.0080.03520.29
5.6.20.0070.04120.29
5.6.10.0070.04120.13
5.6.00.0060.03720.29
5.5.380.0000.04917.48
5.5.370.0000.05017.54
5.5.360.0100.03517.64
5.5.350.0030.04517.47
5.5.340.0070.04518.04
5.5.330.0160.04518.09
5.5.320.0100.04018.10
5.5.310.0100.04218.00
5.5.300.0060.04218.01
5.5.290.0130.03517.83
5.5.280.0100.03917.85
5.5.270.0070.04418.17
5.5.260.0070.04418.07
5.5.250.0000.04917.88
5.5.240.0100.03217.13
5.5.230.0000.04517.47
5.5.220.0030.04517.43
5.5.210.0000.04117.08
5.5.200.0030.04717.45
5.5.190.0060.03817.44
5.5.180.0110.04617.10
5.5.160.0030.04617.43
5.5.150.0070.04217.45
5.5.140.0000.04617.43
5.5.130.0000.04517.18
5.5.120.0070.03617.18
5.5.110.0030.04017.43
5.5.100.0100.03417.35
5.5.90.0120.03817.33
5.5.80.0070.06417.29
5.5.70.0030.05117.37
5.5.60.0040.04717.07
5.5.50.0070.03717.33
5.5.40.0150.02617.33
5.5.30.0070.04017.41
5.5.20.0070.04217.33
5.5.10.0000.04117.36
5.5.00.0030.04017.41
5.4.450.0070.04219.32
5.4.440.0100.03419.31
5.4.430.0070.03619.41
5.4.420.0060.04219.29
5.4.410.0070.03419.27
5.4.400.0030.04619.14
5.4.390.0000.04619.20
5.4.380.0100.03418.98
5.4.370.0030.04118.89
5.4.360.0030.03819.23
5.4.350.0070.03619.11
5.4.340.0000.04419.07
5.4.320.0070.06619.20
5.4.310.0100.03719.18
5.4.300.0070.04018.98
5.4.290.0000.04519.13
5.4.280.0000.04919.12
5.4.270.0060.03819.20
5.4.260.0030.03719.06
5.4.250.0000.04219.17
5.4.240.0160.02619.20
5.4.230.0060.03818.97
5.4.220.0070.04619.07
5.4.210.0070.03618.88
5.4.200.0070.03918.97
5.4.190.0030.04618.92
5.4.180.0030.04119.19
5.4.170.0000.04318.88
5.4.160.0000.04318.87
5.4.150.0100.03518.91
5.4.140.0110.03216.77
5.4.130.0030.03816.74
5.4.120.0070.03116.77
5.4.110.0070.04016.68
5.4.100.0060.03216.46
5.4.90.0030.03816.69
5.4.80.0000.05016.52
5.4.70.0070.04216.73
5.4.60.0030.04516.46
5.4.50.0070.03616.59
5.4.40.0030.03716.67
5.4.30.0000.04016.67
5.4.20.0060.03516.72
5.4.10.0070.03816.67
5.4.00.0030.04116.11
5.3.290.0030.03815.31
5.3.280.0000.07415.31
5.3.270.0150.03915.31
5.3.260.0070.05115.31
5.3.250.0030.04315.31
5.3.240.0070.03515.31
5.3.230.0000.04615.31
5.3.220.0030.03815.31
5.3.210.0000.05015.31
5.3.200.0000.04615.31
5.3.190.0000.04315.31
5.3.180.0070.03415.31
5.3.170.0030.04315.31
5.3.160.0140.04515.31
5.3.150.0070.03315.31
5.3.140.0030.03915.31
5.3.130.0030.04115.31
5.3.120.0070.03415.31
5.3.110.0120.03515.31
5.3.100.0040.03915.31
5.3.90.0180.04215.31
5.3.80.0140.02915.31
5.3.70.0070.03515.31
5.3.60.0000.04615.31
5.3.50.0290.02915.31
5.3.40.0070.03915.31
5.3.30.0000.04015.31
5.3.20.0030.03415.31
5.3.10.0090.04115.31
5.3.00.0000.05115.31
5.2.170.0040.03415.31
5.2.160.0030.02815.31
5.2.150.0000.03315.31
5.2.140.0140.02815.31
5.2.130.0030.02815.31
5.2.120.0000.03715.31
5.2.110.0070.02915.31
5.2.100.0000.03215.31
5.2.90.0000.03315.31
5.2.80.0030.02915.31
5.2.70.0070.02715.31
5.2.60.0000.03815.31
5.2.50.0200.02615.31
5.2.40.0030.03315.31
5.2.30.0000.03515.31
5.2.20.0000.03315.31
5.2.10.0040.02915.31
5.2.00.0100.02715.31
5.1.60.0030.02415.31
5.1.50.0000.03015.31
5.1.40.0030.02615.31
5.1.30.0040.02515.31
5.1.20.0030.02815.31
5.1.10.0000.04115.31
5.1.00.0070.02215.31
5.0.50.0000.02615.31
5.0.40.0060.01815.31
5.0.30.0000.03715.31
5.0.20.0000.02415.31
5.0.10.0060.01815.31
5.0.00.0030.03015.31
4.4.90.0080.01015.31
4.4.80.0040.01415.31
4.4.70.0040.01415.31
4.4.60.0030.03115.31
4.4.50.0000.01915.31
4.4.40.0060.02215.31
4.4.30.0000.02115.31
4.4.20.0000.02315.31
4.4.10.0000.01815.31
4.4.00.0030.02415.31
4.3.110.0000.03715.31
4.3.100.0040.01215.31
4.3.90.0000.01815.31
4.3.80.0000.02515.31
4.3.70.0030.01415.31
4.3.60.0060.01315.31
4.3.50.0000.01715.31
4.3.40.0060.02015.31
4.3.30.0060.01315.31
4.3.20.0060.01515.31
4.3.10.0060.01615.31
4.3.00.0030.01515.31

preferences:
80.26 ms | 401 KiB | 5 Q