3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class A { function foo(object $x) {} } class B extends A { function foo($x) {} }

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.0090.00616.63
8.3.50.0070.00718.16
8.3.40.0110.00418.47
8.3.30.0060.01318.41
8.3.20.0080.00021.96
8.3.10.0080.00023.49
8.3.00.0050.00221.90
8.2.180.0120.00416.63
8.2.170.0090.00922.96
8.2.160.0140.00018.96
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00721.00
8.2.110.0090.00021.06
8.2.100.0080.00317.97
8.2.90.0040.00418.09
8.2.80.0080.00017.97
8.2.70.0060.00317.80
8.2.60.0060.00317.91
8.2.50.0030.00518.10
8.2.40.0040.00420.59
8.2.30.0040.00419.07
8.2.20.0040.00417.91
8.2.10.0040.00417.91
8.2.00.0000.00718.01
8.1.280.0070.01025.92
8.1.270.0000.00822.18
8.1.260.0030.01626.35
8.1.250.0040.00428.09
8.1.240.0030.01017.71
8.1.230.0070.00420.86
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0050.00516.87
8.1.180.0050.00318.10
8.1.170.0060.00318.59
8.1.160.0000.00718.80
8.1.150.0040.00418.75
8.1.140.0000.00718.99
8.1.130.0040.00417.57
8.1.120.0040.00417.36
8.1.110.0000.00717.25
8.1.100.0000.00717.34
8.1.90.0000.00817.32
8.1.80.0040.00417.33
8.1.70.0070.00017.25
8.1.60.0030.00617.34
8.1.50.0000.00717.29
8.1.40.0040.00417.27
8.1.30.0040.00817.54
8.1.20.0060.00317.43
8.1.10.0040.00417.27
8.1.00.0000.00717.33
8.0.300.0070.00019.63
8.0.290.0040.00416.58
8.0.280.0070.00018.22
8.0.270.0030.00317.09
8.0.260.0000.00717.06
8.0.250.0000.00816.81
8.0.240.0040.00416.84
8.0.230.0000.00816.84
8.0.220.0030.00316.66
8.0.210.0030.00316.79
8.0.200.0030.00316.71
8.0.190.0040.00416.83
8.0.180.0080.00016.71
8.0.170.0000.00816.68
8.0.160.0050.00316.78
8.0.150.0030.00616.77
8.0.140.0070.00016.69
8.0.130.0000.00813.20
8.0.120.0030.00516.76
8.0.110.0040.00416.63
8.0.100.0040.00416.73
8.0.90.0030.00416.56
8.0.80.0000.01416.75
8.0.70.0040.00416.62
8.0.60.0040.00416.83
8.0.50.0040.00416.65
8.0.30.0100.01016.93
8.0.20.0110.01017.40
8.0.10.0040.00416.88
8.0.00.0120.01016.76
7.4.330.0000.00415.55
7.4.320.0030.00316.52
7.4.300.0030.00316.37
7.4.290.0030.00716.47
7.4.280.0090.00016.46
7.4.270.0000.00716.38
7.4.260.0030.00616.25
7.4.250.0000.00716.36
7.4.240.0030.00316.44
7.4.230.0070.00016.54
7.4.220.0000.00716.18
7.4.210.0070.00716.40
7.4.200.0000.00716.55
7.4.160.0080.00816.42
7.4.150.0150.00517.40
7.4.140.0090.01017.86
7.4.130.0070.01016.24
7.4.120.0090.01016.34
7.4.110.0070.01016.33
7.4.100.0110.00516.44
7.4.90.0040.01416.30
7.4.80.0030.01519.39
7.4.70.0090.00916.42
7.4.60.0100.00616.48
7.4.50.0070.01016.16
7.4.40.0080.00816.38
7.4.00.0110.00414.92
7.3.330.0030.00313.04
7.3.320.0050.00012.95
7.3.310.0030.00316.20
7.3.300.0000.00716.05
7.3.290.0060.00816.15
7.3.280.0030.01216.12
7.3.270.0100.00717.40
7.3.260.0090.00916.19
7.3.250.0070.01316.20
7.3.240.0130.00416.20
7.3.230.0090.00916.26
7.3.210.0090.00916.15
7.3.200.0030.01316.16
7.3.190.0060.01016.39
7.3.180.0060.01016.37
7.3.170.0150.00616.47
7.3.160.0100.01016.11
7.2.330.0090.00916.59
7.2.320.0170.00616.46
7.2.310.0100.00616.19
7.2.300.0090.00916.60
7.2.290.0080.00816.38
7.2.60.0040.00816.75
7.2.10.0060.00819.80
7.2.00.0090.00619.79
7.1.200.0090.00315.65
7.1.120.0130.00018.39
7.1.110.0030.00917.62
7.1.100.0040.01117.71
7.1.90.0070.00717.96
7.1.80.0060.00617.62
7.1.70.0000.01217.08
7.1.60.0130.01335.00
7.1.50.0250.00334.85
7.1.40.0180.01134.23
7.1.30.0210.00634.23
7.1.20.0170.00934.58
7.1.10.0030.01316.60
7.1.00.0070.00716.37

preferences:
39.82 ms | 400 KiB | 5 Q