3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Chap.2.#"; $range = array(); for ($i = 1; $i <= 4; $i++) { $range[$i] = $i; $n = 1 . $i; $range[$n] = $n; $n = 11 . $i; $range[$n] = $n; } sort($range); foreach ($range as $digit) { echo str_replace("#",$digit),"\n"; }

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.20.0150.00618.05
8.4.10.0000.01117.79
8.3.150.0140.00420.78
8.3.140.0100.00018.48
8.3.130.0060.00316.62
8.3.120.0150.00420.49
8.3.110.0110.00720.94
8.3.100.0070.01418.56
8.3.90.0060.00326.77
8.3.80.0040.00417.97
8.3.70.0120.00316.77
8.3.60.0070.01418.52
8.3.50.0070.00722.76
8.3.40.0150.00018.88
8.3.30.0150.00019.21
8.3.20.0050.00320.34
8.3.10.0060.00320.65
8.3.00.0000.00817.50
8.2.270.0070.01117.18
8.2.260.0040.01420.20
8.2.250.0040.00416.56
8.2.240.0060.00317.34
8.2.230.0040.00422.58
8.2.220.0040.00424.06
8.2.210.0070.00726.77
8.2.200.0090.00016.88
8.2.190.0110.00818.68
8.2.180.0110.01116.88
8.2.170.0040.01122.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00320.79
8.2.110.0180.00419.30
8.2.100.0120.00017.84
8.2.90.0050.00319.31
8.2.80.0040.00417.97
8.2.70.0050.00317.75
8.2.60.0000.00718.16
8.2.50.0040.00418.10
8.2.40.0040.00420.61
8.2.30.0000.00917.98
8.2.20.0050.00317.80
8.2.10.0070.00017.97
8.2.00.0000.00717.75
8.1.310.0070.00716.44
8.1.300.0030.00718.19
8.1.290.0040.00430.84
8.1.280.0090.00625.92
8.1.270.0060.00320.65
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00619.18
8.1.230.0040.00717.89
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0090.00017.34
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.50
8.1.160.0000.00822.12
8.1.150.0040.00418.99
8.1.140.0050.00217.45
8.1.130.0000.00717.82
8.1.120.0070.00017.37
8.1.110.0000.00817.35
8.1.100.0070.00017.47
8.1.90.0000.00717.38
8.1.80.0000.00917.41
8.1.70.0000.00717.32
8.1.60.0050.00617.50
8.1.50.0040.00417.41
8.1.40.0030.00517.39
8.1.30.0040.00417.67
8.1.20.0080.00017.60
8.1.10.0000.00717.55
8.1.00.0000.01217.47
8.0.300.0030.00518.77
8.0.290.0080.00016.75
8.0.280.0000.00718.34
8.0.270.0030.00317.30
8.0.260.0000.00617.26
8.0.250.0070.00016.99
8.0.240.0000.00617.08
8.0.230.0030.00416.90
8.0.220.0040.00416.94
8.0.210.0000.00716.95
8.0.200.0030.00317.07
8.0.190.0040.00416.95
8.0.180.0070.00016.86
8.0.170.0000.00717.01
8.0.160.0070.00016.79
8.0.150.0040.00416.96
8.0.140.0030.00316.84
8.0.130.0000.00513.42
8.0.120.0080.00016.91
8.0.110.0000.00816.80
8.0.100.0050.00316.95
8.0.90.0030.00316.86
8.0.80.0090.00616.91
8.0.70.0000.00716.82
8.0.60.0040.00416.93
8.0.50.0080.00016.98
8.0.30.0130.00617.06
8.0.20.0060.01417.40
8.0.10.0000.00816.95
8.0.00.0080.00916.81
7.4.330.0000.00515.15
7.4.320.0030.00316.50
7.4.300.0000.00616.44
7.4.290.0000.00616.42
7.4.280.0050.00316.56
7.4.270.0000.00616.55
7.4.260.0000.00816.57
7.4.250.0000.00716.46
7.4.240.0030.00416.46
7.4.230.0070.00016.62
7.4.220.0140.00316.54
7.4.210.0000.01516.59
7.4.200.0040.00416.42
7.4.160.0070.01016.41
7.4.150.0110.01517.40
7.4.140.0150.00617.86
7.4.130.0060.01016.49
7.4.120.0110.00716.52
7.4.110.0050.01116.42
7.4.100.0100.01316.60
7.4.90.0120.00616.36
7.4.80.0110.00916.45
7.4.70.0030.01316.46
7.4.60.0030.01316.43
7.4.50.0040.00416.70
7.4.40.0110.01416.63
7.4.30.0100.00716.62
7.4.00.0100.00714.64
7.3.330.0080.00013.22
7.3.320.0020.00213.23
7.3.310.0070.00016.31
7.3.300.0030.00316.41
7.3.290.0070.01016.38
7.3.280.0090.00816.41
7.3.270.0040.01517.40
7.3.260.0160.00316.49
7.3.250.0080.01116.57
7.3.240.0170.00316.49
7.3.230.0120.00616.39
7.3.210.0090.00916.35
7.3.200.0030.01619.39
7.3.190.0060.01616.51
7.3.180.0130.00716.44
7.3.170.0060.00916.61
7.3.160.0130.00316.57
7.3.120.0090.00614.71
7.3.110.0080.00414.91
7.3.100.0120.00314.79
7.3.90.0000.01414.88
7.3.80.0070.00715.00
7.3.70.0000.01715.00
7.3.60.0110.00415.07
7.3.50.0130.00314.79
7.3.40.0030.00714.96
7.3.30.0100.00314.90
7.3.20.0090.00316.59
7.3.10.0070.00716.86
7.3.00.0080.00516.68
7.2.330.0110.00616.62
7.2.320.0140.00716.76
7.2.310.0110.01116.72
7.2.300.0070.01016.68
7.2.290.0070.01016.69
7.2.240.0060.00614.92
7.2.230.0000.00914.93
7.2.220.0040.00815.09
7.2.210.0000.01415.25
7.2.200.0030.01215.04
7.2.190.0040.00714.88
7.2.180.0070.00714.75
7.2.170.0070.00714.83
7.2.160.0030.00915.07
7.2.150.0060.00617.02
7.2.140.0090.00416.75
7.2.130.0040.01216.97
7.2.120.0060.00816.96
7.2.110.0050.00916.93
7.2.100.0070.00516.92
7.2.90.0070.00816.75
7.2.80.0030.01016.83
7.2.70.0070.00716.83
7.2.60.0050.00916.99
7.2.50.0090.00317.04
7.2.40.0000.01216.91
7.2.30.0050.01017.07
7.2.20.0040.00816.98
7.2.10.0070.00516.89
7.2.00.0060.00816.79
7.1.330.0030.01315.95
7.1.320.0100.00715.54
7.1.310.0070.01015.67
7.1.300.0090.00615.75
7.1.290.0030.01215.90
7.1.280.0000.01415.87
7.1.270.0000.01615.55
7.1.260.0060.00615.86
7.1.250.0080.00515.79
7.1.240.0070.00315.89
7.1.230.0060.00615.89
7.1.220.0060.00615.89
7.1.210.0030.00715.91
7.1.200.0030.00715.75
7.1.190.0050.00515.55
7.1.180.0060.00915.76
7.1.170.0030.00615.93
7.1.160.0040.01115.80
7.1.150.0000.01215.70
7.1.140.0000.00915.99
7.1.130.0000.01215.96
7.1.120.0000.00815.80
7.1.110.0060.00315.93
7.1.100.0040.00415.96
7.1.90.0030.00715.74
7.1.80.0040.01515.82
7.1.70.0020.00816.47
7.1.60.0060.01117.54
7.1.50.0060.01316.47
7.1.40.0120.00315.86
7.1.30.0000.01015.87
7.1.20.0090.00315.67
7.1.10.0070.00715.74
7.1.00.0100.03618.96
7.0.330.0030.00715.35
7.0.320.0050.00515.56
7.0.310.0000.01215.47
7.0.300.0000.01415.18
7.0.290.0000.00915.45
7.0.280.0040.00815.50
7.0.270.0040.00415.51
7.0.260.0000.00815.09
7.0.250.0030.00615.61
7.0.240.0000.00915.62
7.0.230.0100.00715.52
7.0.220.0080.00415.32
7.0.210.0110.00015.47
7.0.200.0030.00516.20
7.0.190.0030.00715.62
7.0.180.0110.00015.34
7.0.170.0060.00315.50
7.0.160.0070.00715.40
7.0.150.0000.00915.30
7.0.140.0020.04218.69
7.0.130.0060.00315.42
7.0.120.0040.00715.36
7.0.110.0080.03217.53
7.0.100.0070.04017.73
7.0.90.0060.04317.63
7.0.80.0070.04217.73
7.0.70.0050.04317.56
7.0.60.0070.04217.48
7.0.50.0050.04317.79
7.0.40.0090.04316.48
7.0.30.0060.03216.71
7.0.20.0050.04216.48
7.0.10.0050.04016.68
7.0.00.0080.04016.61
5.6.380.0060.00614.59
5.6.370.0080.00414.62
5.6.360.0030.00714.40
5.6.350.0030.00814.43
5.6.340.0070.00714.44
5.6.330.0030.01014.20
5.6.320.0060.00614.70
5.6.310.0100.00414.16
5.6.300.0060.00314.41
5.6.290.0140.00014.42
5.6.280.0040.04117.77
5.6.270.0000.00914.54
5.6.260.0060.04517.48
5.6.250.0040.04617.55
5.6.240.0100.04217.58
5.6.230.0050.04417.50
5.6.220.0110.02317.54
5.6.210.0100.02717.37
5.6.200.0060.03317.54
5.6.190.0090.04317.38
5.6.180.0070.04517.45
5.6.170.0070.02717.41
5.6.160.0050.04517.52
5.6.150.0100.04317.47
5.6.140.0140.02017.50
5.6.130.0070.04217.59
5.6.120.0030.04017.54
5.6.110.0080.04117.56
5.6.100.0030.04717.55
5.6.90.0050.04217.33
5.6.80.0050.04517.13
5.6.70.0050.02917.13
5.6.60.0050.04217.14
5.6.50.0030.04417.08
5.6.40.0030.04317.12
5.6.30.0030.04816.95
5.6.20.0130.03617.05
5.6.10.0080.03817.15
5.6.00.0100.03217.16
5.5.380.0030.03314.23
5.5.370.0130.03014.43
5.5.360.0060.03314.48
5.5.350.0050.04414.53
5.5.340.0050.04614.66
5.5.330.0090.04014.58
5.5.320.0020.04514.62
5.5.310.0070.04214.51
5.5.300.0050.04214.47
5.5.290.0050.04514.52
5.5.280.0120.03814.53
5.5.270.0000.03314.64
5.5.260.0050.03014.63
5.5.250.0080.03814.47
5.5.240.0050.04014.20
5.5.230.0050.02514.08
5.5.220.0060.04014.35
5.5.210.0070.04214.17
5.5.200.0100.03514.14
5.5.190.0020.04614.21
5.5.180.0100.03714.13
5.5.170.0000.00811.14
5.5.160.0030.04514.28
5.5.150.0060.03014.22
5.5.140.0110.03214.07
5.5.130.0050.04214.43
5.5.120.0070.02914.26
5.5.110.0060.03914.26
5.5.100.0020.04414.38
5.5.90.0030.04014.16
5.5.80.0100.03814.20
5.5.70.0030.04414.31
5.5.60.0030.03914.02
5.5.50.0030.04214.28
5.5.40.0080.02314.08
5.5.30.0020.02814.19
5.5.20.0070.03714.08
5.5.10.0070.03714.17
5.5.00.0050.03814.19
5.4.450.0030.03115.15
5.4.440.0050.02815.12
5.4.430.0000.04715.14
5.4.420.0090.04015.12
5.4.410.0060.02615.13
5.4.400.0070.04015.07
5.4.390.0050.04314.93
5.4.380.0060.03915.23
5.4.370.0100.03315.25
5.4.360.0070.03815.04
5.4.350.0070.04014.92
5.4.340.0030.03015.02
5.4.330.0060.00311.14
5.4.320.0080.03614.96
5.4.310.0100.03515.13
5.4.300.0030.04515.13
5.4.290.0080.03815.06
5.4.280.0030.03915.08
5.4.270.0100.03815.15
5.4.260.0100.03715.13
5.4.250.0070.03915.11
5.4.240.0060.03415.04
5.4.230.0080.03814.94
5.4.220.0030.04515.12
5.4.210.0050.03914.95
5.4.200.0100.03514.95
5.4.190.0090.03815.27
5.4.180.0100.03515.15
5.4.170.0080.03814.96
5.4.160.0030.02714.93
5.4.150.0050.04215.02
5.4.140.0070.02213.82
5.4.130.0020.04513.68
5.4.120.0030.03713.75
5.4.110.0050.03913.66
5.4.100.0070.02313.73
5.4.90.0030.02613.82
5.4.80.0080.01613.62
5.4.70.0070.03813.67
5.4.60.0050.04013.74
5.4.50.0050.03813.63
5.4.40.0080.03813.59
5.4.30.0030.04013.70
5.4.20.0020.04013.58
5.4.10.0050.02213.68
5.4.00.0030.04313.37
5.3.290.0060.03612.73
5.3.280.0060.03612.72
5.3.270.0030.04112.80
5.3.260.0030.03912.70
5.3.250.0050.04012.71
5.3.240.0050.03712.71
5.3.230.0070.04012.72
5.3.220.0060.03612.63
5.3.210.0080.03712.77
5.3.200.0050.04012.64
5.3.190.0060.02112.74
5.3.180.0050.02012.68
5.3.170.0050.03712.76
5.3.160.0060.03112.64
5.3.150.0090.03812.64
5.3.140.0020.04612.73
5.3.130.0070.03912.62
5.3.120.0050.03212.72
5.3.110.0020.02712.65
5.3.100.0080.03312.48
5.3.90.0030.02512.46
5.3.80.0030.02012.37
5.3.70.0080.03412.35
5.3.60.0050.02512.38
5.3.50.0050.04012.43
5.3.40.0120.02312.35
5.3.30.0030.04112.33
5.3.20.0050.03812.32
5.3.10.0020.02812.21
5.3.00.0040.03912.26
5.2.170.0050.03010.99
5.2.160.0030.03310.99
5.2.150.0050.03211.03
5.2.140.0020.03410.99
5.2.130.0070.02810.95
5.2.120.0020.03510.97
5.2.110.0030.03410.97
5.2.100.0020.03311.04
5.2.90.0030.03311.04
5.2.80.0080.03110.96
5.2.70.0020.03510.95
5.2.60.0070.03210.92
5.2.50.0030.03510.93
5.2.40.0030.03410.96
5.2.30.0020.03410.97
5.2.20.0030.03310.96
5.2.10.0100.02510.95
5.2.00.0070.03210.81
5.1.60.0060.02010.47
5.1.50.0040.02910.43
5.1.40.0070.02610.47
5.1.30.0050.02110.68
5.1.20.0030.03110.62
5.1.10.0030.03010.45
5.1.00.0050.02110.47
5.0.50.0020.01810.43
5.0.40.0020.02210.43
5.0.30.0030.03410.43
5.0.20.0030.02410.43
5.0.10.0030.02310.43
5.0.00.0020.03210.43
4.4.90.0070.01610.43
4.4.80.0000.02010.43
4.4.70.0000.02310.43
4.4.60.0000.02310.43
4.4.50.0030.01310.43
4.4.40.0000.02910.43
4.4.30.0030.01810.43
4.4.20.0030.01910.43
4.4.10.0000.01910.43
4.4.00.0030.02210.43
4.3.110.0070.00810.43
4.3.100.0020.01910.43
4.3.90.0000.01810.43
4.3.80.0010.02810.43
4.3.70.0000.02210.43
4.3.60.0030.01910.43
4.3.50.0040.01510.43
4.3.40.0000.03010.43
4.3.30.0000.01710.43
4.3.20.0020.01910.43
4.3.10.0000.02010.43
4.3.00.0020.01810.43

preferences:
32.08 ms | 403 KiB | 5 Q