3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = gmp_init(PHP_INT_MAX); $value = ($value * 100000) + 1000; echo "value is " . $value . "\n"; ini_set('precision', -1); for ($i=1; $i < 20; $i += 1) { printf("%2d : test = %f %d \n", $i, (PHP_INT_MAX * 100000) + ($i * 500000), $i * 500000); }

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.0090.00616.50
8.3.50.0120.00918.44
8.3.40.0180.00319.08
8.3.30.0000.01519.10
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0090.00626.16
8.2.180.0170.00025.92
8.2.170.0040.01119.20
8.2.160.0120.00322.96
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0090.00019.39
8.2.100.0060.00618.28
8.2.90.0050.00519.61
8.2.80.0030.00618.95
8.2.70.0050.00317.88
8.2.60.0040.00418.28
8.2.50.0090.00018.07
8.2.40.0000.00818.53
8.2.30.0030.00518.40
8.2.20.0000.00720.83
8.2.10.0040.00417.89
8.2.00.0040.00419.50
8.1.280.0180.00325.92
8.1.270.0040.00423.99
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0090.00022.38
8.1.230.0070.00421.16
8.1.220.0080.00017.90
8.1.210.0040.00419.14
8.1.200.0060.00317.36
8.1.190.0000.00817.48
8.1.180.0000.00818.10
8.1.170.0060.00318.89
8.1.160.0070.00019.11
8.1.150.0080.00018.91
8.1.140.0060.00317.71
8.1.130.0030.00817.55
8.1.120.0070.00317.70
8.1.110.0000.00717.54
8.1.100.0070.00017.57
8.1.90.0040.00417.46
8.1.80.0090.00017.68
8.1.70.0070.00017.61
8.1.60.0000.00917.77
8.1.50.0050.00317.55
8.1.40.0050.00217.68
8.1.30.0000.00817.71
8.1.20.0040.00417.89
8.1.10.0050.00317.63
8.1.00.0080.00017.61
8.0.300.0070.00020.29
8.0.290.0000.00717.00
8.0.280.0030.00318.54
8.0.270.0000.00718.27
8.0.260.0000.00817.11
8.0.250.0000.00717.29
8.0.240.0070.00017.15
8.0.230.0000.00817.26
8.0.220.0070.00017.04
8.0.210.0000.00817.14
8.0.200.0050.00517.12
8.0.190.0050.00317.22
8.0.180.0040.00417.22
8.0.170.0030.00617.02
8.0.160.0000.00817.18
8.0.150.0040.00417.13
8.0.140.0000.00816.97
8.0.130.0090.01217.13
8.0.120.0080.01217.16
8.0.110.0140.00617.09
8.0.100.0200.00017.09
8.0.90.0120.00817.09
8.0.80.0170.00317.02
8.0.70.0120.00817.08
8.0.60.0130.00617.04
8.0.50.0210.00016.88
8.0.30.0140.00716.93
8.0.20.0160.00517.07
8.0.10.0200.00017.13
8.0.00.0080.00417.26
7.4.330.0020.00215.55
7.4.320.0080.00016.63
7.4.300.0030.00316.73
7.4.290.0000.00816.57
7.4.280.0040.00416.60
7.4.270.0080.00016.52
7.4.260.0070.00516.64
7.4.250.0140.00616.64
7.4.240.0180.00516.59
7.4.230.0160.00716.70
7.4.220.0170.00016.69
7.4.210.0180.00016.71
7.4.200.0150.00316.68
7.4.190.0150.00316.77
7.4.180.0180.00016.80
7.4.160.0140.00316.71
7.4.150.0150.00316.59
7.4.140.0090.00916.49
7.4.130.0160.00316.57
7.4.120.0190.00016.59
7.4.110.0180.00016.55
7.4.100.0180.00016.69
7.4.90.0170.00016.54
7.4.80.0110.00816.53
7.4.70.0170.00016.64
7.4.60.0120.00616.52
7.4.50.0160.00216.43
7.4.40.0150.00416.54
7.4.30.0150.00316.53
7.4.20.0130.00316.53
7.4.10.0160.00016.41
7.4.00.0120.00516.45
7.3.330.0100.00516.27
7.3.320.0200.00016.34
7.3.310.0180.00316.55
7.3.300.0070.01316.17
7.3.290.0140.00616.55
7.3.280.0200.00016.49
7.3.270.0140.00516.29
7.3.260.0090.00916.30
7.3.250.0190.00016.52
7.3.240.0160.00416.45
7.3.230.0180.00016.33
7.3.220.0100.00316.12
7.3.210.0080.00416.49
7.3.200.0180.00016.36
7.3.190.0130.00616.24
7.3.180.0160.00316.30
7.3.170.0150.00516.35
7.3.160.0150.00316.35
7.3.150.0110.00816.57
7.3.140.0130.00316.15
7.3.130.0110.00016.31
7.3.120.0100.00316.32
7.3.110.0090.00316.36
7.3.100.0110.00416.33
7.3.90.0060.00616.31
7.3.80.0060.00616.20
7.3.70.0060.00616.34
7.3.60.0060.00616.28
7.3.50.0090.00316.38
7.3.40.0050.00716.30
7.3.30.0130.00016.49
7.3.20.0110.00018.38
7.3.10.0100.00217.99
7.3.00.0150.00018.41

preferences:
56.32 ms | 400 KiB | 5 Q