3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function strict(int $number) { echo $number * 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.0110.00718.01
8.3.50.0170.00316.35
8.3.40.0040.01118.71
8.3.30.0040.01118.51
8.3.20.0030.00518.87
8.3.10.0040.00423.62
8.3.00.0040.00423.66
8.2.180.0110.00816.32
8.2.170.0000.01522.96
8.2.160.0100.00318.96
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00220.53
8.2.120.0050.00226.35
8.2.110.0060.00322.05
8.2.100.0110.00017.66
8.2.90.0030.00517.50
8.2.80.0000.00717.97
8.2.70.0060.00317.67
8.2.60.0060.00317.91
8.2.50.0040.00418.10
8.2.40.0040.00419.17
8.2.30.0000.00818.98
8.2.20.0000.00718.00
8.2.10.0040.00419.47
8.2.00.0050.00219.30
8.1.280.0120.00325.92
8.1.270.0080.00020.13
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.80
8.1.230.0110.00019.23
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00917.00
8.1.190.0060.00317.00
8.1.180.0080.00018.10
8.1.170.0040.00418.84
8.1.160.0000.00718.79
8.1.150.0000.00718.77
8.1.140.0000.00719.58
8.1.130.0000.00718.91
8.1.120.0080.00017.29
8.1.110.0000.00717.31
8.1.100.0040.00317.35
8.1.90.0000.00717.32
8.1.80.0040.00417.17
8.1.70.0030.00517.16
8.1.60.0040.00417.52
8.1.50.0030.00617.40
8.1.40.0060.00317.40
8.1.30.0070.00317.52
8.1.20.0000.00817.47
8.1.10.0040.00417.25
8.1.00.0000.00717.23
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.31
8.0.270.0030.00317.23
8.0.260.0060.00317.20
8.0.250.0030.00316.80
8.0.240.0030.00316.70
8.0.230.0000.00716.86
8.0.220.0020.00516.65
8.0.210.0030.00316.73
8.0.200.0080.00016.73
8.0.190.0070.00016.82
8.0.180.0040.00416.69
8.0.170.0040.00416.75
8.0.160.0000.00716.66
8.0.150.0040.00416.67
8.0.140.0030.00316.77
8.0.130.0030.00313.25
8.0.120.0070.00016.74
8.0.110.0030.00616.78
8.0.100.0000.00716.65
8.0.90.0030.00516.63
8.0.80.0100.01016.72
8.0.70.0070.00016.62
8.0.60.0040.00416.76
8.0.50.0040.00416.62
8.0.30.0100.00716.90
8.0.20.0040.01617.40
8.0.10.0040.00416.72
8.0.00.0110.01016.66
7.4.330.0050.00015.55
7.4.320.0040.00416.38
7.4.300.0030.00316.39
7.4.290.0040.00416.27
7.4.280.0000.00716.35
7.4.270.0040.00416.53
7.4.260.0040.00416.44
7.4.250.0000.00916.19
7.4.240.0000.00716.49
7.4.230.0040.00416.41
7.4.220.0000.00716.45
7.4.210.0090.00616.47
7.4.200.0030.00316.11
7.4.160.0090.00716.30
7.4.140.0110.01017.86
7.4.130.0030.01616.38
7.4.120.0100.00816.25
7.4.110.0100.00616.32
7.4.100.0170.00916.38
7.4.90.0170.00716.38
7.4.80.0100.01319.39
7.4.70.0040.01216.31
7.4.60.0060.00916.44
7.4.50.0100.00616.32
7.4.40.0120.00616.50
7.4.00.0110.00414.65
7.3.330.0060.00013.20
7.3.320.0000.00513.01
7.3.310.0030.00316.18
7.3.300.0030.00316.02
7.3.290.0070.00016.21
7.3.280.0120.00316.09
7.3.260.0130.00816.25
7.3.240.0080.01316.33
7.3.230.0090.00916.44
7.3.210.0080.00816.04
7.3.200.0080.01016.26
7.3.190.0120.00916.37
7.3.180.0060.01616.22
7.3.170.0120.00416.26
7.3.160.0040.01416.18
7.2.330.0090.00916.51
7.2.320.0080.00816.39
7.2.310.0090.01516.34
7.2.300.0100.00716.50
7.2.290.0120.01016.26
7.2.110.0170.01016.08
7.2.80.0720.00714.32
7.2.70.0700.00814.72
7.2.60.0650.01014.41
7.2.50.0730.00914.46
7.2.40.0590.00714.20
7.2.30.0720.00914.47
7.2.20.0930.00814.57
7.2.10.0670.00314.48
7.2.00.0650.00514.50
7.1.200.0090.00615.62
7.1.190.0790.01113.56
7.1.180.0860.00913.27
7.1.170.0740.00513.40
7.1.160.0640.00713.18
7.1.150.0580.01013.24
7.1.140.0680.01113.45
7.1.130.0600.00713.52
7.1.120.0760.00913.71
7.1.110.0690.00713.47
7.1.100.0580.01113.68
7.1.90.1000.00813.17
7.1.80.1000.00713.19
7.1.70.1100.01013.24
7.1.60.1100.01031.58
7.1.50.1850.01031.42
7.1.40.2010.01031.78
7.1.30.1720.00831.59
7.1.20.1600.01231.49
7.1.10.1490.00513.43
7.1.00.1110.00613.59

preferences:
91.44 ms | 401 KiB | 5 Q