3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tests = [ 2, 5, 7, 11, 12 ]; $x = 5; $y = 10; foreach($tests as $a){ $quo = intval($a / $x); if($quo * $x < $a) $quo++; echo $a," => " ,$quo * $y,PHP_EOL; }

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.10.0060.00319.38
8.3.140.0040.00416.54
8.3.130.0080.00016.45
8.3.120.0150.00619.08
8.3.110.0110.00420.94
8.3.100.0030.00716.64
8.3.90.0050.00326.77
8.3.80.0090.00016.63
8.3.70.0030.01218.27
8.3.60.0110.00416.63
8.3.50.0070.01424.57
8.3.40.0160.00618.59
8.3.30.0110.00418.62
8.3.20.0040.00424.18
8.3.10.0060.00324.66
8.3.00.0080.00026.16
8.2.260.0110.00717.14
8.2.250.0120.00616.48
8.2.240.0030.00616.94
8.2.230.0000.00822.58
8.2.220.0040.00424.06
8.2.210.0130.00726.77
8.2.200.0030.00616.38
8.2.190.0040.01116.58
8.2.180.0110.00425.92
8.2.170.0070.01418.96
8.2.160.0050.00822.96
8.2.150.0000.00725.66
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0080.00021.04
8.2.110.0060.00320.35
8.2.100.0090.00317.86
8.2.90.0040.00417.89
8.2.80.0040.00417.97
8.2.70.0040.00417.46
8.2.60.0050.00317.49
8.2.50.0040.00418.05
8.2.40.0040.00419.95
8.2.30.0030.00618.07
8.2.20.0040.00418.04
8.2.10.0040.00419.34
8.2.00.0040.00419.31
8.1.310.0070.01016.68
8.1.300.0110.00716.04
8.1.290.0080.00030.84
8.1.280.0040.01125.92
8.1.270.0030.00620.61
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.05
8.1.230.0070.00420.89
8.1.220.0080.00017.74
8.1.210.0040.00418.86
8.1.200.0080.00017.66
8.1.190.0000.00817.11
8.1.180.0050.00318.10
8.1.170.0030.00618.93
8.1.160.0000.00718.88
8.1.150.0000.00718.89
8.1.140.0040.00420.55
8.1.130.0030.00320.20
8.1.120.0050.00317.29
8.1.110.0040.00417.49
8.1.100.0040.00417.34
8.1.90.0040.00417.29
8.1.80.0080.00417.35
8.1.70.0000.00717.45
8.1.60.0060.00317.59
8.1.50.0060.00317.53
8.1.40.0040.00417.54
8.1.30.0000.00917.65
8.1.20.0000.00717.63
8.1.10.0080.00017.57
8.1.00.0000.00817.46
8.0.300.0070.00020.12
8.0.290.0000.00816.75
8.0.280.0040.00418.46
8.0.270.0030.00318.08
8.0.260.0060.00020.18
8.0.250.0060.00316.91
8.0.240.0070.00016.85
8.0.230.0020.00516.95
8.0.220.0030.00316.91
8.0.210.0000.00816.78
8.0.200.0050.00216.95
8.0.190.0000.00716.80
8.0.180.0050.00216.81
8.0.170.0030.00616.90
8.0.160.0080.00016.82
8.0.150.0000.00816.87
8.0.140.0000.00716.87
8.0.130.0030.00313.34
8.0.120.0000.00716.73
8.0.110.0040.00416.93
8.0.100.0070.00016.73
8.0.90.0000.00716.91
8.0.80.0130.00516.88
8.0.70.0030.00616.79
8.0.60.0000.00716.94
8.0.50.0070.00016.93
8.0.30.0060.01017.12
8.0.20.0080.01117.22
8.0.10.0000.00716.90
8.0.00.0150.00316.73
7.4.330.0020.00215.55
7.4.320.0060.00016.52
7.4.300.0040.00416.51
7.4.290.0000.00816.64
7.4.280.0070.00416.48
7.4.270.0030.00716.50
7.4.260.0000.00513.27
7.4.250.0040.00416.37
7.4.240.0030.00316.51
7.4.230.0000.00716.66
7.4.220.0030.00416.60
7.4.210.0100.00316.47
7.4.200.0070.00016.63
7.4.130.0100.00716.57
7.4.120.0030.01416.43
7.4.110.0040.01516.64
7.4.100.0080.00816.57
7.4.90.0250.00716.52
7.4.80.0210.00416.27
7.4.70.0170.00316.69
7.4.60.0200.00816.18
7.4.50.0160.00316.38
7.4.40.0140.00816.09
7.4.30.0060.01315.93
7.4.20.0140.00616.12
7.4.10.0120.01116.22
7.4.00.0140.00316.63
7.3.330.0070.00016.39
7.3.320.0000.00513.03
7.3.310.0000.00616.36
7.3.300.0030.00316.33
7.3.290.0090.00516.34
7.3.280.0030.01116.31
7.3.260.0160.00716.66
7.3.230.0060.01016.50
7.3.210.0240.00916.42
7.3.200.0100.01616.56
7.3.190.0100.01916.24
7.3.180.0130.01416.29
7.3.170.0140.00916.19
7.3.160.0190.00616.45
7.3.150.0160.00616.29
7.3.140.0140.00616.06
7.3.130.0150.00916.21
7.3.120.0160.00816.36
7.3.110.0080.01416.41
7.3.100.0220.00416.21
7.3.90.0180.00415.96
7.3.80.0130.01016.14
7.3.70.0120.01516.13
7.3.60.0240.00516.14
7.3.50.0150.00916.12
7.3.40.0220.00716.52
7.3.30.0130.01916.39
7.3.20.0140.01216.34
7.3.10.0050.01516.46
7.3.00.0150.01216.45
7.2.330.0540.01616.54
7.2.320.0180.00916.21
7.2.310.0120.01216.33
7.2.300.0090.00916.15
7.2.290.0140.00516.73
7.2.280.0110.01616.56
7.2.270.0120.00916.13
7.2.260.0080.01216.32
7.2.250.0160.00816.64
7.2.240.0150.01116.75
7.2.230.0130.01116.33
7.2.220.0110.01416.57
7.2.210.0140.01116.31
7.2.200.0230.01016.65
7.2.190.0260.00816.41
7.2.180.0280.00816.71
7.2.170.0220.00716.32
7.2.160.0240.00716.75
7.2.150.0080.01216.49
7.2.140.0110.01116.25
7.2.130.0150.01016.39
7.2.120.0140.00916.44
7.2.110.0160.01116.59
7.2.100.0200.01116.35
7.2.90.0190.01216.36
7.2.80.0210.00316.35
7.2.70.0220.00016.19
7.2.60.0120.00916.52
7.2.50.0150.00916.27
7.2.40.0090.01516.25
7.2.30.0050.01616.36
7.2.20.1750.00716.70
7.2.10.0290.00416.57
7.2.00.0280.00416.83

preferences:
52.25 ms | 403 KiB | 5 Q