3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Attempt to reproduce "element" issue $url = urldecode( "eng%C3%A5%C2%BF%C2/Products" ); $elements = explode( $url ); #$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.0100.01018.43
8.3.50.0090.00821.14
8.3.40.0070.00718.81
8.3.30.0070.00719.13
8.3.20.0040.00420.28
8.3.10.0000.00822.00
8.3.00.0000.00722.46
8.2.180.0100.01016.88
8.2.170.0090.00622.96
8.2.160.0070.00720.47
8.2.150.0030.00724.18
8.2.140.0080.00024.66
8.2.130.0110.00726.16
8.2.120.0060.00317.93
8.2.110.0040.00422.30
8.2.100.0000.01119.26
8.2.90.0040.00419.05
8.2.80.0040.00419.40
8.2.70.0000.00917.75
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0050.00318.03
8.2.30.0040.00418.03
8.2.20.0000.00717.62
8.2.10.0020.00517.77
8.2.00.0000.00717.73
8.1.280.0120.00325.92
8.1.270.0040.00420.36
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0130.00323.75
8.1.230.0080.00319.07
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.51
8.1.180.0040.00420.24
8.1.170.0050.00318.37
8.1.160.0040.00422.21
8.1.150.0040.00418.58
8.1.140.0030.00517.39
8.1.130.0040.00417.70
8.1.120.0000.00717.44
8.1.110.0000.00717.43
8.1.100.0000.00717.38
8.1.90.0000.00817.45
8.1.80.0000.00717.44
8.1.70.0070.00017.25
8.1.60.0060.00317.54
8.1.50.0040.00417.53
8.1.40.0050.00217.52
8.1.30.0000.00817.58
8.1.20.0040.00417.49
8.1.10.0000.00817.59
8.1.00.0080.00017.44
8.0.300.0030.00518.77
8.0.290.0040.00417.05
8.0.280.0040.00418.39
8.0.270.0000.00817.25
8.0.260.0000.00816.75
8.0.250.0000.00716.89
8.0.240.0000.00816.94
8.0.230.0000.00816.99
8.0.220.0030.00316.94
8.0.210.0000.00716.87
8.0.200.0000.00716.90
8.0.190.0070.00016.96
8.0.180.0070.00016.92
8.0.170.0030.00616.83
8.0.160.0030.00516.78
8.0.150.0030.00316.96
8.0.140.0040.00416.89
8.0.130.0000.00613.29
8.0.120.0080.00016.82
8.0.110.0030.00416.82
8.0.100.0000.00716.93
8.0.90.0000.00716.79
8.0.80.0120.00916.80
8.0.70.0000.00716.93
8.0.60.0070.00016.80
8.0.50.0020.00517.01
8.0.30.0030.01716.98
8.0.20.0080.01017.40
8.0.10.0000.00816.89
8.0.00.0080.01416.67
7.4.330.0000.00615.00
7.4.320.0040.00416.75
7.4.300.0000.00716.76
7.4.290.0060.00316.56
7.4.280.0000.00816.74
7.4.270.0000.00716.79
7.4.260.0030.00716.77
7.4.250.0040.00416.62
7.4.240.0030.00516.68
7.4.230.0000.00716.47
7.4.220.0100.01216.81
7.4.210.0080.00716.73
7.4.200.0040.00416.78
7.4.190.0050.00216.91
7.4.160.0030.01316.56
7.4.150.0090.01217.40
7.4.140.0150.00817.86
7.4.130.0050.01216.67
7.4.120.0120.00916.73
7.4.110.0170.00016.66
7.4.100.0070.01116.64
7.4.90.0100.01016.64
7.4.80.0070.01119.39
7.4.70.0150.00916.80
7.4.60.0080.00816.57
7.4.50.0040.00016.69
7.4.40.0060.00922.77
7.4.30.0030.01216.86
7.4.00.0060.00915.22
7.3.330.0070.00013.38
7.3.320.0050.00013.18
7.3.310.0030.00316.48
7.3.300.0030.00316.41
7.3.290.0070.01016.39
7.3.280.0040.01116.39
7.3.270.0000.01617.40
7.3.260.0090.00916.61
7.3.250.0130.00416.65
7.3.240.0070.01616.67
7.3.230.0070.01716.64
7.3.210.0110.01116.66
7.3.200.0060.01219.39
7.3.190.0140.00816.48
7.3.180.0100.01016.59
7.3.170.0030.01316.48
7.3.160.0130.00316.45
7.3.120.0000.01814.61
7.2.330.0030.01416.67
7.2.320.0090.01216.80
7.2.310.0220.00016.55
7.2.300.0080.00916.87
7.2.290.0140.00316.82
7.2.00.0000.01519.40
7.1.100.0100.00318.34
7.1.70.0040.00417.22
7.1.60.0030.00919.82
7.1.50.0060.01617.25
7.1.00.0000.03722.46
7.0.200.0030.00316.79
7.0.140.0070.07022.05
7.0.110.0000.04319.92
7.0.100.0030.03719.99
7.0.90.0200.03719.93
7.0.80.0230.03320.03
7.0.70.0600.03319.84
7.0.60.0400.05320.00
7.0.50.0430.05019.98
7.0.40.0070.03719.66
7.0.30.0100.07319.74
7.0.20.0100.04019.69
7.0.10.0130.03319.65
7.0.00.0030.04019.75
5.6.280.0070.07020.98
5.6.260.0070.03720.65
5.6.250.0000.04720.89
5.6.240.0100.03020.66
5.6.230.0070.03320.70
5.6.220.0070.03020.69
5.6.210.0000.04320.63
5.6.200.0100.06720.61
5.6.190.0070.08720.46
5.6.180.0170.06720.55
5.6.170.0130.04720.70
5.6.160.0070.04720.71
5.6.150.0100.05320.85
5.6.140.0070.05020.61
5.6.130.0000.05020.64
5.6.120.0100.08320.82
5.6.110.0070.08320.54
5.6.100.0070.04020.64
5.6.90.0000.08320.45
5.6.80.0000.06320.00
5.6.70.0030.06320.07
5.6.60.0130.05719.93
5.6.50.0100.05720.04
5.6.40.0000.04019.96
5.6.30.0100.03319.82
5.6.20.0100.08019.91
5.6.10.0000.04020.20
5.6.00.0070.07019.95
5.5.380.0070.03017.66
5.5.370.0000.03717.45
5.5.360.0030.03317.45
5.5.350.0070.03317.47
5.5.340.0100.06717.98
5.5.330.0030.07018.09
5.5.320.0000.04018.10
5.5.310.0100.03717.86
5.5.300.0000.04318.09
5.5.290.0000.04318.02
5.5.280.0030.05318.13
5.5.270.0070.06718.02
5.5.260.0070.07318.09
5.5.250.0030.08017.80
5.5.240.0070.07317.64
5.5.230.0000.06017.52
5.5.220.0030.04017.47
5.5.210.0030.06317.29
5.5.200.0070.06317.18
5.5.190.0070.07317.47
5.5.180.0130.06717.33
5.5.160.0100.08017.21
5.5.150.0130.06717.50
5.5.140.0100.07717.40
5.5.130.0000.04317.37
5.5.120.0000.03717.21
5.5.110.0000.05717.21
5.5.100.0070.04017.36
5.5.90.0170.06717.34
5.5.80.0100.04017.23
5.5.70.0070.06717.39
5.5.60.0030.06317.40
5.5.50.0070.08317.36
5.5.40.0070.07717.40
5.5.30.0030.07017.24
5.5.20.0100.07017.36
5.5.10.0030.06317.25
5.5.00.0030.06717.39
5.4.450.0070.05719.50
5.4.440.0100.05319.37
5.4.430.0170.07019.25
5.4.420.0000.05019.61
5.4.410.0070.06719.29
5.4.400.0030.03319.13
5.4.390.0000.04719.03
5.4.380.0130.03719.00
5.4.370.0030.05719.00
5.4.360.0000.04719.00
5.4.350.0000.05719.16
5.4.340.0000.04718.93
5.4.320.0100.04319.02
5.4.310.0000.07719.18
5.4.300.0100.07019.00
5.4.290.0070.06019.25
5.4.280.0030.03319.07
5.4.270.0070.07018.95
5.4.260.0070.06318.95
5.4.250.0070.07019.02
5.4.240.0000.04019.24
5.4.230.0070.03018.97
5.4.220.0100.08318.95
5.4.210.0030.03319.00
5.4.200.0030.06718.95
5.4.190.0130.06019.02
5.4.180.0000.04318.99
5.4.170.0030.04319.17
5.4.160.0070.05719.14
5.4.150.0030.04318.90
5.4.140.0030.04316.31
5.4.130.0100.03316.30
5.4.120.0030.07316.30
5.4.110.0030.04716.46
5.4.100.0030.07016.29
5.4.90.0070.06316.58
5.4.80.0130.06016.55
5.4.70.0030.07016.42
5.4.60.0070.06316.34
5.4.50.0170.05016.35
5.4.40.0000.04716.39
5.4.30.0100.06016.34
5.4.20.0030.03716.34
5.4.10.0070.07016.49
5.4.00.0100.04315.66
5.3.290.0030.04014.66
5.3.280.0000.03714.42
5.3.270.0070.04314.62
5.3.260.0030.04314.48
5.3.250.0130.06714.50
5.3.240.0030.04314.51
5.3.230.0070.04014.53
5.3.220.0130.05014.35
5.3.210.0130.03014.64
5.3.200.0000.05714.35
5.3.190.0100.07014.56
5.3.180.0030.06714.50
5.3.170.0070.04314.62
5.3.160.0100.07014.51
5.3.150.0130.04314.48
5.3.140.0000.06014.48
5.3.130.0070.04714.38
5.3.120.0070.06714.45
5.3.110.0030.07314.64
5.3.100.0100.06314.05
5.3.90.0070.07313.96
5.3.80.0100.04313.91
5.3.70.0000.05313.92
5.3.60.0100.05713.93
5.3.50.0200.06013.82
5.3.40.0030.03713.96
5.3.30.0070.04013.85
5.3.20.0000.07013.52
5.3.10.0070.06013.71
5.3.00.0000.04013.57
5.2.170.0100.04311.98
5.2.160.0030.03711.98
5.2.150.0100.05311.98
5.2.140.0000.03311.98
5.2.130.0100.05311.98
5.2.120.0030.03711.98
5.2.110.0000.03311.98
5.2.100.0070.05711.98
5.2.90.0100.05711.98
5.2.80.0000.06011.98
5.2.70.0070.03011.98
5.2.60.0070.06311.98
5.2.50.0000.06311.98
5.2.40.0000.04011.98
5.2.30.0030.04011.98
5.2.20.0030.05311.98
5.2.10.0070.04311.98
5.2.00.0030.02711.98
5.1.60.0000.02711.98
5.1.50.0000.04011.98
5.1.40.0030.05011.98
5.1.30.0070.02711.98
5.1.20.0100.02011.98
5.1.10.0000.03011.98
5.1.00.0030.04711.98
5.0.50.0030.02311.98
5.0.40.0000.04311.98
5.0.30.0030.05011.98
5.0.20.0000.02711.98
5.0.10.0030.04311.98
5.0.00.0070.06711.98
4.4.90.0030.02011.98
4.4.80.0030.02311.98
4.4.70.0070.02711.98
4.4.60.0070.02311.98
4.4.50.0000.03711.98
4.4.40.0000.03711.98
4.4.30.0030.03011.98
4.4.20.0000.01711.98
4.4.10.0000.02311.98
4.4.00.0000.02711.98
4.3.110.0000.03311.98
4.3.100.0070.02711.98
4.3.90.0070.02711.98
4.3.80.0070.02311.98
4.3.70.0030.03311.98
4.3.60.0000.03711.98
4.3.50.0070.01311.98
4.3.40.0030.02711.98
4.3.30.0070.02311.98
4.3.20.0070.02711.98
4.3.10.0030.02711.98
4.3.00.0000.02711.98

preferences:
50.08 ms | 401 KiB | 5 Q