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.60.0140.00716.38
8.3.50.0120.00721.20
8.3.40.0120.00618.45
8.3.30.0150.00018.50
8.3.20.0050.00220.21
8.3.10.0000.00823.53
8.3.00.0040.00419.97
8.2.180.0110.00416.75
8.2.170.0140.00722.96
8.2.160.0030.01020.39
8.2.150.0070.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00519.30
8.2.120.0040.00426.35
8.2.110.0060.00322.10
8.2.100.0080.00417.90
8.2.90.0000.00719.09
8.2.80.0060.00317.97
8.2.70.0100.00017.63
8.2.60.0090.00317.77
8.2.50.0000.00818.07
8.2.40.0030.00820.43
8.2.30.0040.00420.53
8.2.20.0040.00417.54
8.2.10.0000.01117.84
8.2.00.0070.00017.95
8.1.280.0160.00025.92
8.1.270.0000.00920.30
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.47
8.1.230.0080.00318.97
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.10
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0000.00818.49
8.1.160.0000.00820.67
8.1.150.0040.00418.66
8.1.140.0030.00519.43
8.1.130.0000.00717.49
8.1.120.0000.00717.40
8.1.110.0000.00817.24
8.1.100.0000.00817.35
8.1.90.0020.00517.32
8.1.80.0060.00317.34
8.1.70.0030.00317.21
8.1.60.0040.00417.47
8.1.50.0030.00517.44
8.1.40.0030.00617.50
8.1.30.0060.00317.61
8.1.20.0030.00517.54
8.1.10.0060.00317.53
8.1.00.0000.00917.45
8.0.300.0000.00818.77
8.0.290.0030.00616.75
8.0.280.0030.00318.34
8.0.270.0000.00717.26
8.0.260.0000.00617.24
8.0.250.0030.00316.94
8.0.240.0000.00716.95
8.0.230.0000.00716.92
8.0.220.0030.00516.73
8.0.210.0030.00316.68
8.0.200.0030.00316.80
8.0.190.0040.00416.88
8.0.180.0080.00016.73
8.0.170.0060.00316.82
8.0.160.0000.00816.74
8.0.150.0040.00416.80
8.0.140.0040.00416.77
8.0.130.0000.00513.33
8.0.120.0040.00416.80
8.0.110.0040.00416.67
8.0.100.0000.00816.79
8.0.90.0040.00416.69
8.0.80.0060.01216.77
8.0.70.0000.00716.70
8.0.60.0050.00216.71
8.0.50.0050.00216.69
8.0.30.0100.00916.95
8.0.20.0060.01217.40
8.0.10.0000.00816.76
8.0.00.0110.00616.67
7.4.330.0050.00016.84
7.4.320.0000.00716.49
7.4.300.0070.00016.44
7.4.290.0000.00716.37
7.4.280.0040.00416.54
7.4.270.0000.00716.54
7.4.260.0070.00016.52
7.4.250.0070.00016.54
7.4.240.0020.00516.43
7.4.230.0000.00716.59
7.4.220.0100.01316.36
7.4.210.0060.00916.54
7.4.200.0070.00016.55
7.4.160.0100.00716.48
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0110.00816.56
7.4.120.0090.00816.41
7.4.110.0140.00416.41
7.4.100.0070.01016.52
7.4.90.0100.00716.31
7.4.80.0100.01019.39
7.4.70.0030.01316.38
7.4.60.0040.01216.50
7.4.50.0030.01016.28
7.4.40.0090.00916.64
7.4.30.0170.00616.58
7.4.00.0090.00314.65
7.3.330.0000.00613.29
7.3.320.0050.00013.30
7.3.310.0030.00316.34
7.3.300.0030.00316.30
7.3.290.0070.00016.24
7.3.280.0120.00616.25
7.3.270.0060.01217.40
7.3.260.0060.01116.57
7.3.250.0070.01116.32
7.3.240.0120.00716.32
7.3.230.0090.00916.60
7.3.210.0070.01116.26
7.3.200.0100.00616.22
7.3.190.0120.00616.32
7.3.180.0080.00816.30
7.3.170.0210.00316.36
7.3.160.0120.00316.38
7.2.330.0170.00016.46
7.2.320.0150.00316.47
7.2.310.0100.00716.55
7.2.300.0120.00416.59
7.2.290.0100.00716.36
7.2.60.0200.00515.94
7.2.00.0060.00619.51
7.1.200.0040.00415.58
7.1.100.0000.00817.83
7.1.70.0060.00416.82
7.1.60.0060.01619.52
7.1.50.0230.01334.71
7.1.00.0100.07022.44
7.0.200.0040.00716.62
7.0.60.0100.06719.98
7.0.50.0100.08017.87
7.0.40.0070.04020.04
7.0.30.0370.07320.25
7.0.20.0330.07320.07
7.0.10.0170.07720.08
7.0.00.0000.08720.19
5.6.280.0030.03020.91
5.6.210.0100.07720.53
5.6.200.0030.04018.28
5.6.190.0170.08020.55
5.6.180.0270.04020.79
5.6.170.0530.06320.51
5.6.160.0030.09020.44
5.6.150.0000.04318.25
5.6.140.0070.05318.23
5.6.130.0030.08718.25
5.6.120.0000.05021.12
5.6.110.0070.06321.03
5.6.100.0200.07320.98
5.6.90.0100.07721.00
5.6.80.0030.06720.54
5.5.350.0330.07020.44
5.5.340.0000.08718.01
5.5.330.0030.07020.35
5.5.320.0570.07720.51
5.5.310.0230.05320.34
5.5.300.0030.05318.09
5.5.290.0070.09017.94
5.5.280.0170.07020.89
5.5.270.0200.05720.85
5.5.260.0070.07720.65
5.5.250.0070.06320.69
5.5.240.4030.03720.21

preferences:
53.21 ms | 401 KiB | 5 Q