3v4l.org

run code in 300+ PHP versions simultaneously
<?php class bar { } class foo extends bar {} $f = new foo; function test(bar $b) : bar { return $b; } test($f);

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.0070.00716.50
8.3.50.0070.01118.09
8.3.40.0100.01018.53
8.3.30.0080.00618.66
8.3.20.0070.00020.22
8.3.10.0000.00820.77
8.3.00.0050.00320.96
8.2.180.0040.01116.63
8.2.170.0070.00722.96
8.2.160.0100.00319.33
8.2.150.0030.00624.18
8.2.140.0090.00024.66
8.2.130.0070.00718.16
8.2.120.0000.00726.35
8.2.110.0090.00921.06
8.2.100.0000.01117.78
8.2.90.0050.00319.13
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0060.00317.88
8.2.50.0040.00418.10
8.2.40.0040.00422.20
8.2.30.0040.00419.10
8.2.20.0000.00817.98
8.2.10.0000.00817.86
8.2.00.0000.00718.09
8.1.280.0170.00325.92
8.1.270.0080.00022.02
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0040.00423.82
8.1.230.0000.01118.97
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00817.13
8.1.180.0030.00518.10
8.1.170.0080.00020.43
8.1.160.0050.00318.91
8.1.150.0070.00018.88
8.1.140.0040.00419.49
8.1.130.0060.00318.78
8.1.120.0030.00317.44
8.1.110.0000.00717.40
8.1.100.0000.00717.40
8.1.90.0040.00417.29
8.1.80.0040.00417.27
8.1.70.0000.00717.31
8.1.60.0050.00317.46
8.1.50.0040.00417.52
8.1.40.0030.00617.36
8.1.30.0040.00417.62
8.1.20.0000.00717.61
8.1.10.0000.00717.57
8.1.00.0000.00717.40
8.0.300.0000.00818.77
8.0.290.0060.00316.75
8.0.280.0030.00318.33
8.0.270.0070.00017.11
8.0.260.0000.00620.84
8.0.250.0030.00316.95
8.0.240.0000.00716.93
8.0.230.0030.00616.86
8.0.220.0000.00616.75
8.0.210.0000.00816.84
8.0.200.0000.00616.91
8.0.190.0040.00416.96
8.0.180.0040.00416.89
8.0.170.0050.00216.97
8.0.160.0000.00816.89
8.0.150.0030.00316.69
8.0.140.0030.00316.73
8.0.130.0000.00513.27
8.0.120.0040.00416.91
8.0.110.0050.00316.77
8.0.100.0040.00416.93
8.0.90.0000.00716.75
8.0.80.0080.00816.86
8.0.70.0050.00216.92
8.0.60.0040.00416.82
8.0.50.0070.00016.82
8.0.30.0070.01017.10
8.0.20.0090.01117.40
8.0.10.0070.00016.89
8.0.00.0150.00416.62
7.4.330.0000.00515.55
7.4.320.0050.00216.54
7.4.300.0030.00316.56
7.4.290.0030.00316.64
7.4.280.0040.00416.41
7.4.270.0000.00716.57
7.4.260.0000.00716.57
7.4.250.0050.00216.32
7.4.240.0050.00216.57
7.4.230.0000.00716.69
7.4.220.0070.01816.46
7.4.210.0100.00816.55
7.4.200.0000.00716.62
7.4.160.0120.00516.28
7.4.150.0110.00717.40
7.4.140.0140.00617.86
7.4.130.0060.01916.40
7.4.120.0110.00916.47
7.4.110.0000.01716.58
7.4.100.0090.01116.40
7.4.90.0100.00716.34
7.4.80.0160.00519.39
7.4.70.0090.00616.54
7.4.60.0130.00316.43
7.4.50.0100.00316.41
7.4.40.0110.00716.50
7.4.30.0100.00716.21
7.4.00.0080.01014.97
7.3.330.0000.00513.26
7.3.320.0030.00413.37
7.3.310.0030.00316.32
7.3.300.0070.00016.22
7.3.290.0000.00716.15
7.3.280.0080.00816.25
7.3.270.0070.01017.40
7.3.260.0110.01016.66
7.3.250.0070.01216.43
7.3.240.0060.01216.37
7.3.230.0070.01016.54
7.3.210.0100.01016.60
7.3.200.0100.00716.44
7.3.190.0000.01616.26
7.3.180.0040.01116.24
7.3.170.0080.00816.38
7.3.160.0100.01016.27
7.3.120.0070.01014.80
7.3.110.0060.01214.68
7.3.100.0030.00714.72
7.3.90.0030.00614.96
7.3.80.0070.00715.12
7.3.70.0000.00914.75
7.3.60.0030.01214.86
7.3.50.0000.01414.87
7.3.40.0060.00614.65
7.3.30.0100.00314.77
7.3.20.0000.01216.79
7.3.10.0110.00316.82
7.3.00.0040.01216.23
7.2.330.0100.00716.34
7.2.320.0170.01416.61
7.2.310.0150.00316.39
7.2.300.0140.00316.57
7.2.290.0040.01216.53
7.2.250.0060.01315.14
7.2.240.0100.01014.67
7.2.230.0100.00614.59
7.2.220.0070.00714.82
7.2.210.0040.01114.53
7.2.200.0070.00714.88
7.2.190.0040.01114.84
7.2.180.0070.01114.81
7.2.170.0040.00715.05
7.2.60.0040.00816.63
7.2.50.0040.00716.77
7.1.330.0030.01015.63
7.1.320.0080.00815.64
7.1.310.0080.00415.70
7.1.300.0040.01415.82
7.1.290.0030.00715.79
7.1.280.0030.01015.80
7.1.270.0040.01115.55
7.1.260.0050.00515.70
7.1.200.0060.00615.86
7.1.70.0760.00715.40
7.1.60.0810.00333.18
7.1.50.0780.00732.89
7.1.40.0750.00632.73
7.1.30.0770.01432.61
7.1.20.0790.01032.70
7.1.10.0710.00714.77
7.1.00.0960.00714.68
7.0.200.0740.00714.86
7.0.190.0720.01014.77
7.0.180.0570.01014.48
7.0.170.0690.01014.34
7.0.160.0620.01014.46
7.0.150.0760.01014.31
7.0.140.0710.00714.43
7.0.130.0700.00614.57
7.0.120.0710.00714.43
7.0.110.0760.00714.36
7.0.100.0750.00714.63
7.0.90.1150.00714.28
7.0.80.0680.00314.63
7.0.70.0720.00314.53
7.0.60.0800.01014.24
7.0.50.0640.01014.39
7.0.40.0600.01014.59
7.0.30.0570.01014.45
7.0.20.0670.00614.65
7.0.10.0590.01314.25
7.0.00.0700.00714.46

preferences:
53.15 ms | 401 KiB | 5 Q