3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=0); function acceptInt(int $x) {echo $x;} acceptInt(3.14);

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.130.0070.00718.49
8.3.120.0060.00319.04
8.3.110.0030.01318.43
8.3.100.0000.00816.74
8.3.90.0110.00426.77
8.3.80.0030.00616.88
8.3.70.0240.01016.58
8.3.60.0100.01018.45
8.3.50.0120.00817.98
8.3.40.0140.00418.79
8.3.30.0180.00018.60
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.250.0040.00418.42
8.2.240.0070.00717.24
8.2.230.0030.00520.94
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0090.00016.38
8.2.190.0120.00316.75
8.2.180.0060.01625.92
8.2.170.0120.00318.89
8.2.160.0080.00622.96
8.2.150.0020.00525.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0000.01020.46
8.2.100.0110.00017.72
8.2.90.0040.00419.23
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00419.97
8.2.30.0000.00717.82
8.2.20.0040.00418.03
8.2.10.0040.00419.30
8.2.00.0070.00019.04
8.1.300.0040.01116.05
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0050.00520.94
8.1.230.0060.00617.45
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0050.00517.10
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0030.00318.88
8.1.150.0120.00018.68
8.1.140.0070.00020.55
8.1.130.0030.00317.29
8.1.120.0000.00817.30
8.1.110.0070.00017.33
8.1.100.0060.00317.38
8.1.90.0000.00717.24
8.1.80.0040.00417.32
8.1.70.0000.00717.34
8.1.60.0040.00417.51
8.1.50.0030.00517.33
8.1.40.0040.00417.46
8.1.30.0000.00717.64
8.1.20.0000.00817.59
8.1.10.0050.00317.46
8.1.00.0080.00017.41
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.46
8.0.270.0050.00318.06
8.0.260.0000.00616.78
8.0.250.0030.00316.93
8.0.240.0070.00016.89
8.0.230.0000.00716.83
8.0.220.0040.00416.79
8.0.210.0030.00316.85
8.0.200.0080.00016.94
8.0.190.0040.00416.98
8.0.180.0040.00416.79
8.0.170.0030.00616.89
8.0.160.0000.00916.90
8.0.150.0040.00416.80
8.0.140.0040.00416.79
8.0.130.0070.00013.36
8.0.120.0050.00516.80
8.0.110.0000.00816.82
8.0.100.0070.00016.90
8.0.90.0030.00316.78
8.0.80.0060.01116.87
8.0.70.0040.00416.92
8.0.60.0070.00016.75
8.0.50.0060.00316.74
8.0.30.0150.00916.84
8.0.20.0230.01216.86
8.0.10.0190.00616.82
8.0.00.0040.01116.86
7.4.330.0000.00415.55
7.4.320.0000.00716.36
7.4.300.0060.00016.52
7.4.290.0040.00416.39
7.4.280.0040.00416.51
7.4.270.0030.00316.42
7.4.260.0000.00613.18
7.4.250.0040.00416.53
7.4.240.0050.00216.44
7.4.230.0030.00616.53
7.4.220.0040.00416.59
7.4.210.0190.00016.50
7.4.200.0030.00316.43
7.4.160.0240.00716.57
7.4.150.0260.00616.33
7.4.140.0150.01116.32
7.4.130.0220.00416.41
7.4.120.0190.00816.23
7.4.110.0160.01116.18
7.4.100.0240.00716.53
7.4.90.0200.01216.20
7.4.80.0210.00616.25
7.4.70.0170.00916.22
7.4.60.0150.01116.43
7.4.50.0140.01116.24
7.4.40.0180.00716.19
7.4.30.0150.01216.37
7.4.20.0210.00416.35
7.4.10.0220.00416.21
7.4.00.0160.01016.37
7.3.330.0040.00416.44
7.3.320.0000.00513.12
7.3.310.0070.00016.37
7.3.300.0070.00016.26
7.3.290.0040.01116.29
7.3.280.0130.00816.19
7.3.270.0150.01116.12
7.3.260.0210.01216.13
7.3.250.0190.01116.22
7.3.240.0170.01116.13
7.3.230.0300.00716.23
7.3.220.0240.01016.14
7.3.210.0260.00716.12
7.3.200.0160.01116.20
7.3.190.0230.00416.17
7.3.180.0210.00616.15
7.3.170.0230.00316.07
7.3.160.0250.00816.12
7.3.150.0280.00916.18
7.3.140.0290.00516.12
7.3.130.0130.01316.18
7.3.120.0180.01016.14
7.3.110.0210.00716.01
7.3.100.0230.00716.14
7.3.90.0270.00516.42
7.3.80.0220.00316.13
7.3.70.0180.00916.25
7.3.60.0220.00316.35
7.3.50.0150.01516.33
7.3.40.0180.00916.26
7.3.30.0200.00616.34
7.3.20.0210.00716.37
7.3.10.0240.00716.30
7.3.00.0230.00416.29

preferences:
36.78 ms | 403 KiB | 5 Q