3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function foo(string $foo = null) { echo $foo; } } $foo = new Foo; $foo->foo(); $foo->foo(null); $foo->foo('bar');

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.0140.00016.38
8.3.50.0090.00921.95
8.3.40.0110.00418.67
8.3.30.0110.00418.59
8.3.20.0080.00020.09
8.3.10.0040.00421.73
8.3.00.0030.00519.25
8.2.180.0120.00316.50
8.2.170.0140.00322.96
8.2.160.0120.00320.43
8.2.150.0090.00624.18
8.2.140.0050.00324.66
8.2.130.0050.00520.43
8.2.120.0050.00226.35
8.2.110.0040.00420.48
8.2.100.0080.00418.16
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0090.00019.28
8.2.30.0030.00320.61
8.2.20.0080.00017.59
8.2.10.0000.00718.08
8.2.00.0070.00218.00
8.1.280.0030.01225.92
8.1.270.0080.00023.97
8.1.260.0000.00828.09
8.1.250.0030.00628.09
8.1.240.0000.00923.92
8.1.230.0090.00317.66
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0040.00417.71
8.1.180.0050.00318.10
8.1.170.0050.00318.58
8.1.160.0070.00021.81
8.1.150.0070.00018.73
8.1.140.0030.00519.50
8.1.130.0000.00717.38
8.1.120.0040.00417.39
8.1.110.0070.00017.20
8.1.100.0050.00317.40
8.1.90.0040.00417.40
8.1.80.0040.00417.28
8.1.70.0000.00717.36
8.1.60.0090.00017.62
8.1.50.0040.00417.51
8.1.40.0040.00417.52
8.1.30.0040.00417.68
8.1.20.0030.00517.63
8.1.10.0000.00817.57
8.1.00.0000.00817.38
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.37
8.0.270.0030.00317.20
8.0.260.0030.00318.59
8.0.250.0060.00016.96
8.0.240.0000.00816.83
8.0.230.0070.00016.89
8.0.220.0000.00816.82
8.0.210.0040.00416.83
8.0.200.0030.00316.76
8.0.190.0050.00316.87
8.0.180.0080.00016.80
8.0.170.0040.00416.85
8.0.160.0040.00416.73
8.0.150.0070.00016.72
8.0.140.0040.00416.81
8.0.130.0030.00313.20
8.0.120.0040.00416.69
8.0.110.0000.00716.65
8.0.100.0000.00816.84
8.0.90.0030.00316.85
8.0.80.0150.00016.79
8.0.70.0040.00416.68
8.0.60.0060.00316.75
8.0.50.0040.00416.87
8.0.30.0130.00917.14
8.0.20.0070.01217.40
8.0.10.0000.00716.96
8.0.00.0100.00916.74
7.4.330.0000.00516.71
7.4.320.0000.00616.43
7.4.300.0030.00316.58
7.4.290.0030.00316.50
7.4.280.0030.00616.47
7.4.270.0000.00716.48
7.4.260.0030.00316.55
7.4.250.0060.00316.46
7.4.240.0020.00516.64
7.4.230.0030.00316.65
7.4.220.0180.00616.71
7.4.210.0060.00916.60
7.4.200.0000.00816.59
7.4.160.0090.00616.39
7.4.150.0160.00617.40
7.4.140.0150.00617.86
7.4.130.0110.01016.62
7.4.120.0130.00816.49
7.4.110.0060.01116.42
7.4.100.0120.00616.45
7.4.90.0110.00616.71
7.4.80.0130.00419.39
7.4.70.0110.00616.39
7.4.60.0130.00316.45
7.4.50.0060.00616.57
7.4.40.0080.00816.73
7.4.30.0000.01716.59
7.4.00.0110.00414.70
7.3.330.0030.00313.33
7.3.320.0030.00313.31
7.3.310.0040.00416.18
7.3.300.0000.00616.14
7.3.290.0050.01016.21
7.3.280.0120.01016.31
7.3.270.0140.00317.40
7.3.260.0000.01816.51
7.3.250.0130.00616.38
7.3.240.0150.00516.21
7.3.230.0100.00716.43
7.3.210.0070.01016.67
7.3.200.0160.00616.52
7.3.190.0130.01016.31
7.3.180.0080.00816.42
7.3.170.0060.01216.65
7.3.160.0070.01416.23
7.2.330.0110.00616.57
7.2.320.0030.01316.68
7.2.310.0090.00916.70
7.2.300.0090.01016.74
7.2.290.0100.00616.64
7.2.60.0030.01217.00
7.2.00.0030.01219.27
7.1.200.0000.01315.68
7.1.100.0030.01017.73
7.1.70.0040.01117.02
7.1.60.0060.01919.36
7.1.50.0100.01016.95
7.1.00.0030.07722.45
7.0.200.0030.00516.84
7.0.60.0000.08020.00
7.0.50.0130.04017.96
7.0.40.0070.06320.21
7.0.30.0200.05320.26
7.0.20.0400.05020.19
7.0.10.0070.05020.33
7.0.00.0070.09320.06
5.6.280.0070.07320.86
5.6.210.0070.04720.71
5.6.200.0030.08318.18
5.6.190.0030.08020.50
5.6.180.0430.03720.41
5.6.170.0230.08720.55
5.6.160.0070.07320.54
5.6.150.0070.08018.16
5.6.140.0070.05318.15
5.6.130.0070.04018.32
5.6.120.0100.08021.12
5.6.110.0070.03721.12
5.6.100.0030.05321.13
5.6.90.0130.07321.00
5.6.80.0070.05320.39
5.5.350.0270.07320.44
5.5.340.0030.05318.02
5.5.330.0000.04720.13
5.5.320.0070.07020.32
5.5.310.0270.07720.34
5.5.300.0100.07718.04
5.5.290.0030.04717.95
5.5.280.0100.05720.73
5.5.270.0030.09320.96
5.5.260.0200.06720.86
5.5.250.0030.06020.66
5.5.240.0230.07320.26

preferences:
48.92 ms | 401 KiB | 5 Q