3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function bar(int $foo): string { return $foo; } bar(123);

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.20.0070.01319.60
8.4.10.0030.00618.58
8.3.150.0080.00617.19
8.3.140.0140.00416.83
8.3.130.0060.00318.34
8.3.120.0050.00318.97
8.3.110.0000.00820.94
8.3.100.0090.00024.06
8.3.90.0160.00026.77
8.3.80.0000.00816.63
8.3.70.0120.00316.75
8.3.60.0100.00718.55
8.3.50.0120.00418.21
8.3.40.0090.00918.70
8.3.30.0000.01518.66
8.3.20.0040.00421.78
8.3.10.0000.00823.47
8.3.00.0070.00017.91
8.2.260.0040.00418.62
8.2.250.0000.00818.68
8.2.240.0000.00917.16
8.2.230.0100.00022.58
8.2.220.0060.00337.54
8.2.210.0100.01026.77
8.2.200.0060.00316.88
8.2.190.0070.01116.58
8.2.180.0110.00718.43
8.2.170.0070.00718.82
8.2.160.0120.00322.96
8.2.150.0070.00025.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00320.86
8.2.110.0030.00720.52
8.2.100.0030.01017.91
8.2.90.0000.00719.13
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0040.00417.80
8.2.50.0040.00417.93
8.2.40.0080.00019.36
8.2.30.0040.00419.25
8.2.20.0040.00417.92
8.2.10.0000.00717.88
8.2.00.0000.00717.93
8.1.310.0140.00516.87
8.1.300.0030.00620.27
8.1.290.0040.00430.84
8.1.280.0000.01525.92
8.1.270.0060.00323.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00920.88
8.1.230.0080.00320.89
8.1.220.0030.00517.74
8.1.210.0000.01118.77
8.1.200.0080.00017.21
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0040.00418.74
8.1.150.0030.00318.85
8.1.140.0040.00417.47
8.1.130.0000.00718.88
8.1.120.0040.00317.30
8.1.110.0070.00017.29
8.1.100.0070.00017.31
8.1.90.0000.00717.22
8.1.80.0060.00317.28
8.1.70.0030.00317.22
8.1.60.0000.00917.48
8.1.50.0040.00417.43
8.1.40.0040.00417.40
8.1.30.0000.00717.62
8.1.20.0070.00017.55
8.1.10.0030.00717.46
8.1.00.0090.00317.29
8.0.300.0000.00719.94
8.0.290.0000.00716.75
8.0.280.0000.00718.34
8.0.270.0040.00416.82
8.0.260.0040.00417.09
8.0.250.0090.00016.84
8.0.240.0040.00416.99
8.0.230.0030.00316.91
8.0.220.0040.00416.82
8.0.210.0030.00316.88
8.0.200.0000.00616.89
8.0.190.0040.00416.88
8.0.180.0000.00816.95
8.0.170.0000.00816.90
8.0.160.0050.00216.87
8.0.150.0030.00716.93
8.0.140.0000.00716.86
8.0.130.0030.00313.37
8.0.120.0040.00416.84
8.0.110.0030.00316.83
8.0.100.0080.00016.68
8.0.90.0000.00716.78
8.0.80.0100.00616.92
8.0.70.0070.00016.70
8.0.60.0040.00416.86
8.0.50.0040.00416.75
8.0.30.0130.00616.99
8.0.20.0100.00917.40
8.0.10.0000.00716.82
8.0.00.0150.00716.72
7.4.330.0030.00315.55
7.4.320.0060.00016.38
7.4.300.0030.00316.57
7.4.290.0040.00416.36
7.4.280.0000.00716.50
7.4.270.0070.00016.52
7.4.260.0000.00716.44
7.4.250.0050.00316.38
7.4.240.0000.00816.54
7.4.230.0000.00716.27
7.4.220.0040.00416.52
7.4.210.0090.00816.47
7.4.200.0030.00316.55
7.4.160.0080.00916.47
7.4.140.0090.00917.86
7.4.130.0180.00416.43
7.4.120.0090.00916.43
7.4.110.0080.01116.42
7.4.100.0120.00916.44
7.4.90.0030.01316.38
7.4.80.0180.00319.39
7.4.70.0120.00416.42
7.4.60.0160.00316.54
7.4.50.0130.00616.27
7.4.40.0060.01516.34
7.4.30.0030.01316.48
7.4.20.0120.00816.48
7.4.10.0080.01116.10
7.4.00.0090.00815.79
7.3.330.0000.00513.35
7.3.320.0000.00613.34
7.3.310.0050.00316.38
7.3.300.0000.00616.32
7.3.290.0000.00716.30
7.3.280.0050.01016.37
7.3.260.0100.00916.32
7.3.240.0080.00916.40
7.3.230.0110.00716.44
7.3.210.0110.00616.48
7.3.200.0100.00716.42
7.3.190.0130.00316.38
7.3.180.0040.01416.40
7.3.170.0120.00916.43
7.3.160.0110.00516.38
7.3.150.0120.00516.40
7.3.140.0090.00916.38
7.3.130.0140.00616.02
7.3.120.0080.01015.91
7.3.110.0100.00815.85
7.3.100.0070.01115.89
7.3.90.0100.00915.75
7.3.80.0080.00615.71
7.3.70.0100.00715.66
7.3.60.0090.00815.68
7.3.50.0050.01215.73
7.3.40.0050.01215.68
7.3.30.0050.01215.66
7.3.20.0090.00616.08
7.3.10.0120.00616.12
7.3.00.0050.01116.06
7.2.330.0060.01816.27
7.2.320.0070.01716.59
7.2.310.0060.01016.57
7.2.300.0090.01216.64
7.2.290.0030.01416.67
7.2.280.0090.01116.54
7.2.270.0120.00716.50
7.2.260.0060.01415.95
7.2.250.0090.01016.03
7.2.240.0070.01015.96
7.2.230.0080.00916.16
7.2.220.0080.00915.89
7.2.210.0090.00815.80
7.2.200.0060.01015.77
7.2.190.0090.00915.66
7.2.180.0070.01115.72
7.2.170.0080.01015.77
7.2.160.0070.00915.84
7.2.150.0120.00716.21
7.2.140.0070.01116.18
7.2.130.0070.00616.24
7.2.120.0090.01016.17
7.2.110.0170.00816.21
7.2.100.0110.00616.18
7.2.90.0070.01016.16
7.2.80.0070.01016.25
7.2.70.0070.01016.13
7.2.60.0050.01116.28
7.2.50.0060.01016.36
7.2.40.0190.01016.45
7.2.30.0370.00916.55
7.2.20.0130.01016.49
7.2.10.0140.01016.55
7.2.00.0170.00616.38
7.1.330.0120.01015.55
7.1.320.0120.00915.24
7.1.310.0100.01115.22
7.1.300.0110.01015.23
7.1.290.0140.00715.13
7.1.280.0090.01115.16
7.1.270.0100.00915.27
7.1.260.0110.01115.06
7.1.250.0100.00915.15
7.1.240.0100.01015.19
7.1.230.0110.01115.18
7.1.220.0110.01015.12
7.1.210.0180.00815.11
7.1.200.0120.00715.21
7.1.190.0120.00615.22
7.1.180.0130.00715.03
7.1.170.0160.00915.13
7.1.160.0220.00615.38
7.1.150.0220.00815.45
7.1.140.0180.00915.39
7.1.130.0210.00815.47
7.1.120.0220.00915.51
7.1.110.0380.00815.39
7.1.100.0200.01015.30
7.1.90.0200.00915.31
7.1.80.0270.00915.31
7.1.70.0200.00915.21
7.1.60.0230.01018.26
7.1.50.0220.01018.14
7.1.40.0250.01118.12
7.1.30.0210.01018.20
7.1.20.0270.00918.13
7.1.10.0190.00815.08
7.1.00.0200.00715.10
7.0.330.0130.00914.73
7.0.320.0130.00914.62
7.0.310.0130.01014.64
7.0.300.0160.00714.73
7.0.290.0100.01414.53
7.0.280.0160.00814.65
7.0.270.0190.00714.69
7.0.260.0140.00714.76
7.0.250.0140.01214.73
7.0.240.0100.00914.73
7.0.230.0200.00714.74
7.0.220.0200.01014.77
7.0.210.0170.00714.78
7.0.200.0180.00614.68
7.0.190.0160.01014.69
7.0.180.0200.00614.76
7.0.170.0140.01014.69
7.0.160.0160.01114.75
7.0.150.0160.00914.72
7.0.140.0190.00614.66
7.0.130.0160.00714.74
7.0.120.0150.00814.77
7.0.110.0170.00614.76
7.0.100.0150.00814.80
7.0.90.0210.00714.64
7.0.80.0190.00514.85
7.0.70.0150.00914.64
7.0.60.0180.00614.69
7.0.50.0140.00914.70
7.0.40.0200.00514.77
7.0.30.0160.00814.76
7.0.20.0140.00915.25
7.0.10.0140.00914.68
7.0.00.0150.00914.67
5.6.400.0120.01115.21
5.6.390.0140.01015.30
5.6.380.0110.01515.22
5.6.370.0110.01515.21
5.6.360.0140.01115.27
5.6.350.0160.01115.24
5.6.340.0140.00915.38
5.6.330.0190.00915.28
5.6.320.0180.00815.28
5.6.310.0160.00715.36
5.6.300.0160.02416.35
5.6.290.0170.01916.34
5.6.280.0150.02416.36
5.6.270.0190.01916.28
5.6.260.0200.01716.36
5.6.250.0140.02716.39
5.6.240.0140.02516.40
5.6.230.0130.02216.37
5.6.220.0180.02116.40
5.6.210.0150.02316.34
5.6.200.0130.02216.34
5.6.190.0160.02516.36
5.6.180.0140.02116.32
5.6.170.0140.02216.26
5.6.160.0150.01916.27
5.6.150.0180.01816.39
5.6.140.0140.02016.37
5.6.130.0150.02016.33
5.6.120.0150.02416.48
5.6.110.0140.02316.40
5.6.100.0160.02216.43
5.6.90.0160.02416.36
5.6.80.0100.02316.16
5.6.70.0130.02516.17
5.6.60.0160.01816.25
5.6.50.0180.01616.18
5.6.40.0140.02016.22
5.6.30.0150.02016.19
5.6.20.0130.02216.23
5.6.10.0110.02316.16
5.6.00.0130.02316.14

preferences:
41.72 ms | 403 KiB | 5 Q