3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function number (int $integer_only) { echo "This is an interger! Correct!"; } /** * Let's see what happens when we pass in a string as a parameter */ $string = "This is a pretty string"; number($string);

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.0070.01016.75
8.3.50.0060.00818.08
8.3.40.0090.00618.67
8.3.30.0120.00318.73
8.3.20.0000.00819.04
8.3.10.0040.00421.60
8.3.00.0090.00620.52
8.2.180.0090.01218.21
8.2.170.0150.00022.96
8.2.160.0130.00319.21
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0100.00319.70
8.2.120.0080.00026.35
8.2.110.0040.00420.44
8.2.100.0090.00917.72
8.2.90.0030.00617.63
8.2.80.0040.00418.96
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0040.00418.02
8.2.20.0040.00418.04
8.2.10.0040.00418.10
8.2.00.0050.00517.69
8.1.280.0070.00725.92
8.1.270.0000.00818.79
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0050.00518.72
8.1.230.0120.00017.60
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0000.00817.13
8.1.180.0030.00618.10
8.1.170.0040.00418.49
8.1.160.0040.00418.69
8.1.150.0040.00418.82
8.1.140.0000.00718.83
8.1.130.0000.00820.12
8.1.120.0080.00017.39
8.1.110.0100.00017.39
8.1.100.0040.00417.43
8.1.90.0040.00417.23
8.1.80.0000.00717.28
8.1.70.0000.00717.29
8.1.60.0000.00917.45
8.1.50.0070.00417.51
8.1.40.0030.00517.37
8.1.30.0040.00417.54
8.1.20.0000.00717.60
8.1.10.0050.00217.45
8.1.00.0030.00517.36
8.0.300.0090.00018.77
8.0.290.0040.00416.63
8.0.280.0070.00018.31
8.0.270.0040.00417.35
8.0.260.0060.00018.33
8.0.250.0030.00716.94
8.0.240.0030.00316.93
8.0.230.0030.00516.81
8.0.220.0110.00016.93
8.0.210.0000.00816.75
8.0.200.0030.00316.80
8.0.190.0040.00416.84
8.0.180.0040.00716.90
8.0.170.0050.00316.79
8.0.160.0040.00416.84
8.0.150.0000.00716.82
8.0.140.0000.00716.73
8.0.130.0030.00313.27
8.0.120.0040.00416.86
8.0.110.0000.00916.84
8.0.100.0020.00516.91
8.0.90.0000.00716.77
8.0.80.0080.01116.91
8.0.70.0040.00416.94
8.0.60.0030.00516.95
8.0.50.0070.00016.77
8.0.30.0110.00816.92
8.0.20.0130.00917.40
8.0.10.0000.00716.79
8.0.00.0120.00716.81
7.4.330.0000.00415.55
7.4.320.0070.00016.51
7.4.300.0030.00316.40
7.4.290.0040.00416.48
7.4.280.0070.00316.34
7.4.270.0030.00316.60
7.4.260.0030.00316.52
7.4.250.0030.00616.56
7.4.240.0000.00716.54
7.4.230.0000.00716.48
7.4.220.0080.00016.44
7.4.210.0080.00816.61
7.4.200.0070.00016.33
7.4.160.0100.00716.46
7.4.140.0100.00717.86
7.4.130.0170.00716.63
7.4.120.0100.00816.47
7.4.110.0140.00416.52
7.4.100.0130.00816.43
7.4.90.0030.01316.34
7.4.80.0120.00619.39
7.4.70.0030.01316.40
7.4.60.0110.00716.55
7.4.50.0040.01116.35
7.4.40.0100.00616.67
7.4.00.0090.00815.06
7.3.330.0050.00013.25
7.3.320.0000.00613.22
7.3.310.0000.00916.32
7.3.300.0000.00716.31
7.3.290.0000.00716.18
7.3.280.0070.00816.19
7.3.260.0110.00816.50
7.3.240.0100.00916.33
7.3.230.0140.00416.28
7.3.210.0060.01016.51
7.3.200.0040.01116.23
7.3.190.0100.00716.43
7.3.180.0160.00316.60
7.3.170.0100.00816.33
7.3.160.0100.00616.61
7.3.120.0030.01614.95
7.3.110.0090.00915.00
7.3.100.0060.00914.75
7.3.90.0030.01014.69
7.3.80.0070.00314.70
7.3.70.0070.00714.70
7.3.60.0090.00314.64
7.3.50.0030.00914.55
7.3.40.0030.00714.55
7.3.30.0000.01114.63
7.3.20.0060.01016.57
7.3.10.0030.01516.57
7.3.00.0020.01016.50
7.2.330.0100.00716.27
7.2.320.0100.01316.54
7.2.310.0100.00616.32
7.2.300.0070.01016.57
7.2.290.0070.01416.52
7.2.250.0030.01314.92
7.2.240.0030.01715.02
7.2.230.0070.01015.01
7.2.220.0000.01614.98
7.2.210.0000.01514.63
7.2.200.0030.00914.60
7.2.190.0060.01114.84
7.2.180.0080.00414.87
7.2.170.0000.01414.63
7.2.130.0030.01016.91
7.2.120.0030.00716.77
7.2.110.0140.00515.70
7.2.100.0110.00416.57
7.2.90.0130.00216.42
7.2.80.0060.00816.51
7.2.70.0040.01216.59
7.2.60.0020.01416.70
7.2.50.0060.00516.50
7.2.40.0020.01416.78
7.2.30.0050.00816.68
7.2.20.0090.00516.66
7.2.10.0080.00916.82
7.2.00.0050.00916.72
7.1.330.0120.00415.66
7.1.320.0070.00715.71
7.1.310.0060.00315.46
7.1.300.0000.01015.65
7.1.290.0030.01015.60
7.1.280.0050.00515.46
7.1.270.0070.00715.55
7.1.260.0030.00615.73
7.1.250.0090.00315.75
7.1.230.0280.00013.88
7.1.220.0030.01015.67
7.1.210.0030.00915.50
7.1.200.0130.00315.83
7.1.190.0030.00815.72
7.1.180.0050.00515.63
7.1.170.0040.00715.68
7.1.160.0080.00315.68
7.1.150.0070.00715.48
7.1.140.0100.00315.66
7.1.130.0060.00615.76
7.1.120.0120.00015.57
7.1.110.0080.00515.75
7.1.100.0030.01215.63
7.1.90.0080.00315.82
7.1.80.0070.00715.52
7.1.70.0060.00915.79
7.1.60.0230.01633.52
7.1.50.0300.01033.55
7.1.40.0200.01633.58
7.1.30.0300.00333.72
7.1.20.0230.01333.59
7.1.10.0050.00815.59
7.1.00.0000.01115.80
5.6.380.0140.00313.81

preferences:
64.02 ms | 401 KiB | 5 Q