3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function something(int $int, string $string): string { return "{$string} {$int}"; } something(9000, "Hello world >"); // Hello world > 9000

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.0150.00316.75
8.3.50.0030.01418.06
8.3.40.0000.02118.68
8.3.30.0040.01118.71
8.3.20.0000.00720.21
8.3.10.0000.00823.66
8.3.00.0080.00019.38
8.2.180.0040.01118.29
8.2.170.0070.00722.96
8.2.160.0030.01020.41
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00422.30
8.2.120.0000.00726.16
8.2.110.0030.00620.33
8.2.100.0110.00017.80
8.2.90.0040.00418.97
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0060.00318.04
8.2.50.0040.00418.07
8.2.40.0000.00819.28
8.2.30.0040.00420.52
8.2.20.0000.00817.52
8.2.10.0040.00417.90
8.2.00.0040.00417.87
8.1.280.0100.00325.92
8.1.270.0080.00023.92
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0040.00817.64
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0040.00717.10
8.1.190.0080.00017.45
8.1.180.0040.00418.10
8.1.170.0040.00418.35
8.1.160.0040.00421.84
8.1.150.0040.00418.75
8.1.140.0000.00819.35
8.1.130.0030.00317.61
8.1.120.0040.00417.34
8.1.110.0080.00017.33
8.1.100.0000.00717.32
8.1.90.0080.00017.32
8.1.80.0030.00317.19
8.1.70.0000.00717.20
8.1.60.0000.00817.50
8.1.50.0090.00017.52
8.1.40.0000.00817.34
8.1.30.0080.00017.54
8.1.20.0040.00417.60
8.1.10.0090.00017.54
8.1.00.0000.00817.32
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.43
8.0.270.0070.00017.13
8.0.260.0030.00317.29
8.0.250.0000.00616.84
8.0.240.0070.00016.98
8.0.230.0030.00316.86
8.0.220.0000.00716.88
8.0.210.0000.00716.81
8.0.200.0000.00716.95
8.0.190.0040.00416.95
8.0.180.0000.00716.85
8.0.170.0050.00316.84
8.0.160.0000.00716.89
8.0.150.0000.00716.92
8.0.140.0050.00316.75
8.0.130.0050.00013.35
8.0.120.0050.00316.83
8.0.110.0050.00216.91
8.0.100.0040.00416.75
8.0.90.0040.00416.84
8.0.80.0070.01016.81
8.0.70.0000.00816.80
8.0.60.0000.00716.71
8.0.50.0040.00416.95
8.0.30.0100.00817.03
8.0.20.0140.01017.40
8.0.10.0070.00016.89
8.0.00.0100.00916.89
7.4.330.0050.00016.71
7.4.320.0000.00616.38
7.4.300.0000.00616.50
7.4.290.0000.00716.44
7.4.280.0090.00016.46
7.4.270.0040.00416.54
7.4.260.0000.00716.41
7.4.250.0040.00416.46
7.4.240.0050.00216.45
7.4.230.0000.00716.45
7.4.220.0160.00616.50
7.4.210.0100.01316.49
7.4.200.0030.00316.43
7.4.160.0100.00616.42
7.4.150.0090.01617.40
7.4.140.0130.01117.86
7.4.130.0090.00816.34
7.4.120.0070.01116.51
7.4.110.0150.00316.45
7.4.100.0130.00316.24
7.4.90.0190.00316.43
7.4.80.0100.00719.39
7.4.70.0030.01316.59
7.4.60.0130.00316.47
7.4.50.0030.01216.19
7.4.40.0140.00316.44
7.4.30.0130.00316.27
7.4.00.0030.01314.68
7.3.330.0030.00313.31
7.3.320.0030.00313.43
7.3.310.0000.00716.30
7.3.300.0040.00416.36
7.3.290.0140.00516.34
7.3.280.0080.01216.28
7.3.270.0100.00717.40
7.3.260.0090.01216.34
7.3.250.0110.00916.30
7.3.240.0130.00616.39
7.3.230.0090.00916.39
7.3.210.0030.01316.41
7.3.200.0150.00616.29
7.3.190.0090.00916.67
7.3.180.0100.00716.42
7.3.170.0120.00916.27
7.3.160.0090.00916.36
7.3.120.0060.01014.73
7.3.110.0090.00614.83
7.3.100.0030.00715.11
7.3.90.0070.00714.94
7.3.80.0030.01014.85
7.3.70.0000.00714.66
7.3.60.0070.00414.61
7.3.50.0030.01314.71
7.3.40.0060.00614.76
7.3.30.0100.00014.62
7.3.20.0100.00316.60
7.3.10.0070.00716.57
7.3.00.0090.00016.69
7.2.330.0060.01116.59
7.2.320.0100.00716.54
7.2.310.0030.01416.44
7.2.300.0050.01716.29
7.2.290.0100.00616.65
7.2.250.0030.01114.59
7.2.240.0070.01015.04
7.2.230.0040.00814.86
7.2.220.0090.00614.93
7.2.210.0120.00614.66
7.2.200.0040.00814.74
7.2.190.0060.00614.98
7.2.180.0090.00614.87
7.2.170.0030.01014.92
7.2.160.0030.00614.77
7.2.150.0100.00316.92
7.2.140.0000.00816.71
7.2.130.0040.01116.88
7.2.120.0120.00616.81
7.2.110.0070.01116.75
7.2.100.0060.00916.81
7.2.90.0120.00416.91
7.2.80.0030.01316.68
7.2.70.0060.00616.60
7.2.60.0070.00716.67
7.2.50.0100.00316.89
7.2.40.0090.00616.71
7.2.30.0060.00616.81
7.2.20.0040.01116.84
7.2.10.0040.01116.63
7.2.00.0090.00518.15
7.1.330.0060.00915.84
7.1.320.0080.00615.82
7.1.310.0030.01215.75
7.1.300.0060.00615.76
7.1.290.0100.00315.60
7.1.280.0000.01615.91
7.1.270.0000.00815.45
7.1.260.0040.00415.87
7.1.250.0060.00315.70
7.1.200.0040.00815.46
7.1.100.0070.00717.89
7.1.70.0090.00917.05
7.1.60.0110.01419.36
7.1.50.0000.02116.85
7.1.00.0030.07722.31
7.0.200.0030.00616.65
7.0.60.0070.08720.00
7.0.50.0070.03717.86
7.0.40.0070.04320.21
7.0.30.0430.07720.24
7.0.20.0470.06720.22
7.0.10.0070.08720.25
7.0.00.0100.08720.27
5.6.280.0070.03021.16
5.6.210.0100.07720.47
5.6.200.0070.05018.24
5.6.190.0100.09020.52
5.6.180.0570.07020.41
5.6.170.0200.06020.53
5.6.160.0130.07020.50
5.6.150.0100.07718.19
5.6.140.0100.06718.14
5.6.130.0100.06018.14
5.6.120.0070.07320.99
5.6.110.0030.05021.01
5.6.100.0070.04321.07
5.6.90.0070.03720.97
5.6.80.0070.06720.40
5.5.350.0200.07720.38
5.5.340.0100.03718.04
5.5.330.0230.06720.59
5.5.320.0000.04320.38
5.5.310.0300.04720.34
5.5.300.0100.06317.92
5.5.290.0070.05017.95
5.5.280.0100.08020.86
5.5.270.0000.05020.68
5.5.260.0000.05020.88
5.5.250.0130.08020.46
5.5.240.0230.07020.16

preferences:
55.85 ms | 400 KiB | 5 Q