3v4l.org

run code in 300+ PHP versions simultaneously
<?php function toto($x,&$y = 3) { return $x + $y; } var_dump(toto(2, 3));

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.0040.01118.43
8.3.50.0120.00921.09
8.3.40.0100.01018.71
8.3.30.0040.01118.93
8.3.20.0060.00320.28
8.3.10.0060.00323.45
8.3.00.0030.00719.38
8.2.180.0110.00316.50
8.2.170.0000.01522.96
8.2.160.0130.00720.44
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00021.94
8.2.110.0060.00322.30
8.2.100.0060.00318.75
8.1.280.0180.00025.92
8.1.270.0030.00523.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00418.41
8.1.230.0030.00618.45
5.4.340.0100.03412.03
5.4.320.0240.04112.52
5.4.310.0090.03812.52
5.4.300.0170.03412.51
5.4.290.0290.03412.52
5.4.280.0160.04112.41
5.4.270.0250.04912.41
5.4.260.0120.05812.41
5.4.250.0120.04312.41
5.4.240.0050.05212.41
5.4.230.0040.05512.40
5.4.220.0090.05312.40
5.4.210.0130.04412.40
5.4.200.0120.03612.40
5.4.190.0070.03612.39
5.4.180.0080.03512.40
5.4.170.0080.03612.41
5.4.160.0090.03412.40
5.4.150.0060.03612.39
5.4.140.0040.04012.08
5.4.130.0100.03512.07
5.4.120.0070.03612.02
5.4.110.0070.04812.02
5.4.100.0090.03512.03
5.4.90.0060.03812.02
5.4.80.0060.04212.03
5.4.70.0070.03412.02
5.4.60.0040.03612.02
5.4.50.0050.03612.02
5.4.40.0070.03712.01
5.4.30.0070.03912.00
5.4.20.0070.03312.00
5.4.10.0040.03612.00
5.4.00.0060.03511.50
5.3.290.0060.03912.80
5.3.280.0080.03712.71
5.3.270.0090.04112.72
5.3.260.0080.04312.72
5.3.250.0040.04212.72
5.3.240.0110.04112.72
5.3.230.0060.03812.71
5.3.220.0070.03812.68
5.3.210.0100.04112.68
5.3.200.0100.03612.68
5.3.190.0080.03712.67
5.3.180.0040.04112.68
5.3.170.0050.03812.67
5.3.160.0050.03912.68
5.3.150.0110.04712.67
5.3.140.0080.03612.66
5.3.130.0060.04112.66
5.3.120.0050.05012.65
5.3.110.0090.04712.66
5.3.100.0060.03912.13
5.3.90.0040.04312.11
5.3.80.0070.04312.09
5.3.70.0050.03912.09
5.3.60.0070.03612.08
5.3.50.0040.03912.02
5.3.40.0060.03612.02
5.3.30.0080.03311.98
5.3.20.0080.04511.76
5.3.10.0080.03211.73
5.3.00.0040.04011.71
5.2.170.0070.0309.21
5.2.160.0040.0389.21
5.2.150.0090.0339.21
5.2.140.0040.0419.21
5.2.130.0100.0399.17
5.2.120.0030.0319.17
5.2.110.0030.0319.18
5.2.100.0070.0359.18
5.2.90.0050.0369.17
5.2.80.0050.0319.17
5.2.70.0080.0329.17
5.2.60.0070.0389.12
5.2.50.0060.0309.09
5.2.40.0060.0299.07
5.2.30.0040.0309.04
5.2.20.0050.0299.04
5.2.10.0050.0288.95
5.2.00.0040.0338.80
5.1.60.0050.0248.08
5.1.50.0040.0268.08
5.1.40.0060.0288.07
5.1.30.0070.0358.42
5.1.20.0160.0418.43
5.1.10.0060.0298.16
5.1.00.0080.0308.16
5.0.50.0050.0266.64
5.0.40.0050.0246.50
5.0.30.0060.0396.30
5.0.20.0060.0276.28
5.0.10.0020.0256.25
5.0.00.0030.0326.25
4.4.90.0030.0154.78
4.4.80.0030.0154.76
4.4.70.0030.0154.76
4.4.60.0010.0174.76
4.4.50.0030.0164.77
4.4.40.0040.0254.71
4.4.30.0030.0154.76
4.4.20.0010.0174.85
4.4.10.0020.0164.85
4.4.00.0030.0254.76
4.3.110.0060.0134.67
4.3.100.0040.0144.66
4.3.90.0030.0144.63
4.3.80.0020.0254.58
4.3.70.0050.0134.63
4.3.60.0020.0154.63
4.3.50.0050.0144.62
4.3.40.0030.0234.54
4.3.30.0000.0233.30
4.3.20.0020.0163.28
4.3.10.0030.0153.23
4.3.00.0070.0178.95

preferences:
34.12 ms | 401 KiB | 5 Q