3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function myFunc(string $str): void { echo $str; } myFunc(123);

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.140.0120.00817.36
8.3.130.0080.00018.59
8.3.120.0110.00818.95
8.3.110.0110.00020.94
8.3.100.0040.00424.06
8.3.90.0030.00526.77
8.3.80.0060.00316.63
8.3.70.0070.00716.61
8.3.60.0040.01218.28
8.3.50.0060.00919.96
8.3.40.0150.00420.11
8.3.30.0070.00718.71
8.3.20.0000.00724.18
8.3.10.0050.00324.66
8.3.00.0030.00626.16
8.2.250.0070.00316.61
8.2.240.0060.00316.94
8.2.230.0140.00022.58
8.2.220.0090.00037.54
8.2.210.0090.00926.77
8.2.200.0030.00616.63
8.2.190.0100.00616.63
8.2.180.0070.01125.92
8.2.170.0040.01118.83
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0000.01022.08
8.2.100.0090.00319.04
8.2.90.0040.00417.75
8.2.80.0080.00018.84
8.2.70.0000.00817.50
8.2.60.0060.00317.50
8.2.50.0030.00618.04
8.2.40.0000.00818.09
8.2.30.0040.00417.95
8.2.20.0000.00819.15
8.2.10.0020.00517.86
8.2.00.0000.00719.02
8.1.300.0070.01318.29
8.1.290.0000.00930.84
8.1.280.0110.00725.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.19
8.1.230.0040.00719.09
8.1.220.0090.00017.74
8.1.210.0030.00518.77
8.1.200.0040.00417.23
8.1.190.0050.00317.00
8.1.180.0000.00818.10
8.1.170.0040.00417.62
8.1.160.0050.00318.77
8.1.150.0000.00718.43
8.1.140.0030.00517.38
8.1.130.0030.00318.71
8.1.120.0000.00717.32
8.1.110.0030.00517.31
8.1.100.0030.00717.19
8.1.90.0100.00017.28
8.1.80.0000.01117.25
8.1.70.0080.00317.27
8.1.60.0060.00617.46
8.1.50.0090.00317.41
8.1.40.0100.00517.44
8.1.30.0130.00517.56
8.1.20.0090.00917.55
8.1.10.0190.00017.48
8.1.00.0170.00317.30
8.0.300.0000.00819.78
8.0.290.0040.00416.61
8.0.280.0080.00018.24
8.0.270.0030.00616.92
8.0.260.0060.00018.37
8.0.250.0030.00316.99
8.0.240.0000.00716.97
8.0.230.0000.00716.89
8.0.220.0120.00416.78
8.0.210.0100.00516.78
8.0.200.0150.00316.88
8.0.190.0140.00516.88
8.0.180.0160.00016.80
8.0.170.0100.00716.88
8.0.160.0140.00216.81
8.0.150.0120.00416.79
8.0.140.0110.00416.82
8.0.130.0110.00416.82
8.0.120.0150.00016.77
8.0.110.0110.00516.83
8.0.100.0110.00616.72
8.0.90.0140.00216.70
8.0.80.0110.00516.77
8.0.70.0100.00616.77
8.0.60.0130.00316.79
8.0.50.0000.01616.73
8.0.30.0050.01016.74
8.0.20.0050.01116.90
8.0.10.0100.00516.86
7.4.330.0030.00315.55
7.4.320.0070.00016.45
7.4.300.0130.00416.49
7.4.290.0170.00016.38
7.4.280.0120.00616.38
7.4.270.0100.00716.29
7.4.260.0030.00616.51
7.4.250.0120.00616.43
7.4.240.0180.00016.27
7.4.230.0080.00816.45
7.4.220.0060.00916.48
7.4.210.0050.01016.33
7.4.200.0110.00416.36
7.4.190.0060.01016.54
7.4.180.0130.00316.55
7.4.160.0130.00216.47
7.4.150.0050.01016.40
7.4.140.0090.00616.26
7.4.130.0080.00816.46
7.4.120.0150.00016.35
7.4.110.0080.00816.23
7.4.100.0140.00016.45
7.4.90.0170.00016.35
7.4.80.0100.00716.22
7.4.70.0110.00416.36
7.4.60.0150.00016.43
7.4.50.0080.00816.28
7.4.40.0090.00916.26
7.4.30.0110.00316.23
7.4.20.0120.00016.32
7.4.10.0100.00216.27
7.4.00.0110.00416.41

preferences:
58.81 ms | 403 KiB | 5 Q