3v4l.org

run code in 300+ PHP versions simultaneously
<?php function floorDiff(string $input): int { if ($input === '(') { return 1; } } assert(floorDiff('(') === 1);

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.00716.50
8.3.50.0070.01122.03
8.3.40.0110.00718.78
8.3.30.0080.00818.72
8.3.20.0140.00320.19
8.3.10.0090.00623.62
8.3.00.0070.00719.75
8.2.180.0040.01118.04
8.2.170.0040.01118.77
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0000.00919.20
8.2.120.0120.00326.35
8.2.110.0100.00022.20
8.2.100.0000.01217.55
8.2.90.0030.00519.00
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0030.00522.20
8.2.30.0040.00420.49
8.2.20.0040.00417.59
8.2.10.0040.00417.83
8.2.00.0030.00617.98
8.1.280.0100.01025.92
8.1.270.0070.01420.25
8.1.260.0000.00728.09
8.1.250.0030.01428.09
8.1.240.0060.00323.96
8.1.230.0070.00419.17
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0080.00016.97
8.1.180.0040.00418.10
8.1.170.0060.00318.51
8.1.160.0040.00420.51
8.1.150.0000.00718.71
8.1.140.0040.00419.44
8.1.130.0070.00017.47
8.1.120.0040.00417.26
8.1.110.0000.00717.32
8.1.100.0040.00417.21
8.1.90.0040.00417.26
8.1.80.0040.00417.31
8.1.70.0070.00017.29
8.1.60.0050.00317.56
8.1.50.0080.00017.36
8.1.40.0030.00517.34
8.1.30.0040.00417.59
8.1.20.0000.00817.55
8.1.10.0020.00517.46
8.1.00.0050.00317.43
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.25
8.0.270.0050.00317.03
8.0.260.0040.00417.02
8.0.250.0030.00316.85
8.0.240.0000.00616.80
8.0.230.0040.00416.79
8.0.220.0000.00716.82
8.0.210.0050.00316.82
8.0.200.0000.00716.90
8.0.190.0070.00316.76
8.0.180.0040.00416.77
8.0.170.0000.00716.90
8.0.160.0000.00716.84
8.0.150.0000.00716.73
8.0.140.0000.00816.65
8.0.130.0000.00513.31
8.0.120.0000.00816.80
8.0.110.0070.00016.72
8.0.100.0040.00416.84
8.0.90.0030.00516.69
8.0.80.0090.00616.86
8.0.70.0000.00716.71
8.0.60.0000.00816.72
8.0.50.0000.00716.82
8.0.30.0100.01217.06
8.0.20.0110.00817.40
8.0.10.0000.00716.89
8.0.00.0100.00816.54
7.4.330.0000.00516.81
7.4.320.0000.00716.43
7.4.300.0030.00316.43
7.4.290.0070.00016.42
7.4.280.0070.00016.52
7.4.270.0040.00416.33
7.4.260.0030.00316.37
7.4.250.0040.00416.44
7.4.240.0050.00216.49
7.4.230.0030.00316.48
7.4.220.0120.00316.36
7.4.210.0080.00516.39
7.4.200.0070.00016.46
7.4.160.0000.01516.30
7.4.150.0120.00817.40
7.4.140.0090.01017.86
7.4.130.0100.00816.50
7.4.120.0110.00716.50
7.4.110.0100.00716.55
7.4.100.0060.01716.37
7.4.90.0100.00716.31
7.4.80.0110.01419.39
7.4.70.0170.00316.57
7.4.60.0100.00616.52
7.4.50.0030.01016.41
7.4.40.0070.01016.48
7.4.30.0090.01016.35
7.4.00.0030.01414.84
7.3.330.0050.00013.22
7.3.320.0060.00013.43
7.3.310.0030.00316.45
7.3.300.0000.00716.38
7.3.290.0100.00516.40
7.3.280.0110.00816.45
7.3.270.0130.00617.40
7.3.260.0110.00616.51
7.3.250.0110.00916.42
7.3.240.0120.00516.35
7.3.230.0130.00716.59
7.3.210.0090.00616.62
7.3.200.0070.01316.44
7.3.190.0100.00616.50
7.3.180.0080.00816.61
7.3.170.0080.00816.32
7.3.160.0060.01016.63
7.2.330.0060.01116.36
7.2.320.0100.01316.28
7.2.310.0210.00416.55
7.2.300.0060.01316.68
7.2.290.0070.01016.25
7.2.60.0000.01416.63
7.2.00.0060.00619.36
7.1.200.0060.01115.73
7.1.100.0030.00917.56
7.1.70.0070.00716.92
7.1.60.0120.00919.52
7.1.50.0100.00717.02
7.1.00.0100.07322.28
7.0.200.0000.01016.68
7.0.60.0130.07719.97
7.0.50.0030.04017.91
7.0.40.0070.04020.15
7.0.30.0400.07720.29
7.0.20.0370.06720.21
7.0.10.0130.08020.15
7.0.00.0030.09320.12
5.6.280.0030.07321.07
5.6.210.0000.05720.62
5.6.200.0030.05718.24
5.6.190.0070.04020.64
5.6.180.0370.07720.57
5.6.170.0430.07320.47
5.6.160.0030.06320.55
5.6.150.0070.03718.27
5.6.140.0070.08318.18
5.6.130.0070.08318.19
5.6.120.0100.04021.13
5.6.110.0070.08721.11
5.6.100.0030.04021.13
5.6.90.0170.06720.95
5.6.80.0070.06020.53
5.5.350.0030.05020.35
5.5.340.0130.05018.07
5.5.330.0000.05320.47
5.5.320.0400.04020.38
5.5.310.0300.04020.37
5.5.300.0100.08017.99
5.5.290.0100.07317.98
5.5.280.0200.07020.87
5.5.270.0030.04720.97
5.5.260.0030.07320.97
5.5.250.0100.05020.58
5.5.240.0100.04020.28

preferences:
32.98 ms | 401 KiB | 5 Q