3v4l.org

run code in 300+ PHP versions simultaneously
<?php // toggle the line under to see what happens, and play with different PHP versions // declare(strict_types=1); function test(int $a): void { var_dump($a); } test(3.14);

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.5.10.0110.00820.24
8.5.00.0120.01019.80
8.4.150.0020.00014.05
8.4.140.0090.01217.38
8.4.130.0090.00717.67
8.4.120.0160.00919.46
8.4.110.0200.00819.13
8.4.100.0260.00917.60
8.4.90.0270.00817.96
8.4.80.0240.01117.72
8.4.70.0280.00717.64
8.4.60.0250.01017.91
8.4.50.0250.01118.65
8.4.40.0190.01018.57
8.4.30.0280.00517.63
8.4.20.0350.00620.21
8.4.10.0290.00619.50
8.3.280.0130.00818.29
8.3.270.0140.00916.74
8.3.260.0180.00716.57
8.3.250.0180.01017.62
8.3.240.0250.00816.56
8.3.230.0240.00516.64
8.3.220.0150.00817.04
8.3.210.0100.00516.64
8.3.200.0120.00316.57
8.3.190.0170.01018.73
8.3.180.0230.01017.49
8.3.170.0330.00717.33
8.3.160.0240.00716.59
8.3.150.0200.00717.41
8.3.140.0180.01116.88
8.3.130.0150.01117.18
8.3.120.0200.00617.46
8.3.110.0280.00518.09
8.3.100.0230.00716.66
8.3.90.0240.00817.76
8.3.80.0290.00617.03
8.3.70.0300.00817.08
8.3.60.0300.00816.44
8.3.50.0260.01117.17
8.3.40.0300.00918.42
8.3.30.0190.00417.83
8.3.20.0210.00219.61
8.3.10.0190.00419.89
8.3.00.0160.00820.32
8.2.290.0180.01118.50
8.2.280.0210.00818.41
8.2.270.0260.00716.74
8.2.260.0250.00716.53
8.2.250.0220.00717.31
8.2.240.0240.00516.72
8.2.230.0230.00718.60
8.2.220.0270.00618.99
8.2.210.0240.00519.91
8.2.200.0230.00717.00
8.2.190.0230.00916.42
8.2.180.0250.00916.47
8.2.170.0290.00618.08
8.2.160.0290.00619.32
8.2.150.0240.00820.11
8.2.140.0250.00919.76
8.2.130.0280.00420.19
8.2.120.0260.00518.56
8.2.110.0240.00718.04
8.2.100.0270.00317.59
8.2.90.0210.00318.08
8.2.80.0170.00617.87
8.2.70.0220.00717.33
8.2.60.0150.00617.73
8.2.50.0270.00417.51
8.2.40.0220.00818.59
8.2.30.0210.00917.52
8.2.20.0220.00817.78
8.2.10.0120.00618.02
8.2.00.0230.01017.32
8.1.330.0190.01018.27
8.1.320.0220.00716.01
8.1.310.0220.00916.91
8.1.300.0220.00616.68
8.1.290.0230.00617.02
8.1.280.0240.00719.27
8.1.270.0230.00719.54
8.1.260.0230.00620.13
8.1.250.0210.00720.78
8.1.240.0220.00518.65
8.1.230.0220.00718.30
8.1.220.0210.00817.31
8.1.210.0210.00917.62
8.1.200.0200.00817.04
8.1.190.0200.00517.12
8.1.180.0160.01017.37
8.1.170.0180.00617.64
8.1.160.0180.00617.64
8.1.150.0190.00517.59
8.1.140.0100.00717.65
8.1.130.0210.00917.21
8.1.120.0250.00417.34
8.1.110.0140.00817.17
8.1.100.0180.00817.17
8.1.90.0220.00817.09
8.1.80.0230.00617.21
8.1.70.0230.00717.20
8.1.60.0220.00517.31
8.1.50.0240.00517.21
8.1.40.0120.01117.33
8.1.30.0240.00417.42
8.1.20.0240.00517.40
8.1.10.0220.00917.37
8.1.00.0170.00417.47
8.0.300.0220.00617.63
8.0.290.0170.00816.51
8.0.280.0220.00517.13
8.0.270.0080.00622.52
8.0.260.0240.00616.65
8.0.250.0200.00916.68
8.0.240.0220.00516.72
8.0.230.0210.00816.63
8.0.220.0250.00616.46
8.0.210.0260.00416.70
8.0.200.0230.00716.75
8.0.190.0220.00716.59
8.0.180.0210.00716.75
8.0.170.0210.00416.70
8.0.160.0240.00516.66
8.0.150.0220.00316.52
8.0.140.0210.00916.52
8.0.130.0240.00516.60
8.0.120.0240.00516.61
8.0.110.0220.00716.65
8.0.100.0230.00716.59
8.0.90.0270.00416.56
8.0.80.0180.00616.64
8.0.70.0180.00416.54
8.0.60.0260.00316.56
8.0.50.0190.01116.54
8.0.30.0240.00516.67
8.0.20.0270.00616.64
8.0.10.0240.00616.65

preferences:
36.88 ms | 403 KiB | 5 Q