3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_uniqids = array( 'numeric' => "\x00"."5425368523947", 'non-numeric' => "\x00"."54253685ed947", 'numeric-append' => "\x00"."5425368523947x" ); foreach ($test_uniqids as $test => $uniqid) { print $test."\t"; print is_numeric($uniqid) ? 'is_numeric' : 'no_numeric'; print "\t"; var_dump($uniqid); $vals = array(); $vals[$uniqid] = TRUE; foreach ($vals as $key => $val) { var_dump($key); if ($key === $uniqid) { print "matches\n"; } else { print "does not match\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.3.60.0170.00316.38
8.3.50.0050.01122.10
8.3.40.0180.00018.89
8.3.30.0110.00419.17
8.3.20.0000.00720.20
8.3.10.0040.00420.45
8.3.00.0030.00519.51
8.2.180.0130.00318.41
8.2.170.0070.00722.96
8.2.160.0070.00720.47
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0000.00726.16
8.2.120.0090.00020.82
8.2.110.0030.00720.90
8.2.100.0080.00318.22
8.2.90.0000.00819.36
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0040.00419.50
8.2.20.0030.00517.75
8.2.10.0070.00018.04
8.2.00.0030.00517.80
8.1.280.0100.00625.92
8.1.270.0080.00022.10
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00421.37
8.1.230.0110.00017.71
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0060.00317.23
8.1.180.0070.00018.10
8.1.170.0000.00818.50
8.1.160.0030.00621.98
8.1.150.0040.00418.84
8.1.140.0050.00317.46
8.1.130.0030.00317.83
8.1.120.0000.00817.48
8.1.110.0030.00517.49
8.1.100.0050.00217.38
8.1.90.0060.00317.54
8.1.80.0000.00717.45
8.1.70.0000.00717.41
8.1.60.0030.00617.48
8.1.50.0030.00517.58
8.1.40.0040.00417.58
8.1.30.0000.00817.68
8.1.20.0040.00417.63
8.1.10.0040.00417.47
8.1.00.0070.00017.54
8.0.300.0020.00518.77
8.0.290.0040.00416.60
8.0.280.0030.00318.53
8.0.270.0070.00017.30
8.0.260.0000.00617.21
8.0.250.0030.00316.95
8.0.240.0030.00316.93
8.0.230.0070.00016.89
8.0.220.0000.00916.88
8.0.210.0000.00716.86
8.0.200.0030.00316.96
8.0.190.0040.00416.84
8.0.180.0000.00816.92
8.0.170.0070.00016.91
8.0.160.0030.00316.79
8.0.150.0000.00816.73
8.0.140.0030.00316.85
8.0.130.0080.00013.39
8.0.120.0030.00516.87
8.0.110.0000.00716.91
8.0.100.0050.00216.88
8.0.90.0040.00416.94
8.0.80.0090.00616.88
8.0.70.0070.00017.01
8.0.60.0040.00416.86
8.0.50.0000.00716.79
8.0.30.0110.00817.10
8.0.20.0110.00817.40
8.0.10.0080.00016.99
8.0.00.0130.00916.60
7.4.330.0000.00515.14
7.4.320.0060.00016.59
7.4.300.0030.00316.59
7.4.290.0040.00416.47
7.4.280.0080.00316.63
7.4.270.0000.00716.66
7.4.260.0030.00316.59
7.4.250.0000.00816.41
7.4.240.0020.00616.58
7.4.230.0030.00316.63
7.4.220.0090.00916.63
7.4.210.0030.01016.63
7.4.200.0070.00016.41
7.4.160.0030.01716.45
7.4.150.0170.00317.40
7.4.140.0140.01017.86
7.4.130.0120.00816.52
7.4.120.0100.00816.48
7.4.110.0080.00816.38
7.4.100.0110.00616.39
7.4.90.0120.00616.54
7.4.80.0080.00819.39
7.4.70.0050.01116.64
7.4.60.0120.00616.54
7.4.50.0080.00016.42
7.4.40.0090.00916.69
7.4.30.0000.01616.30
7.4.00.0070.00814.80
7.3.330.0050.00013.07
7.3.320.0070.00013.14
7.3.310.0060.00016.40
7.3.300.0000.00716.38
7.3.290.0030.01016.30
7.3.280.0100.00616.32
7.3.270.0030.01617.40
7.3.260.0130.00316.57
7.3.250.0100.00816.53
7.3.240.0130.00916.38
7.3.230.0040.01216.39
7.3.210.0140.00416.58
7.3.200.0070.01419.39
7.3.190.0040.01316.46
7.3.180.0130.00316.23
7.3.170.0170.00016.49
7.3.160.0150.00716.47
7.3.120.0000.01814.83
7.3.110.0140.00315.09
7.3.100.0070.00714.52
7.3.90.0000.01214.75
7.3.80.0090.00614.81
7.3.70.0000.01414.68
7.3.60.0040.00814.62
7.3.50.0070.00714.89
7.3.40.0060.01314.89
7.3.30.0000.01114.71
7.3.20.0060.00816.78
7.3.10.0060.00916.88
7.3.00.0040.00816.84
7.2.330.0170.00016.36
7.2.320.0060.01216.69
7.2.310.0140.00716.73
7.2.300.0120.00616.66
7.2.290.0040.01316.78
7.2.250.0060.01214.90
7.2.240.0180.00315.14
7.2.230.0140.00015.00
7.2.220.0000.01615.25
7.2.210.0000.01515.20
7.2.200.0040.00815.08
7.2.190.0030.01015.10
7.2.180.0130.00314.99
7.2.170.0080.00615.13
7.2.60.0030.01316.69
7.2.00.0030.01219.16
7.1.330.0040.01115.82
7.1.320.0080.00815.68
7.1.310.0030.00615.76
7.1.300.0070.01015.61
7.1.290.0090.00915.78
7.1.280.0120.00315.50
7.1.270.0070.00715.73
7.1.260.0030.00815.76
7.1.200.0100.00315.76
7.1.100.0000.00918.39
7.1.70.0030.00717.35
7.1.60.0030.02119.61
7.1.50.0030.02016.68
7.1.00.0070.07022.37
7.0.200.0060.00616.94
7.0.140.0030.07722.09
7.0.60.0070.08019.91
7.0.50.0030.07717.81
7.0.40.0100.03720.04
7.0.30.0600.07020.09
7.0.20.0300.06320.03
7.0.10.0100.05320.12
7.0.00.0100.07020.05
5.6.280.0100.06720.82
5.6.210.0030.09320.72
5.6.200.0030.05318.19
5.6.190.0030.09020.58
5.6.180.0230.04320.33
5.6.170.0370.06320.53
5.6.160.0030.09020.50
5.6.150.0170.04718.18
5.6.140.0100.07018.17
5.6.130.0070.05018.13
5.6.120.0030.04020.99
5.6.110.0070.04721.09
5.6.100.0170.07320.99
5.6.90.0100.05020.96
5.6.80.0130.03020.37
5.6.70.4600.03720.48
5.5.350.0100.08720.38
5.5.340.0130.06717.92
5.5.330.0170.07020.15
5.5.320.0370.04020.29
5.5.310.0170.04020.26
5.5.300.0100.07717.96
5.5.290.0000.04317.95
5.5.280.0130.08020.85
5.5.270.0000.04320.77
5.5.260.0070.08020.75
5.5.250.0170.05720.69
5.5.240.4270.03020.19
5.4.450.0200.05019.54
5.4.440.0400.04019.47
5.4.430.0200.04319.40
5.4.420.0130.04319.21
5.4.410.0500.03719.41
5.4.400.0470.02718.78
5.4.390.0700.03718.89
5.4.380.0100.07018.61
5.4.370.0330.05718.68
5.4.360.0230.05318.67
5.4.350.0270.05718.65
5.4.340.0370.04718.46
5.4.320.0050.03612.45
5.4.310.0030.04012.45
5.4.300.0080.03512.46
5.4.290.0040.04012.45
5.4.280.0060.05212.35
5.4.270.0050.04112.35
5.4.260.0070.03612.35
5.4.250.0090.03412.35
5.4.240.0080.03312.35
5.4.230.0070.03812.34
5.4.220.0030.03812.34
5.4.210.0040.03712.34
5.4.200.0040.04012.34
5.4.190.0060.04112.34
5.4.180.0070.04112.34
5.4.170.0080.04312.35
5.4.160.0070.03912.34
5.4.150.0080.04512.34
5.4.140.0080.03612.03
5.4.130.0070.03412.02
5.4.120.0020.04011.97
5.4.110.0070.04811.96
5.4.100.0050.03711.97
5.4.90.0070.03711.97
5.4.80.0040.04011.97
5.4.70.0080.04611.96
5.4.60.0090.03611.97
5.4.50.0060.03611.96
5.4.40.0080.03411.95
5.4.30.0070.03611.95
5.4.20.0070.03511.95
5.4.10.0040.03911.95
5.4.00.0030.03911.44
5.3.290.0100.04512.80
5.3.280.0090.05112.70
5.3.270.0080.04812.73
5.3.260.0080.03812.72
5.3.250.0080.03712.72
5.3.240.0090.03512.72
5.3.230.0090.03512.71
5.3.220.0120.03412.68
5.3.210.0110.04012.68
5.3.200.0080.03612.68
5.3.190.0110.03312.68
5.3.180.0040.03912.67
5.3.170.0040.03812.67
5.3.160.0050.03912.68
5.3.150.0040.04012.67
5.3.140.0080.03412.66
5.3.130.0070.03812.66
5.3.120.0070.03812.66
5.3.110.0060.04012.66
5.3.100.0050.04212.12
5.3.90.0080.03812.08
5.3.80.0080.04112.07
5.3.70.0060.03812.08
5.3.60.0060.04612.06
5.3.50.0100.03812.00
5.3.40.0080.04012.00
5.3.30.0070.04011.94
5.3.20.0050.03611.72
5.3.10.0070.03311.69
5.3.00.0070.03511.68
5.2.170.0050.0309.18
5.2.160.0020.0389.18
5.2.150.0060.0319.18
5.2.140.0060.0329.18
5.2.130.0070.0339.14
5.2.120.0070.0359.14
5.2.110.0040.0309.15
5.2.100.0040.0289.14
5.2.90.0040.0299.14
5.2.80.0050.0299.14
5.2.70.0030.0329.13
5.2.60.0030.0319.09
5.2.50.0040.0319.06
5.2.40.0030.0319.04
5.2.30.0050.0309.01
5.2.20.0100.0299.00
5.2.10.0070.0258.92
5.2.00.0040.0298.78
5.1.60.0030.0258.06
5.1.50.0040.0248.06
5.1.40.0050.0238.04
5.1.30.0050.0258.39
5.1.20.0030.0288.41
5.1.10.0030.0298.14
5.1.00.0060.0248.14
5.0.50.0040.0206.63
5.0.40.0050.0196.48
5.0.30.0050.0366.30
5.0.20.0060.0276.27
5.0.10.0070.0206.26
5.0.00.0040.0336.25
4.4.90.0020.0164.78
4.4.80.0010.0194.75
4.4.70.0040.0194.75
4.4.60.0030.0194.75
4.4.50.0040.0174.77
4.4.40.0040.0254.71
4.4.30.0010.0184.76
4.4.20.0050.0144.84
4.4.10.0030.0164.85
4.4.00.0040.0244.76
4.3.110.0040.0154.67
4.3.100.0030.0154.66
4.3.90.0030.0164.63
4.3.80.0030.0254.58
4.3.70.0040.0144.63
4.3.60.0030.0154.63
4.3.50.0070.0124.63
4.3.40.0030.0284.54
4.3.30.0050.0193.30
4.3.20.0030.0213.27
4.3.10.0030.0203.24
4.3.00.0070.01713.95

preferences:
44.96 ms | 400 KiB | 5 Q