3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function foo(): string { return 1; } foo();

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.4.140.0140.00917.93
8.4.130.0120.00720.31
8.4.120.0100.01024.11
8.4.110.0050.00418.97
8.4.100.0110.00918.78
8.4.90.0090.01022.55
8.4.80.0120.00820.36
8.4.70.0060.00317.80
8.4.60.0110.00918.70
8.4.50.0100.00919.68
8.4.40.0160.00319.25
8.4.30.0100.01020.70
8.4.20.0060.00319.72
8.4.10.0090.00023.86
8.3.260.0110.00916.41
8.3.250.0120.00618.71
8.3.240.0100.00816.98
8.3.230.0100.00716.70
8.3.220.0100.00818.68
8.3.210.0040.00416.49
8.3.200.0110.00816.69
8.3.190.0110.00817.00
8.3.180.0080.00216.68
8.3.170.0150.00318.85
8.3.160.0060.01318.21
8.3.150.0140.00317.30
8.3.140.0060.00317.10
8.3.130.0000.00818.49
8.3.120.0120.00318.78
8.3.110.0040.00416.75
8.3.100.0030.00620.23
8.3.90.0040.00418.32
8.3.80.0060.00318.17
8.3.70.0060.01218.30
8.3.60.0060.01218.39
8.3.50.0090.00616.97
8.3.40.0130.00022.09
8.3.30.0100.00320.26
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0030.00420.30
8.2.280.0050.00318.66
8.2.270.0110.00717.15
8.2.260.0000.00818.68
8.2.250.0090.00016.83
8.2.240.0080.00019.02
8.2.230.0040.01220.94
8.2.220.0030.00624.06
8.2.210.0070.01026.77
8.2.200.0030.00616.63
8.2.190.0040.01816.58
8.2.180.0090.00916.88
8.2.170.0170.00318.96
8.2.160.0080.00622.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0030.00619.65
8.2.110.0090.00021.11
8.2.100.0040.00817.72
8.2.90.0030.00517.97
8.2.80.0000.00819.01
8.2.70.0210.00017.47
8.2.60.0210.00017.62
8.2.50.0120.00817.25
8.2.40.0110.00717.38
8.2.30.0150.00417.25
8.2.20.0090.00917.36
8.2.10.0100.01017.50
8.2.00.0060.01217.38
8.1.330.0140.00522.06
8.1.320.0100.00916.32
8.1.310.0070.00018.24
8.1.300.0040.01117.87
8.1.290.0100.00018.88
8.1.280.0100.01025.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.01022.20
8.1.230.0040.00820.95
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0130.00016.75
8.1.190.0150.00317.00
8.1.180.0150.00416.88
8.1.170.0120.00616.88
8.1.160.0130.00517.00
8.1.150.0120.00717.00
8.1.140.0180.00017.11
8.1.130.0110.00717.13
8.1.120.0150.00317.00
8.1.110.0130.00517.10
8.1.100.0130.00717.13
8.1.90.0160.00317.13
8.1.80.0090.00917.21
8.1.70.0170.00017.13
8.1.60.0130.00417.23
8.1.50.0180.00017.38
8.1.40.0150.00417.25
8.1.30.0150.00417.38
8.1.20.0170.00317.25
8.1.10.0200.00317.25
8.1.00.0130.00817.09
8.0.300.0080.00020.11
8.0.290.0160.00016.50
8.0.280.0120.00616.50
8.0.270.0120.00816.63
8.0.260.0080.00816.59
8.0.250.0150.00416.75
8.0.240.0110.00816.63
8.0.230.0110.00516.74
8.0.220.0100.00716.63
8.0.210.0140.00516.63
8.0.200.0180.00316.73
8.0.190.0150.00716.30
8.0.180.0180.00016.75
8.0.170.0160.00316.75
8.0.160.0060.01216.50
8.0.150.0090.00916.47
8.0.140.0200.00016.46
8.0.130.0090.00916.38
8.0.120.0110.00716.35
8.0.110.0140.00516.35
8.0.100.0140.00416.63
8.0.90.0120.00516.63
8.0.80.0110.00616.59
8.0.70.0130.00616.38
8.0.60.0150.00516.62
8.0.50.0120.00616.63
8.0.30.0100.00716.30
8.0.20.0120.00616.60
8.0.10.0170.00216.63

preferences:
83.49 ms | 403 KiB | 5 Q