3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function process($request, Foo $next); } class Bar implements Foo { public function process($request, Foo $next = null) { } } new 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.0210.00016.50
8.3.50.0040.01116.25
8.3.40.0170.00318.71
8.3.30.0110.00418.59
8.3.20.0070.00020.19
8.3.10.0050.00321.78
8.3.00.0050.00322.09
8.2.180.0190.00018.05
8.2.170.0090.00622.96
8.2.160.0120.00318.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00021.07
8.2.120.0030.00626.35
8.2.110.0070.00320.96
8.2.100.0110.00017.72
8.2.90.0080.00019.22
8.2.80.0030.00617.97
8.2.70.0080.00017.50
8.2.60.0080.00017.90
8.2.50.0030.00618.10
8.2.40.0050.00220.42
8.2.30.0030.00520.88
8.2.20.0030.00718.08
8.2.10.0040.00417.97
8.2.00.0040.00417.86
8.1.280.0070.01125.92
8.1.270.0000.00722.13
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0040.01223.88
8.1.230.0070.00417.70
8.1.220.0070.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.22
8.1.190.0000.00817.23
8.1.180.0000.00918.10
8.1.170.0040.00419.03
8.1.160.0070.00018.89
8.1.150.0070.00018.82
8.1.140.0000.00819.41
8.1.130.0030.00318.82
8.1.120.0040.00417.32
8.1.110.0030.00617.38
8.1.100.0000.00817.30
8.1.90.0000.00717.23
8.1.80.0030.00517.29
8.1.70.0000.00717.21
8.1.60.0050.00317.51
8.1.50.0040.00417.41
8.1.40.0080.00017.45
8.1.30.0000.00817.59
8.1.20.0040.00417.46
8.1.10.0000.00917.50
8.1.00.0030.00617.35
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0070.00018.46
8.0.270.0030.00317.11
8.0.260.0060.00016.80
8.0.250.0030.00316.91
8.0.240.0000.00816.97
8.0.230.0070.00016.81
8.0.220.0000.00816.87
8.0.210.0000.00716.83
8.0.200.0030.00316.71
8.0.190.0080.00016.91
8.0.180.0070.00316.92
8.0.170.0030.00316.82
8.0.160.0070.00016.87
8.0.150.0030.00316.75
8.0.140.0070.00016.67
8.0.130.0030.00313.26
8.0.120.0070.00016.78
8.0.110.0000.00816.88
8.0.100.0050.00216.75
8.0.90.0080.00016.88
8.0.80.0090.01016.85
8.0.70.0050.00316.72
8.0.60.0040.00416.76
8.0.50.0000.00716.61
8.0.30.0030.01217.05
8.0.20.0090.01117.40
8.0.10.0040.00416.81
8.0.00.0160.00316.54
7.4.330.0060.00015.55
7.4.320.0000.00716.39
7.4.300.0070.00016.50
7.4.290.0070.00016.51
7.4.280.0060.00316.43
7.4.270.0060.00016.42
7.4.260.0030.00316.55
7.4.250.0040.00416.50
7.4.240.0030.00316.57
7.4.230.0000.00716.26
7.4.220.0080.01116.44
7.4.210.0050.01116.55
7.4.200.0000.00716.61
7.4.160.0060.01116.38
7.4.150.0130.00717.40
7.4.140.0130.00717.86
7.4.130.0120.00616.33
7.4.120.0050.01216.40
7.4.110.0070.01016.50
7.4.100.0160.00616.38
7.4.90.0090.00916.40
7.4.80.0030.01819.39
7.4.70.0130.00416.34
7.4.60.0080.00816.42
7.4.50.0070.00416.48
7.4.40.0130.00316.50
7.4.30.0060.01016.36
7.4.00.0030.01014.64
7.3.330.0060.00013.16
7.3.320.0000.00512.96
7.3.310.0000.00716.16
7.3.300.0000.00616.23
7.3.290.0000.00716.18
7.3.280.0100.00716.15
7.3.270.0100.01017.40
7.3.260.0140.00816.41
7.3.250.0090.00916.24
7.3.240.0140.00616.39
7.3.230.0180.00416.36
7.3.210.0060.01216.38
7.3.200.0070.01716.14
7.3.190.0000.01616.20
7.3.180.0060.00916.23
7.3.170.0070.01516.48
7.3.160.0120.00916.26
7.2.330.0050.01416.47
7.2.320.0190.00616.55
7.2.310.0060.01216.50
7.2.300.0130.00316.66
7.2.290.0130.01016.51
7.2.60.0040.01116.70
7.2.00.0060.00919.32
7.1.200.0060.00915.78
7.1.100.0030.00518.11
7.1.70.0070.00716.74
7.1.60.0130.01734.97
7.1.50.0290.01334.81
7.1.40.0240.01534.50
7.1.30.0190.01334.39
7.1.20.0170.01334.68
7.1.10.0060.00616.42
7.1.00.0110.00316.75
7.0.200.0060.01216.60
7.0.190.0030.01716.77
7.0.180.0090.00916.15
7.0.170.0080.00616.14
7.0.160.0080.00616.32
7.0.150.0060.00616.01
7.0.140.0090.00616.34
7.0.130.0030.01016.41
7.0.120.0100.00316.16
7.0.110.0120.00316.16
7.0.100.0060.00916.23
7.0.90.0050.00916.27
7.0.80.0090.00616.33
7.0.70.0080.00516.16
7.0.60.0030.01015.96
7.0.50.0060.00616.28
7.0.40.0100.00316.26
7.0.30.0140.00016.11
7.0.20.0030.01516.20
7.0.10.0110.00716.33
7.0.00.0080.00616.30

preferences:
38.01 ms | 401 KiB | 5 Q