3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function howManyAreThere(int $howMany) { return 'There are ' . $howMany; } var_dump(howManyAreThere('11 horses'));

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.4.10.0090.00019.53
8.3.140.0120.00616.57
8.3.130.0090.00018.47
8.3.120.0050.00318.79
8.3.110.0090.00020.94
8.3.100.0000.00824.06
8.3.90.0040.00426.77
8.3.80.0080.00417.97
8.3.70.0100.01018.43
8.3.60.0140.00716.75
8.3.50.0100.00717.46
8.3.40.0140.00018.84
8.3.30.0040.01118.62
8.3.20.0040.00423.70
8.3.10.0080.00023.56
8.3.00.0000.00721.83
8.2.250.0100.01018.11
8.2.240.0000.00817.06
8.2.230.0060.00322.58
8.2.220.0050.00337.54
8.2.210.0070.00026.77
8.2.200.0060.00318.41
8.2.190.0100.00716.58
8.2.180.0120.00316.63
8.2.170.0090.00922.96
8.2.160.0070.01019.05
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.54
8.2.110.0030.00621.11
8.2.100.0080.00417.91
8.2.90.0040.00418.16
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0080.00017.63
8.2.50.0040.00417.63
8.2.40.0040.00420.64
8.2.30.0040.00419.17
8.2.20.0000.00718.05
8.2.10.0000.00717.88
8.2.00.0070.00018.16
8.1.300.0080.00017.85
8.1.290.0040.00418.88
8.1.280.0080.00825.92
8.1.270.0080.00022.06
8.1.260.0060.00626.35
8.1.250.0070.00028.09
8.1.240.0090.00022.42
8.1.230.0040.00720.88
8.1.220.0000.00817.74
8.1.210.0060.00618.77
8.1.200.0030.00617.10
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0050.00318.76
8.1.150.0060.00318.76
8.1.140.0030.00519.11
8.1.130.0080.00017.58
8.1.120.0000.00817.34
8.1.110.0090.00017.36
8.1.100.0000.00717.28
8.1.90.0000.00717.21
8.1.80.0030.00317.21
8.1.70.0000.01017.29
8.1.60.0000.00817.37
8.1.50.0080.00017.35
8.1.40.0000.00717.37
8.1.30.0000.00917.44
8.1.20.0000.00817.52
8.1.10.0070.00017.41
8.1.00.0000.00817.41
8.0.300.0070.00019.89
8.0.290.0040.00416.63
8.0.280.0030.00318.37
8.0.270.0030.00316.75
8.0.260.0030.00317.10
8.0.250.0030.00316.95
8.0.240.0050.00516.85
8.0.230.0070.00016.96
8.0.220.0000.00716.87
8.0.210.0030.00316.78
8.0.200.0030.00316.88
8.0.190.0040.00416.94
8.0.180.0000.00716.80
8.0.170.0000.00816.80
8.0.160.0000.00716.78
8.0.150.0030.00416.91
8.0.140.0040.00416.87
8.0.130.0050.00013.35
8.0.120.0040.00416.78
8.0.110.0070.00016.80
8.0.100.0000.00716.99
8.0.90.0000.00816.76
8.0.80.0120.00316.84
8.0.70.0040.00416.77
8.0.60.0000.00816.75
8.0.50.0080.00016.93
8.0.30.0110.00917.16
8.0.20.0110.00817.40
8.0.10.0070.00016.93
8.0.00.0090.00916.75
7.4.330.0000.00415.55
7.4.320.0060.00016.41
7.4.300.0030.00316.39
7.4.290.0050.00516.57
7.4.280.0000.00816.48
7.4.270.0030.00316.38
7.4.260.0070.00016.40
7.4.250.0080.00016.43
7.4.240.0050.00216.52
7.4.230.0070.00016.36
7.4.220.0050.00316.27
7.4.210.0110.00816.46
7.4.200.0070.00016.60
7.4.160.0120.00816.39
7.4.150.0150.00417.40
7.4.140.0070.01417.86
7.4.130.0120.01216.62
7.4.120.0130.00916.49
7.4.110.0030.01316.32
7.4.100.0070.01016.54
7.4.90.0090.00916.48
7.4.80.0150.01219.39
7.4.70.0150.00916.52
7.4.60.0030.01416.52
7.4.50.0040.01216.60
7.4.40.0070.01016.43
7.4.00.0190.00014.86
7.3.330.0000.00513.07
7.3.320.0000.00613.30
7.3.310.0000.00716.16
7.3.300.0030.00316.31
7.3.290.0130.00516.29
7.3.280.0090.00616.25
7.3.270.0170.00717.40
7.3.260.0140.00616.36
7.3.250.0100.00816.37
7.3.240.0120.00816.54
7.3.230.0090.00616.36
7.3.210.0120.00916.52
7.3.200.0120.00416.55
7.3.190.0070.01316.25
7.3.180.0070.01016.38
7.3.170.0080.00816.48
7.3.160.0150.00716.58
7.3.120.0110.00714.78
7.3.110.0060.00614.52
7.3.100.0060.00914.93
7.3.90.0130.00314.53
7.3.80.0040.00714.63
7.3.70.0030.00614.70
7.3.60.0070.00714.70
7.3.50.0060.00614.63
7.3.40.0030.01014.85
7.3.30.0110.00414.75
7.3.20.0030.00616.55
7.3.10.0080.00416.36
7.3.00.0070.01016.83
7.2.330.0060.01216.47
7.2.320.0090.01216.35
7.2.310.0110.00716.30
7.2.300.0110.01116.61
7.2.290.0000.01516.47
7.2.250.0090.00914.73
7.2.240.0000.02014.84
7.2.230.0060.01214.86
7.2.220.0090.00014.84
7.2.210.0030.01314.95
7.2.200.0080.00014.84
7.2.190.0040.00714.80
7.2.180.0100.00014.75
7.2.170.0040.01114.94
7.2.160.0040.00414.75
7.2.150.0030.01216.95
7.2.140.0060.00616.61
7.2.130.0030.00616.60
7.2.120.0140.00416.60
7.2.110.0110.00716.59
7.2.100.0070.00716.63
7.2.90.0070.01016.72
7.2.80.0040.01116.76
7.2.70.0070.00716.93
7.2.60.0050.00916.78
7.2.50.0000.01016.91
7.2.40.0040.01217.15
7.2.30.0410.00916.95
7.2.20.0080.01017.24
7.2.10.0210.01118.27
7.2.00.0240.01117.93
7.1.330.0070.00715.66
7.1.320.0040.00715.65
7.1.310.0070.00315.63
7.1.300.0070.00715.57
7.1.290.0100.00315.46
7.1.280.0030.01215.70
7.1.270.0110.00015.66
7.1.260.0070.00715.48
7.1.250.0110.00415.78
7.1.200.0090.00615.48
7.1.160.1200.01316.35
7.1.150.1130.00716.66
7.1.140.0920.01116.80
7.1.130.0460.00816.57
7.1.120.0400.01017.25
7.1.110.0390.01116.90
7.1.100.0510.01116.69
7.1.90.0500.01016.71
7.1.80.0720.00916.80
7.1.70.0660.00815.86
7.1.60.0520.01133.78
7.1.50.0540.01533.51
7.1.40.0540.01433.11
7.1.30.0680.01132.98
7.1.20.0680.01633.29
7.1.10.0780.01215.32
7.1.00.0490.00915.30

preferences:
53.41 ms | 403 KiB | 5 Q