3v4l.org

run code in 300+ PHP versions simultaneously
<?php $barcode_scan = '220008100383005193'; echo floor(number_format(substr($barcode_scan, -6), 0, '', '.')*100)/1000;

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.5.00.0120.00919.69
8.4.150.0020.00114.05
8.4.140.0140.00617.73
8.4.130.0090.01117.54
8.4.120.0140.00522.29
8.4.110.0150.00620.57
8.4.100.0030.00617.63
8.4.90.0070.00417.50
8.4.80.0050.00317.74
8.4.70.0110.00817.72
8.4.60.0130.00817.83
8.4.50.0130.00917.77
8.4.40.0180.00319.22
8.4.30.0150.00420.07
8.4.20.0120.00618.95
8.4.10.0060.00319.14
8.3.280.0130.00718.29
8.3.270.0140.00816.54
8.3.260.0110.00816.38
8.3.250.0080.01018.53
8.3.240.0130.00616.69
8.3.230.0110.00716.70
8.3.220.0040.00417.06
8.3.210.0120.00316.79
8.3.200.0100.00916.37
8.3.190.0110.00716.60
8.3.180.0050.00316.57
8.3.170.0180.00016.44
8.3.160.0040.01518.23
8.3.150.0110.00717.22
8.3.140.0050.00516.95
8.3.130.0060.00316.41
8.3.120.0080.00018.65
8.3.110.0070.00016.28
8.3.100.0070.00316.28
8.3.90.0140.00726.77
8.3.80.0040.00418.30
8.3.70.0140.00718.43
8.3.60.0110.00416.75
8.3.50.0070.00524.36
8.3.40.0140.00318.89
8.3.30.0060.00918.74
8.3.20.0030.00620.76
8.3.10.0000.00823.50
8.3.00.0030.00620.67
8.2.290.0050.00520.26
8.2.280.0050.00618.41
8.2.270.0070.01316.44
8.2.260.0040.00418.52
8.2.250.0050.00316.36
8.2.240.0000.00918.76
8.2.230.0040.00420.94
8.2.220.0040.00424.06
8.2.210.0030.00726.77
8.2.200.0030.00616.75
8.2.190.0110.00718.09
8.2.180.0000.01518.41
8.2.170.0090.00622.96
8.2.160.0100.00321.86
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0030.00621.19
8.2.100.0070.00417.77
8.2.90.0030.00517.75
8.2.80.0070.00317.97
8.2.70.0030.00618.04
8.2.60.0080.00018.22
8.2.50.0060.00318.10
8.2.40.0030.00618.16
8.2.30.0030.00519.18
8.2.20.0040.00418.18
8.2.10.0000.00718.84
8.2.00.0000.00719.25
8.1.330.0090.01116.24
8.1.320.0110.00915.86
8.1.310.0070.01118.50
8.1.300.0090.00017.69
8.1.290.0060.00318.88
8.1.280.0110.00725.92
8.1.270.0140.00423.95
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0120.00920.84
8.1.230.0040.00720.39
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0100.00017.23
8.1.190.0030.00517.36
8.1.180.0000.00818.10
8.1.170.0090.00018.63
8.1.160.0030.00520.32
8.1.150.0070.00018.93
8.1.140.0000.00718.85
8.1.130.0030.00320.09
8.1.120.0040.00417.43
8.1.110.0030.00617.46
8.1.100.0000.00917.34
8.1.90.0040.00417.45
8.1.80.0080.00017.47
8.1.70.0030.00517.41
8.1.60.0040.00417.61
8.1.50.0040.00417.46
8.1.40.0000.00817.40
8.1.30.0030.00617.61
8.1.20.0060.00317.70
8.1.10.0040.00417.57
8.1.00.0030.00617.50
8.0.300.0040.00419.55
8.0.290.0000.00816.88
8.0.280.0000.00718.36
8.0.270.0030.00517.32
8.0.260.0060.00020.09
8.0.250.0070.00016.82
8.0.240.0050.00317.06
8.0.230.0060.00017.07
8.0.220.0000.00816.91
8.0.210.0040.00416.95
8.0.200.0000.00616.96
8.0.190.0000.00716.87
8.0.180.0080.00016.80
8.0.170.0000.00916.93
8.0.160.0040.00416.95
8.0.150.0000.00716.80
8.0.140.0030.00616.89
8.0.130.0090.00013.35
8.0.120.0080.00016.71
8.0.110.0040.00416.80
8.0.100.0030.00316.79
8.0.90.0060.00316.74
8.0.80.0060.00916.78
8.0.70.0030.00516.78
8.0.60.0050.00216.88
8.0.50.0000.00716.79
8.0.30.0070.01117.21
8.0.20.0130.00717.11
8.0.10.0050.00217.00
8.0.00.0090.00916.83
7.4.330.0030.00315.55
7.4.320.0000.00616.52
7.4.300.0030.00316.52
7.4.290.0000.00816.50
7.4.280.0070.00116.49
7.4.270.0030.00316.46
7.4.260.0030.00313.14
7.4.250.0040.00416.55
7.4.240.0040.00316.50
7.4.230.0030.00316.41
7.4.220.0050.00216.49
7.4.210.0060.01016.46
7.4.200.0070.00016.48
7.4.130.0110.00616.56
7.4.120.0040.01416.55
7.4.110.0110.00616.54
7.4.100.0110.01116.38
7.4.90.0040.01316.48
7.4.80.0090.00919.39
7.4.70.0120.00416.49
7.4.60.0090.00916.56
7.4.50.0100.00716.38
7.4.40.0090.00616.30
7.4.00.0060.00915.05
7.3.330.0030.00316.34
7.3.320.0030.00313.20
7.3.310.0030.00316.09
7.3.300.0000.00716.11
7.3.290.0080.00616.31
7.3.280.0080.00816.23
7.3.260.0100.00716.53
7.3.240.0060.01216.35
7.3.230.0100.00716.40
7.3.210.0060.01216.29
7.3.200.0070.01016.27
7.3.190.0090.01216.30
7.3.180.0060.01216.52
7.3.170.0140.00316.28
7.3.160.0100.00616.30
7.3.120.0090.00414.45
7.3.110.0030.01014.52
7.3.100.0030.01014.37
7.3.90.0080.00614.67
7.3.80.0080.00414.61
7.3.70.0060.00614.72
7.3.60.0100.00314.52
7.3.50.0040.01014.27
7.3.40.0030.00914.44
7.3.30.0100.00714.70
7.3.20.0100.00714.75
7.3.10.0070.00714.66
7.3.00.0070.00714.66
7.2.330.0060.01216.43
7.2.320.0100.00616.64
7.2.310.0110.00516.55
7.2.300.0100.01316.50
7.2.290.0070.01016.63
7.2.240.0060.00915.09
7.2.230.0170.00315.12
7.2.220.0090.00615.11
7.2.210.0150.00014.82
7.2.200.0120.00414.70
7.2.190.0120.00614.61
7.2.180.0060.00814.81
7.2.170.0070.01114.73
7.2.160.0100.00314.66
7.2.150.0110.00715.04
7.2.140.0060.00915.07
7.2.130.0030.01214.80
7.2.120.0060.00915.09
7.2.110.0110.00614.93
7.2.100.0080.00815.01
7.2.90.0150.00614.89
7.2.80.0090.00614.82
7.2.70.0060.00914.68
7.2.60.0070.00714.88
7.2.50.0170.00414.76
7.2.40.0130.01014.86
7.2.30.0220.00014.96
7.2.20.0060.01214.92
7.2.10.0140.00715.05
7.2.00.0140.00614.97
7.1.330.0150.00013.70
7.1.320.0050.01013.88
7.1.310.0060.00613.77
7.1.300.0030.01013.69
7.1.290.0030.00913.89
7.1.280.0120.00413.79
7.1.270.0070.01013.81
7.1.260.0060.00613.91
7.1.250.0080.00413.82

preferences:
31.74 ms | 403 KiB | 5 Q