3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function fct_7($name): string { return $name; } print fct_7(1 + 2);

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.40.0120.00618.82
8.3.30.0070.00718.72
8.3.20.0050.00220.07
8.3.10.0080.00023.60
8.3.00.0070.00019.85
8.2.170.0120.00822.96
8.2.160.0110.00420.53
8.2.150.0060.00324.18
8.2.140.0070.00024.66
8.2.130.0000.01119.21
8.2.120.0090.00026.35
8.2.110.0030.00622.09
8.2.100.0080.00417.78
8.2.90.0040.00417.50
8.2.80.0000.00818.64
8.2.70.0040.00817.50
8.2.60.0080.00318.04
8.2.50.0000.00818.07
8.2.40.0000.01120.59
8.2.30.0030.00320.60
8.2.20.0040.00417.72
8.2.10.0030.00617.96
8.2.00.0040.00417.92
8.1.270.0030.00620.09
8.1.260.0000.00728.09
8.1.250.0030.00528.09
8.1.240.0080.00022.47
8.1.230.0120.00017.70
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00417.22
8.1.190.0040.00416.85
8.1.180.0030.00618.10
8.1.170.0040.00418.52
8.1.160.0040.00420.61
8.1.150.0040.00418.69
8.1.140.0050.00319.44
8.1.130.0040.00417.50
8.1.120.0070.00017.31
8.1.110.0000.00817.32
8.1.100.0050.00217.21
8.1.90.0030.00517.36
8.1.80.0000.00817.21
8.1.70.0030.00317.30
8.1.60.0000.00717.34
8.1.50.0000.00817.45
8.1.40.0060.00317.43
8.1.30.0030.00617.65
8.1.20.0070.00017.57
8.1.10.0040.00417.50
8.1.00.0120.00017.43
8.0.300.0030.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0030.00317.09
8.0.260.0030.00317.15
8.0.250.0000.00716.96
8.0.240.0070.00016.81
8.0.230.0000.00716.91
8.0.220.0000.00716.79
8.0.210.0030.00316.87
8.0.200.0000.00616.95
8.0.190.0000.00816.81
8.0.180.0040.00416.86
8.0.170.0000.00816.94
8.0.160.0060.00316.89
8.0.150.0040.00416.80
8.0.140.0050.00316.84
8.0.130.0060.00013.39
8.0.120.0040.00416.82
8.0.110.0070.00016.85
8.0.100.0000.00716.88
8.0.90.0040.00316.95
8.0.80.0040.01116.76
8.0.70.0050.00316.83
8.0.60.0040.00416.75
8.0.50.0030.00516.71
8.0.30.0110.00816.85
8.0.20.0140.00517.40
8.0.10.0030.00517.06
8.0.00.0110.00616.62
7.4.330.0030.00316.83
7.4.320.0060.00016.48
7.4.300.0000.00716.53
7.4.290.0070.00016.32
7.4.280.0030.00516.55
7.4.270.0040.00416.45
7.4.260.0030.00316.40
7.4.250.0000.00816.30
7.4.240.0040.00416.41
7.4.230.0030.00316.31
7.4.220.0110.00816.42
7.4.210.0080.00916.50
7.4.200.0080.00016.43
7.4.160.0090.00616.44
7.4.150.0100.01317.40
7.4.140.0020.01617.86
7.4.130.0120.00516.38
7.4.120.0130.00716.47
7.4.110.0110.00716.53
7.4.100.0030.01316.51
7.4.90.0080.00916.42
7.4.80.0070.01319.39
7.4.70.0090.00916.42
7.4.60.0030.01416.41
7.4.50.0070.00716.19
7.4.40.0130.00616.40
7.4.30.0070.01116.45
7.4.00.0000.01514.85
7.3.330.0000.00513.33
7.3.320.0060.00013.28
7.3.310.0020.00516.25
7.3.300.0030.00316.34
7.3.290.0040.00416.21
7.3.280.0060.01416.29
7.3.270.0110.00517.40
7.3.260.0090.00816.35
7.3.250.0100.01016.51
7.3.240.0150.00616.45
7.3.230.0160.00016.53
7.3.210.0070.01116.56
7.3.200.0070.01016.26
7.3.190.0210.03116.46
7.3.180.0120.00416.36
7.3.170.0110.01216.58
7.3.160.0080.00816.57
7.3.120.0110.00814.73
7.3.110.0100.00714.80
7.3.100.0070.00714.93
7.3.90.0040.00814.51
7.3.80.0070.01014.70
7.3.70.0080.00414.66
7.3.60.0030.00914.75
7.3.50.0110.00414.77
7.3.40.0000.01314.62
7.3.30.0120.00314.62
7.3.20.0060.00616.51
7.3.10.0000.01116.49
7.3.00.0040.01216.32
7.2.330.0030.01516.68
7.2.320.0110.01116.47
7.2.310.0130.00316.35
7.2.300.0100.00716.48
7.2.290.0100.00616.56
7.2.240.0040.01114.95
7.2.230.0080.00815.00
7.2.220.0070.00714.76
7.2.210.0070.01115.03
7.2.200.0090.00314.54
7.2.190.0030.01014.59
7.2.180.0060.01015.07
7.2.170.0030.01314.82
7.2.160.0070.00814.77
7.2.150.0000.01416.86
7.2.140.0110.00316.71
7.2.130.0000.01716.68
7.2.120.0060.00916.85
7.2.110.0100.01016.77
7.2.100.0100.01016.67
7.2.90.0120.00816.49
7.2.80.0040.01516.46
7.2.70.0060.00916.46
7.2.60.0040.01116.76
7.2.50.0090.00916.52
7.2.40.0040.01116.89
7.2.30.0090.00616.86
7.2.20.0070.00716.41
7.2.10.0000.01916.73
7.2.00.0080.01118.14
7.1.330.0090.00915.34
7.1.320.0000.01015.56
7.1.310.0000.01215.83
7.1.300.0080.00415.41
7.1.290.0120.00315.40
7.1.280.0120.00315.44
7.1.270.0040.00815.70
7.1.260.0030.01015.59
7.1.250.0080.00415.74
7.1.200.0100.00315.80
7.1.100.0100.01017.94
7.1.70.0030.00717.22
7.1.60.0090.01519.52
7.1.50.0130.01334.92
7.1.00.0000.08022.40
7.0.200.0000.00816.62
7.0.60.0070.05319.91
7.0.50.0030.04717.87
7.0.40.0030.04320.09
7.0.30.0200.04320.18
7.0.20.0330.07320.19
7.0.10.0030.06320.25
7.0.00.0000.06320.11
5.6.280.0030.03320.99
5.6.210.0030.08020.52
5.6.200.0030.04318.23
5.6.190.0030.09020.47
5.6.180.0270.06720.77
5.6.170.0470.04320.58
5.6.160.0100.04720.45
5.6.150.0030.04018.22
5.6.140.0030.04018.15
5.6.130.0030.04318.23
5.6.120.0000.05021.15
5.6.110.0030.04021.10
5.6.100.0200.07020.96
5.6.90.0070.08721.04
5.6.80.0170.07020.36
5.5.350.0270.08720.50
5.5.340.0130.07018.05
5.5.330.0070.06020.35
5.5.320.0570.05020.36
5.5.310.0230.05720.24
5.5.300.0000.05017.96
5.5.290.0070.05018.03
5.5.280.0100.05020.89
5.5.270.0000.04320.65
5.5.260.0130.05020.80
5.5.250.0100.04320.58
5.5.240.4130.03720.37

preferences:
46.31 ms | 400 KiB | 5 Q