3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function foo(string $bar = null) { var_dump($bar); } 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.3.60.0150.00616.50
8.3.50.0100.00921.11
8.3.40.0040.01118.59
8.3.30.0040.01118.55
8.3.20.0080.00020.09
8.3.10.0040.00421.49
8.3.00.0000.00823.52
8.2.180.0090.01218.01
8.2.170.0150.00022.96
8.2.160.0080.00620.32
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00419.46
8.2.120.0040.00426.35
8.2.110.0100.00020.95
8.2.100.0090.00317.68
8.2.90.0000.00919.09
8.2.80.0040.00417.97
8.2.70.0050.00317.38
8.2.60.0040.00417.91
8.2.50.0080.00018.07
8.2.40.0000.00820.57
8.2.30.0050.00219.40
8.2.20.0040.00417.47
8.2.10.0000.00717.92
8.2.00.0040.00417.98
8.1.280.0120.00625.92
8.1.270.0080.00823.89
8.1.260.0000.00928.09
8.1.250.0030.01028.09
8.1.240.0150.00723.98
8.1.230.0000.01118.97
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00617.10
8.1.180.0080.00018.10
8.1.170.0060.00318.54
8.1.160.0040.00420.68
8.1.150.0030.00718.67
8.1.140.0030.00519.40
8.1.130.0000.00717.63
8.1.120.0040.00417.30
8.1.110.0000.00717.21
8.1.100.0030.00417.34
8.1.90.0000.00817.30
8.1.80.0000.00717.20
8.1.70.0030.00317.23
8.1.60.0030.00517.52
8.1.50.0030.00517.34
8.1.40.0000.00717.39
8.1.30.0040.00417.57
8.1.20.0030.00617.64
8.1.10.0000.00717.29
8.1.00.0000.00717.17
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0040.00418.31
8.0.270.0000.00717.11
8.0.260.0030.00317.02
8.0.250.0000.00716.84
8.0.240.0040.00416.81
8.0.230.0000.00716.79
8.0.220.0040.00416.68
8.0.210.0030.00316.63
8.0.200.0030.00316.79
8.0.190.0040.00416.71
8.0.180.0050.00316.68
8.0.170.0040.00416.78
8.0.160.0000.00816.80
8.0.150.0000.00716.72
8.0.140.0000.00716.70
8.0.130.0000.00513.14
8.0.120.0000.00816.75
8.0.110.0000.00716.71
8.0.100.0050.00316.57
8.0.90.0030.00316.63
8.0.80.0070.01316.75
8.0.70.0070.00016.64
8.0.60.0040.00416.63
8.0.50.0040.00416.80
8.0.30.0110.00916.86
8.0.20.0140.01117.40
8.0.10.0040.00416.92
8.0.00.0130.00716.72
7.4.330.0020.00216.71
7.4.320.0040.00416.47
7.4.300.0030.00316.53
7.4.290.0000.00816.43
7.4.280.0030.00616.34
7.4.270.0000.00716.45
7.4.260.0050.00316.31
7.4.250.0040.00416.48
7.4.240.0050.00216.36
7.4.230.0000.00716.43
7.4.220.0070.01116.52
7.4.210.0060.00916.58
7.4.200.0030.00316.55
7.4.160.0090.00616.48
7.4.150.0180.00617.40
7.4.140.0110.00717.86
7.4.130.0130.00816.47
7.4.120.0110.00616.43
7.4.110.0120.00616.31
7.4.100.0200.00316.48
7.4.90.0090.00916.38
7.4.80.0120.00919.39
7.4.70.0070.01116.46
7.4.60.0130.01016.48
7.4.50.0110.00316.43
7.4.40.0040.01716.49
7.4.30.0060.01816.34
7.4.00.0070.01014.79
7.3.330.0000.00613.06
7.3.320.0000.00613.06
7.3.310.0030.00316.19
7.3.300.0040.00416.18
7.3.290.0030.00316.20
7.3.280.0090.01016.25
7.3.270.0200.00017.40
7.3.260.0090.00916.59
7.3.250.0120.00616.42
7.3.240.0110.00716.34
7.3.230.0070.01016.39
7.3.210.0060.01016.49
7.3.200.0100.01019.39
7.3.190.0120.00316.47
7.3.180.0140.00416.30
7.3.170.0090.00616.27
7.3.160.0080.00816.30
7.2.330.0090.00916.41
7.2.320.0060.01216.22
7.2.310.0070.01016.63
7.2.300.0140.00316.60
7.2.290.0030.01216.48
7.2.60.0140.00016.84
7.2.00.0090.00319.07
7.1.200.0040.00415.76
7.1.100.0060.01218.11
7.1.70.0030.00616.97
7.1.60.0100.01319.28
7.1.50.0120.00616.59
7.1.00.0070.07322.30
7.0.200.0040.00716.68
7.0.60.0030.03321.86
7.0.50.0030.04017.88
7.0.40.0130.04720.18
7.0.30.0400.07720.25
7.0.20.0200.09020.16
7.0.10.0200.06020.19
7.0.00.0070.05720.32
5.6.280.0130.04320.89
5.6.210.0070.05020.69
5.6.200.0030.08718.13
5.6.190.0000.05020.77
5.6.180.0470.06320.58
5.6.170.0270.08320.47
5.6.160.0030.08020.56
5.6.150.0000.08318.29
5.6.140.0000.04718.14
5.6.130.0100.07318.19
5.6.120.0130.04321.00
5.6.110.0070.08321.15
5.6.100.0130.07321.07
5.6.90.0130.04721.00
5.6.80.0070.03720.49
5.5.350.3330.03320.29
5.5.340.0100.03717.99
5.5.330.0070.04020.23
5.5.320.0470.04320.32
5.5.310.0230.07720.19
5.5.300.0130.06717.95
5.5.290.0130.03718.02
5.5.280.0030.05020.80
5.5.270.0100.07320.68
5.5.260.0170.07320.76
5.5.250.0030.09020.71
5.5.240.0270.06720.11

preferences:
45.72 ms | 401 KiB | 5 Q