3v4l.org

run code in 300+ PHP versions simultaneously
<?php function writeWelcome(string $username, int $salary) : void { printHeader(); echo "Witaj {$user}"; echo "Dzisiejsza Twoja wypłata, to: {$salary}"; } writeWelcome('Marek', 700);

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.70.0060.00916.48
8.3.60.0150.00718.54
8.3.50.0100.00821.98
8.3.40.0120.00318.76
8.3.30.0100.00719.02
8.3.20.0160.00020.31
8.3.10.0040.00420.48
8.3.00.0000.00821.85
8.2.190.0110.00316.75
8.2.180.0150.00616.50
8.2.170.0090.00622.96
8.2.160.0100.00722.08
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00220.87
8.2.120.0070.00026.35
8.2.110.0080.00019.27
8.2.100.0000.01118.04
8.2.90.0020.00519.23
8.2.80.0000.00817.97
8.2.70.0040.00417.49
8.2.60.0050.00317.80
8.2.50.0000.00818.09
8.2.40.0000.00822.27
8.2.30.0000.00719.35
8.2.20.0030.00617.66
8.2.10.0030.00518.02
8.2.00.0040.00417.98
8.1.280.0090.00625.92
8.1.270.0000.01922.10
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00322.08
8.1.230.0040.00717.77
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.13
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0000.00818.57
8.1.160.0040.00420.63
8.1.150.0080.00020.51
8.1.140.0000.00819.44
8.1.130.0070.00017.57
8.1.120.0080.00017.43
8.1.110.0020.00517.33
8.1.100.0000.00717.28
8.1.90.0060.00317.25
8.1.80.0070.00017.21
8.1.70.0030.00317.34
8.1.60.0040.00417.41
8.1.50.0000.00817.36
8.1.40.0040.00417.40
8.1.30.0040.00417.48
8.1.20.0040.00417.39
8.1.10.0000.00817.51
8.1.00.0000.00717.46
8.0.300.0000.00718.84
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0000.00717.11
8.0.260.0000.00717.20
8.0.250.0000.00716.99
8.0.240.0070.00016.89
8.0.230.0050.00216.88
8.0.220.0070.00016.78
8.0.210.0000.01016.88
8.0.200.0000.00616.99
8.0.190.0000.00716.91
8.0.180.0040.00416.93
8.0.170.0030.00516.82
8.0.160.0030.00316.84
8.0.150.0030.00516.85
8.0.140.0060.00316.78
8.0.130.0030.00313.30
8.0.120.0060.00316.81
8.0.110.0040.00416.73
8.0.100.0050.00316.72
8.0.90.0040.00416.85
8.0.80.0090.00616.77
8.0.70.0040.00416.93
8.0.60.0030.00516.93
8.0.50.0050.00216.74
8.0.30.0080.01217.21
8.0.20.0090.01117.40
8.0.10.0000.00717.02
8.0.00.0120.00616.60
7.4.330.0050.00016.71
7.4.320.0060.00016.51
7.4.300.0030.00316.33
7.4.290.0030.00316.42
7.4.280.0060.00016.43
7.4.270.0030.00316.42
7.4.260.0040.00416.41
7.4.250.0070.00016.55
7.4.240.0040.00216.43
7.4.230.0040.00416.55
7.4.220.0070.01116.45
7.4.210.0130.01016.45
7.4.200.0080.00016.27
7.4.160.0180.00316.26
7.4.150.0090.00917.40
7.4.140.0100.01017.86
7.4.130.0100.00716.40
7.4.120.0060.01016.43
7.4.110.0080.00816.39
7.4.100.0160.00316.64
7.4.90.0120.01216.51
7.4.80.0140.00419.39
7.4.70.0100.00716.30
7.4.60.0040.01316.42
7.4.50.0040.01216.46
7.4.40.0000.01816.48
7.4.30.0070.01716.48
7.4.00.0070.00714.92
7.3.330.0000.00513.31
7.3.320.0030.00313.16
7.3.310.0030.00316.26
7.3.300.0000.00716.25
7.3.290.0080.00716.33
7.3.280.0130.00516.29
7.3.270.0130.00717.40
7.3.260.0150.00316.30
7.3.250.0120.00616.36
7.3.240.0090.00916.26
7.3.230.0080.00916.39
7.3.210.0040.01516.21
7.3.200.0060.00916.43
7.3.190.0110.00516.52
7.3.180.0130.01016.28
7.3.170.0090.00616.42
7.3.160.0080.00816.54
7.3.10.0000.01216.65
7.3.00.0110.00416.60
7.2.330.0060.01216.29
7.2.320.0070.01016.27
7.2.310.0030.01316.34
7.2.300.0070.01016.62
7.2.290.0030.01316.52
7.2.130.0040.00816.95
7.2.120.0120.00616.74
7.2.110.0060.00316.79
7.2.100.0000.01316.76
7.2.90.0040.01116.56
7.2.80.0080.00016.69
7.2.70.0060.00916.72
7.2.60.0050.00816.89
7.2.50.0100.00316.66
7.2.40.0060.00916.91
7.2.30.0030.01016.72
7.2.20.0070.00316.49
7.2.10.0060.00916.87
7.2.00.0020.01018.13
7.1.250.0070.00415.49
7.1.200.0040.00815.36
7.1.100.0080.00017.76
7.1.70.0040.00417.11
7.1.60.0140.01119.40
7.1.50.0030.00916.66
7.1.00.0100.07022.33
7.0.200.0320.00314.52
7.0.60.0230.06321.72
7.0.50.0070.08017.74
7.0.40.0000.05320.11
7.0.30.0270.08320.20
7.0.20.0470.05320.19
7.0.10.0030.05720.09
7.0.00.0030.04720.23
5.6.280.0030.03320.86
5.6.210.0170.07720.62
5.6.200.0100.08318.19
5.6.190.0170.03320.39
5.6.180.0200.04720.48
5.6.170.0300.07320.47
5.6.160.0100.08020.39
5.6.150.0030.04018.29
5.6.140.0030.05018.17
5.6.130.0000.08718.18
5.6.120.0100.05321.05
5.6.110.0130.05321.00
5.6.100.0030.09021.13
5.6.90.0100.07321.10
5.6.80.0070.08320.38
5.5.350.4000.04320.33
5.5.340.0100.06017.99
5.5.330.0100.07720.57
5.5.320.0600.07020.27
5.5.310.0370.06320.32
5.5.300.0200.06717.99
5.5.290.0000.09017.98
5.5.280.0030.06320.85
5.5.270.0070.08020.64
5.5.260.0030.05720.86
5.5.250.0230.07020.71
5.5.240.0230.07020.15

preferences:
59.17 ms | 401 KiB | 5 Q