3v4l.org

run code in 300+ PHP versions simultaneously
<?php $account_numbers = ["1234567890","12345678901234567890","1234567890123"]; $utility_id = 1; foreach ($account_numbers as $accountNumber) { //$customerNumber = str_pad($utility_id, 3, "0", STR_PAD_RIGHT); $hexnum = hexdec(md5($accountNumber)); $smallnum = $hexnum % 10; echo $smallnum . $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.3.60.0070.00716.75
8.3.50.0100.01318.18
8.3.40.0160.00618.79
8.3.30.0120.00318.96
8.3.20.0040.00423.79
8.3.10.0050.00221.67
8.3.00.0080.00019.50
8.2.180.0140.00718.34
8.2.170.0110.00422.96
8.2.160.0150.00020.47
8.2.150.0120.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00018.16
8.2.120.0070.00026.35
8.2.110.0060.00322.38
8.2.100.0240.00017.46
8.2.90.0080.00017.75
8.2.80.0040.00419.27
8.2.70.0000.00818.16
8.2.60.0000.00818.13
8.2.50.0060.00319.47
8.2.40.0040.00422.49
8.2.30.0040.00419.36
8.2.20.0080.00018.19
8.2.10.0000.00718.12
8.2.00.0050.00217.87
8.1.280.0170.00325.92
8.1.270.0080.00020.50
8.1.260.0060.00326.35
8.1.250.0090.00028.09
8.1.240.0090.00320.44
8.1.230.0040.00719.18
8.1.220.0050.00317.79
8.1.210.0000.00918.77
8.1.200.0100.00417.47
8.1.190.0080.00017.36
8.1.180.0000.00818.10
8.1.170.0000.00718.94
8.1.160.0000.00718.99
8.1.150.0050.00220.40
8.1.140.0040.00419.70
8.1.130.0030.00319.16
8.1.120.0070.00017.54
8.1.110.0050.00317.48
8.1.100.0000.00717.61
8.1.90.0040.00417.57
8.1.80.0000.00717.62
8.1.70.0030.00317.59
8.1.60.0000.00717.56
8.1.50.0000.00817.68
8.1.40.0020.00517.57
8.1.30.0090.00017.78
8.1.20.0040.00417.77
8.1.10.0040.00417.62
8.1.00.0040.00417.56
8.0.300.0040.00420.15
8.0.290.0040.00416.88
8.0.280.0030.00318.56
8.0.270.0030.00617.25
8.0.260.0030.00317.38
8.0.250.0040.00417.13
8.0.240.0070.00017.11
8.0.230.0000.00717.14
8.0.220.0060.00017.07
8.0.210.0070.00017.07
8.0.200.0050.00217.17
8.0.190.0030.00617.15
8.0.180.0070.00017.13
8.0.170.0040.00417.12
8.0.160.0000.00717.08
8.0.150.0040.00417.00
8.0.140.0040.00417.03
8.0.130.0030.00313.50
8.0.120.0000.00817.03
8.0.110.0000.00717.04
8.0.100.0080.00017.04
8.0.90.0020.00517.09
8.0.80.0180.00317.02
8.0.70.0070.00016.96
8.0.60.0040.00417.09
8.0.50.0040.00417.09
8.0.30.0090.00817.25
8.0.20.0060.01217.40
8.0.10.0000.00817.20
8.0.00.0120.00616.98
7.4.330.0000.00415.55
7.4.320.0070.00016.52
7.4.300.0030.00316.61
7.4.290.0030.00316.63
7.4.280.0000.00716.76
7.4.270.0030.00316.62
7.4.260.0080.00316.69
7.4.250.0030.00316.64
7.4.240.0030.00316.63
7.4.230.0080.00016.82
7.4.220.0120.01216.67
7.4.210.0070.00716.48
7.4.200.0000.00716.53
7.4.160.0060.01016.56
7.4.150.0110.00817.40
7.4.140.0080.01017.86
7.4.130.0070.01116.65
7.4.120.0100.00916.62
7.4.110.0050.01616.75
7.4.100.0080.00816.66
7.4.90.0070.01016.60
7.4.80.0100.01019.39
7.4.70.0060.01116.70
7.4.60.0080.00816.46
7.4.50.0100.00716.58
7.4.40.0040.01516.67
7.4.30.0070.01016.66
7.4.00.0070.00915.15
7.3.330.0050.00013.43
7.3.320.0050.00013.16
7.3.310.0060.00016.52
7.3.300.0000.00716.45
7.3.290.0090.00516.49
7.3.280.0070.01016.42
7.3.270.0130.00317.40
7.3.260.0150.00316.53
7.3.250.0130.00816.45
7.3.240.0070.01016.62
7.3.230.0100.00616.71
7.3.210.0100.00716.80
7.3.200.0100.01316.46
7.3.190.0090.00916.33
7.3.180.0150.00416.61
7.3.170.0110.00716.54
7.3.160.0070.01016.41
7.3.120.0050.01514.88
7.3.110.0100.01014.94
7.3.100.0050.01215.19
7.3.90.0050.00714.90
7.3.80.0090.00315.02
7.3.70.0100.00314.83
7.3.60.0050.00915.00
7.3.50.0090.00415.01
7.3.40.0020.01214.97
7.3.30.0050.00314.97
7.3.20.0060.00616.78
7.3.10.0060.00716.73
7.3.00.0120.00516.47
7.2.330.0090.01016.82
7.2.320.0100.00616.78
7.2.310.0060.01716.85
7.2.300.0120.00616.71
7.2.290.0130.01016.57
7.2.250.0070.00915.36
7.2.240.0100.01015.07
7.2.230.0040.00915.11
7.2.220.0050.00815.04
7.2.210.0090.00815.13
7.2.200.0070.00515.15
7.2.190.0060.00615.28
7.2.180.0030.01015.07
7.2.170.0090.00915.03
7.2.60.0070.00717.07
7.2.50.0070.00717.17
7.1.330.0100.00315.81
7.1.320.0010.00715.96
7.1.310.0030.01015.92
7.1.300.0080.00315.96
7.1.290.0060.00715.79
7.1.280.0040.00515.94
7.1.270.0040.01015.73
7.1.260.0060.00715.99
7.1.200.0030.00715.96
7.1.70.0080.00017.05
7.1.60.0100.00317.02
7.1.10.0100.06022.34
7.1.00.0070.06022.46
7.0.200.0110.00717.02
7.0.150.0030.07321.91
7.0.140.0000.06321.93
7.0.130.0100.05721.83
7.0.120.0170.04721.88
7.0.110.0100.05722.03
7.0.100.0100.05021.91
7.0.90.0030.06321.86
7.0.80.0070.06021.95
7.0.70.0130.05022.03
7.0.60.0070.05721.86
7.0.50.0130.05021.88
7.0.40.0100.05321.87
7.0.30.0070.05321.85
7.0.20.0030.05721.82
7.0.10.0100.05021.96
7.0.00.0100.05321.89

preferences:
55.8 ms | 401 KiB | 5 Q