3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(?string $bar = null, $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.5.80.0060.00216.68
8.5.70.0100.00716.68
8.5.60.0050.00416.68
8.5.50.0100.00716.60
8.5.30.0140.01017.92
8.5.20.0230.00817.63
8.5.10.0260.00817.51
8.5.00.0220.00917.56
8.4.230.0120.00719.54
8.4.220.0130.00319.41
8.4.210.0070.00321.59
8.4.180.0140.00823.85
8.4.170.0280.00820.98
8.4.160.0260.01021.00
8.4.150.0230.00617.65
8.4.140.0240.01417.43
8.4.130.0270.00817.80
8.4.120.0310.01019.72
8.4.110.0270.00618.02
8.4.100.0250.00718.08
8.4.90.0220.00818.65
8.4.80.0290.00917.95
8.4.70.0290.00917.96
8.4.60.0280.01118.42
8.4.50.0300.01018.52
8.4.40.0310.00817.72
8.4.30.0290.00918.58
8.4.20.0290.01118.21
8.4.10.0310.01018.15
8.3.320.0120.00720.11
8.3.310.0110.00418.39
8.3.300.0270.00919.61
8.3.290.0260.01019.01
8.3.280.0260.00918.24
8.3.270.0310.01016.53
8.3.260.0250.01116.69
8.3.250.0260.00817.39
8.3.240.0260.00916.58
8.3.230.0240.01016.65
8.3.220.0270.00717.22
8.3.210.0270.00917.28
8.3.200.0260.00616.57
8.3.190.0260.00817.35
8.3.180.0260.00918.06
8.3.170.0310.01016.78
8.3.160.0310.00816.55
8.3.150.0290.00416.63
8.3.140.0240.00816.53
8.3.130.0240.00516.61
8.3.120.0250.00718.05
8.3.110.0340.00616.64
8.3.100.0330.00916.40
8.3.90.0390.00916.56
8.3.80.0390.00916.41
8.3.70.0410.00816.30
8.3.60.0380.01016.52
8.3.50.0340.01216.48
8.3.40.0360.00817.46
8.3.30.0280.00917.39
8.3.20.0300.00917.40
8.3.10.0260.01017.49
8.3.00.0290.00917.45
8.2.320.0100.01017.99
8.2.310.0100.00818.13
8.2.300.0280.00719.73
8.2.290.0240.00817.71
8.2.280.0230.00617.77
8.2.270.0230.00916.51
8.2.260.0240.00816.44
8.2.250.0240.00816.50
8.2.240.0210.00916.64
8.2.230.0310.01116.28
8.2.220.0330.00716.38
8.2.210.0260.00916.36
8.2.200.0240.00716.38
8.2.190.0230.00916.40
8.2.180.0260.00716.44
8.2.170.0320.01317.65
8.2.160.0300.00817.53
8.2.150.0280.00917.57
8.2.140.0330.00717.51
8.2.130.0330.01017.38
8.2.120.0350.00817.47
8.2.110.0320.00917.58
8.2.100.0320.00917.55
8.2.90.0330.00817.60
8.2.80.0310.00817.40
8.2.70.0310.00817.29
8.2.60.0330.00917.31
8.2.50.0320.00817.42
8.2.40.0280.00917.35
8.2.30.0330.01117.29
8.2.20.0280.01017.42
8.2.10.0310.00917.36
8.2.00.0300.00617.51
8.1.340.0260.00817.41
8.1.330.0240.00918.03
8.1.320.0220.01016.10
8.1.310.0190.00816.29
8.1.300.0200.00716.05
8.1.290.0310.00815.88
8.1.280.0300.00816.05
8.1.270.0320.00917.25
8.1.260.0280.00817.21
8.1.250.0320.00617.31
8.1.240.0320.00717.26
8.1.230.0250.00817.16
8.1.220.0260.01017.22
8.1.210.0280.00817.03
8.1.200.0290.00917.21
8.1.190.0320.00817.18
8.1.180.0280.00817.18
8.1.170.0260.00917.20
8.1.160.0230.00717.24
8.1.150.0230.00917.22
8.1.140.0230.01117.19
8.1.130.0250.00717.28
8.1.120.0320.00617.28
8.1.110.0300.00717.22
8.1.100.0260.00817.23
8.1.90.0310.00817.32
8.1.80.0250.01017.28
8.1.70.0330.00617.24
8.1.60.0300.01017.33
8.1.50.0290.01117.41
8.1.40.0310.00617.28
8.1.30.0300.00617.43
8.1.20.0320.00717.48
8.1.10.0320.00717.42
8.1.00.0290.00917.25

preferences:
53.15 ms | 1046 KiB | 5 Q