3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Attempt to reproduce "element" issue $elements = array( "eng%C3%A5%C2%BF%C2", "Products" );// url, exploded by "/" $saList = array( "eng", "fre" ); $URIMatchElement = 1;// URIMatchElement setting $elements = array_slice( $elements, 0, $URIMatchElement ); $name = implode( '_', $elements ); $name = preg_replace( array( '/[^a-zA-Z0-9]+/', '/_+/', '/^_/', '/_$/' ), array( '_', '_', '', '' ), $name ); echo $name . "\n"; echo (in_array( $name, $saList ) ? "is valid sa" : "is not valid sa");// if issue is true, then this should be true

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.0130.00618.43
8.3.50.0080.00821.15
8.3.40.0120.00318.71
8.3.30.0070.00719.04
8.3.20.0040.00420.33
8.3.10.0000.00721.92
8.3.00.0040.00422.42
8.2.180.0120.00418.54
8.2.170.0150.00022.96
8.2.160.0030.01020.47
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0060.01226.16
8.2.120.0040.00818.05
8.2.110.0090.00020.99
8.2.100.0060.00617.84
8.2.90.0050.00517.75
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0040.00417.80
8.2.50.0080.00018.10
8.2.40.0080.00020.59
8.2.30.0040.00418.02
8.2.20.0050.00317.82
8.2.10.0050.00317.90
8.2.00.0000.00717.88
8.1.280.0150.00325.92
8.1.270.0040.00420.59
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0040.00422.57
8.1.230.0030.00821.03
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0050.00517.50
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.69
8.1.160.0000.00722.16
8.1.150.0070.00018.59
8.1.140.0000.00817.38
8.1.130.0030.00317.84
8.1.120.0000.00717.56
8.1.110.0040.00417.55
8.1.100.0040.00417.46
8.1.90.0050.00217.41
8.1.80.0040.00417.58
8.1.70.0030.00317.50
8.1.60.0060.00317.62
8.1.50.0030.00517.48
8.1.40.0080.00017.61
8.1.30.0060.00317.58
8.1.20.0000.00917.74
8.1.10.0040.00417.65
8.1.00.0000.00717.48
8.0.300.0000.00719.98
8.0.290.0000.00716.75
8.0.280.0030.00518.47
8.0.270.0000.00717.32
8.0.260.0070.00016.91
8.0.250.0030.00317.09
8.0.240.0000.00817.01
8.0.230.0070.00016.95
8.0.220.0000.00717.02
8.0.210.0000.00716.93
8.0.200.0060.00016.98
8.0.190.0000.00917.09
8.0.180.0040.00417.12
8.0.170.0080.00016.96
8.0.160.0020.00517.04
8.0.150.0040.00416.94
8.0.140.0040.00416.99
8.0.130.0000.00513.39
8.0.120.0040.00417.03
8.0.110.0040.00417.07
8.0.100.0000.00717.10
8.0.90.0020.00517.08
8.0.80.0090.00917.07
8.0.70.0030.00517.05
8.0.60.0000.00717.09
8.0.50.0000.00716.85
8.0.30.0110.00917.33
8.0.20.0140.00817.40
8.0.10.0050.00316.95
8.0.00.0120.01216.86
7.4.330.0030.00315.00
7.4.320.0030.00316.61
7.4.300.0030.00316.66
7.4.290.0040.00416.63
7.4.280.0040.00416.76
7.4.270.0070.00016.66
7.4.260.0000.00716.74
7.4.250.0040.00416.63
7.4.240.0030.00316.62
7.4.230.0030.00316.57
7.4.220.0100.00716.61
7.4.210.0100.00916.67
7.4.200.0070.00016.73
7.4.190.0030.00516.83
7.4.160.0070.00716.78
7.4.150.0170.00017.40
7.4.140.0160.00817.86
7.4.130.0080.01216.56
7.4.120.0080.00816.64
7.4.110.0150.00616.59
7.4.100.0100.00716.67
7.4.90.0120.00616.75
7.4.80.0030.01319.39
7.4.70.0100.01316.50
7.4.60.0070.01016.70
7.4.50.0000.00816.62
7.4.40.0090.00622.77
7.4.30.0140.00716.70
7.4.00.0070.01015.12
7.3.330.0000.00513.06
7.3.320.0050.00013.04
7.3.310.0000.00716.21
7.3.300.0020.00516.32
7.3.290.0070.00716.38
7.3.280.0110.00416.31
7.3.270.0110.00617.40
7.3.260.0060.01216.33
7.3.250.0080.01016.56
7.3.240.0030.01416.39
7.3.230.0130.00316.68
7.3.210.0180.00316.44
7.3.200.0120.01119.39
7.3.190.0110.01216.51
7.3.180.0100.00716.36
7.3.170.0110.00516.57
7.3.160.0130.01016.56
7.3.120.0060.00915.23
7.3.10.0000.01316.82
7.3.00.0080.00816.50
7.2.330.0070.01116.66
7.2.320.0030.01316.74
7.2.310.0110.01316.86
7.2.300.0060.01016.71
7.2.290.0030.01216.78
7.2.130.0100.00717.05
7.2.120.0030.01316.79
7.2.110.0050.00517.20
7.2.100.0030.01517.04
7.2.90.0040.01117.03
7.2.80.0030.01017.24
7.2.70.0100.00017.19
7.2.60.0110.00417.09
7.2.50.0060.00917.18
7.2.40.0050.00517.15
7.2.30.0060.00917.20
7.2.20.0080.00417.13
7.2.10.0040.01117.16
7.2.00.0000.01518.38
7.1.250.0060.00315.88
7.1.100.0000.01418.41
7.1.70.0040.01117.11
7.1.60.0080.00319.82
7.1.50.0040.01816.84
7.1.00.0030.03322.43
7.0.200.0040.00416.82
7.0.140.0000.07022.09
7.0.60.0030.04020.06
7.0.50.0130.07317.89
7.0.40.0070.09020.00
7.0.30.0330.05720.22
7.0.20.0430.07020.39
7.0.10.0300.04720.14
7.0.00.0030.07020.35
5.6.280.0030.07321.02
5.6.210.0100.07020.73
5.6.200.0100.06718.24
5.6.190.0070.06320.55
5.6.180.3400.04020.63
5.6.170.0370.07320.34
5.6.160.0100.06320.44
5.6.150.0000.04318.14
5.6.140.0030.04318.20
5.6.130.0070.07318.21
5.6.120.0030.05720.96
5.6.110.0070.07021.14
5.6.100.0070.08321.00
5.6.90.0100.06320.93
5.6.80.0070.06720.43
5.6.70.0100.08020.36
5.5.350.0200.04020.42
5.5.340.0000.04717.91
5.5.330.0100.08020.14
5.5.320.0230.05020.17
5.5.310.0370.07720.18
5.5.300.0000.04318.00
5.5.290.0170.04018.00
5.5.280.0200.07020.93
5.5.270.0070.07320.86
5.5.260.0070.05720.79
5.5.250.0100.07020.69
5.5.240.0130.06020.14
5.4.450.0670.05719.44
5.4.440.0700.06719.46
5.4.430.0870.06019.56
5.4.420.0670.06319.23
5.4.410.0730.05319.45
5.4.400.0470.05718.49
5.4.390.0330.05018.56
5.4.380.0270.05718.72
5.4.370.0230.05018.66
5.4.360.0170.04718.50
5.4.350.0050.04211.98
5.4.340.0080.03711.97
5.4.320.0060.03612.46
5.4.310.0070.04012.45
5.4.300.0040.04612.46
5.4.290.0050.03912.45
5.4.280.0070.03312.35
5.4.270.0040.03812.35
5.4.260.0030.04012.35
5.4.250.0070.05318.86
5.4.240.0070.05018.91
5.4.230.0200.06318.84
5.4.220.0130.05018.95
5.4.210.0070.05318.79
5.4.200.0100.04718.67
5.4.190.0070.05318.64
5.4.180.0070.05018.91
5.4.170.0070.05018.68
5.4.160.0100.05318.76
5.4.150.0070.05718.85
5.4.140.0030.05316.51
5.4.130.0070.04716.53
5.4.120.0100.06016.54
5.4.110.0070.05016.46
5.4.100.0070.05016.23
5.4.90.0070.04716.23
5.4.80.0130.05316.18
5.4.70.0130.04016.40
5.4.60.0070.04716.26
5.4.50.0100.04316.26
5.4.40.0170.04016.23
5.4.30.0170.03716.25
5.4.20.0030.05016.34
5.4.10.0130.04016.34
5.4.00.0070.04715.70
5.3.290.0080.04012.80
5.3.280.0070.05714.46
5.3.270.0030.05714.75
5.3.260.0100.06314.61
5.3.250.0070.05314.51
5.3.240.0100.04714.47
5.3.230.0070.05314.45
5.3.220.0070.05014.61
5.3.210.0070.05314.34
5.3.200.0070.05014.66
5.3.190.0070.05014.57
5.3.180.0070.04714.58
5.3.170.0030.05314.40
5.3.160.0100.04714.41
5.3.150.0070.05014.58
5.3.140.0170.04014.57
5.3.130.0100.05014.43
5.3.120.0000.07314.56
5.3.110.0030.05314.46
5.3.100.0170.06014.04
5.3.90.0030.05314.03
5.3.80.0200.03714.01
5.3.70.0100.05013.95
5.3.60.0130.04314.02
5.3.50.0070.04713.84
5.3.40.0100.05013.95
5.3.30.0200.03313.91
5.3.20.0070.04713.39
5.3.10.0070.05013.36
5.3.00.0000.05313.34
5.2.170.0070.04011.15
5.2.160.0100.03711.06
5.2.150.0100.04311.15
5.2.140.0030.04311.03
5.2.130.0000.04311.00
5.2.120.0000.04311.00
5.2.110.0070.03711.25
5.2.100.0070.03711.09
5.2.90.0000.04310.85
5.2.80.0030.04011.18
5.2.70.0100.04310.93
5.2.60.0000.05710.95
5.2.50.0070.04011.13
5.2.40.0130.03011.16
5.2.30.0030.06010.82
5.2.20.0100.03310.72
5.2.10.0100.03310.86
5.2.00.0130.03010.93
5.1.60.0030.0339.84
5.1.50.0130.0379.91
5.1.40.0030.03310.12
5.1.30.0100.03010.09
5.1.20.0030.03710.42
5.1.10.0130.0409.99
5.1.00.0070.03710.30
5.0.50.0000.0308.59
5.0.40.0030.0278.37
5.0.30.0030.0438.27
5.0.20.0000.0308.28
5.0.10.0070.0238.23
5.0.00.0000.0438.07
4.4.90.0030.0275.76
4.4.80.0000.0235.78
4.4.70.0070.0175.90
4.4.60.0000.0235.91
4.4.50.0030.0205.76
4.4.40.0070.0305.75
4.4.30.0030.0305.78
4.4.20.0070.0175.80
4.4.10.0000.0235.81
4.4.00.0030.0305.80
4.3.110.0070.0175.68
4.3.100.0070.0175.67
4.3.90.0030.0205.69
4.3.80.0030.0305.69
4.3.70.0070.0175.66
4.3.60.0030.0175.67
4.3.50.0000.0235.65
4.3.40.0030.0305.62
4.3.30.0030.0205.58
4.3.20.0030.0235.58
4.3.10.0000.0305.58
4.3.00.0170.0276.29

preferences:
74.09 ms | 401 KiB | 5 Q