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 "/" var_dump($elements); $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.0140.00718.31
8.3.50.0230.00821.14
8.3.40.0140.00719.01
8.3.30.0150.00019.02
8.3.20.0080.00020.33
8.3.10.0000.00821.95
8.3.00.0080.00022.58
8.2.180.0090.00618.27
8.2.170.0070.00722.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0170.00326.16
8.2.120.0070.00319.68
8.2.110.0030.00622.29
8.2.100.0070.00419.29
8.2.90.0030.00519.05
8.2.80.0050.00319.36
8.2.70.0100.00017.75
8.2.60.0080.00018.05
8.2.50.0000.00918.07
8.2.40.0060.00318.16
8.2.30.0000.00818.02
8.2.20.0040.00417.96
8.2.10.0030.00517.91
8.2.00.0060.00319.68
8.1.280.0150.00625.92
8.1.270.0060.00320.32
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00323.78
8.1.230.0070.00419.09
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.01017.35
8.1.190.0050.00317.63
8.1.180.0080.00020.20
8.1.170.0060.00318.52
8.1.160.0040.00422.24
8.1.150.0050.00318.79
8.1.140.0040.00417.60
8.1.130.0100.00017.88
8.1.120.0070.00017.49
8.1.110.0050.00317.57
8.1.100.0000.00717.55
8.1.90.0000.00717.57
8.1.80.0030.00517.56
8.1.70.0070.00017.58
8.1.60.0060.00317.55
8.1.50.0000.00717.63
8.1.40.0040.00417.65
8.1.30.0030.00617.73
8.1.20.0030.00517.74
8.1.10.0030.00617.76
8.1.00.0040.00417.63
8.0.300.0060.00318.77
8.0.290.0000.00716.93
8.0.280.0030.00318.47
8.0.270.0040.00417.35
8.0.260.0000.00816.98
8.0.250.0070.00017.07
8.0.240.0040.00417.12
8.0.230.0030.00517.13
8.0.220.0040.00417.05
8.0.210.0030.00317.08
8.0.200.0040.00417.00
8.0.190.0030.00516.99
8.0.180.0000.00716.97
8.0.170.0030.00616.98
8.0.160.0040.00417.10
8.0.150.0000.00816.96
8.0.140.0070.00017.06
8.0.130.0060.00013.48
8.0.120.0040.00417.01
8.0.110.0000.00717.07
8.0.100.0050.00316.95
8.0.90.0000.00716.95
8.0.80.0140.00716.99
8.0.70.0060.00317.02
8.0.60.0040.00416.98
8.0.50.0080.00016.95
8.0.30.0100.00817.26
8.0.20.0120.00817.40
8.0.10.0040.00317.16
8.0.00.0120.01016.90
7.4.330.0060.00015.00
7.4.320.0030.00316.68
7.4.300.0040.00416.72
7.4.290.0090.00016.57
7.4.280.0030.00316.58
7.4.270.0070.00016.68
7.4.260.0030.00516.67
7.4.250.0000.00716.61
7.4.240.0040.00416.63
7.4.230.0070.00016.79
7.4.220.0000.01716.79
7.4.210.0060.00816.76
7.4.200.0040.00416.88
7.4.190.0070.00016.74
7.4.160.0080.00816.73
7.4.150.0060.01117.40
7.4.140.0130.00717.86
7.4.130.0050.01216.64
7.4.120.0090.00916.81
7.4.110.0070.01316.73
7.4.100.0070.01116.55
7.4.90.0070.01116.61
7.4.80.0090.00919.39
7.4.70.0110.00816.56
7.4.60.0130.00616.57
7.4.50.0060.00316.61
7.4.40.0000.01622.77
7.4.30.0080.00916.76
7.4.00.0100.00315.13
7.3.330.0000.00613.11
7.3.320.0000.00513.27
7.3.310.0040.00416.30
7.3.300.0040.00416.18
7.3.290.0030.01616.39
7.3.280.0080.01016.38
7.3.270.0130.00417.40
7.3.260.0190.00016.41
7.3.250.0130.00816.63
7.3.240.0090.00916.51
7.3.230.0090.00916.39
7.3.210.0070.01116.68
7.3.200.0060.01619.39
7.3.190.0090.01316.36
7.3.180.0030.01316.61
7.3.170.0160.00016.73
7.3.160.0100.00616.48
7.3.120.0090.00615.18
7.2.330.0110.00816.78
7.2.320.0130.00516.92
7.2.310.0140.00816.84
7.2.300.0100.01016.76
7.2.290.0090.00916.66
7.1.100.0040.01118.27
7.1.70.0000.00817.21
7.1.60.0090.00919.82
7.1.50.0070.01817.25
7.1.00.0000.03722.38
7.0.200.0000.01116.92
7.0.140.0070.07321.97
7.0.60.0030.04019.84
7.0.50.0030.04717.87
7.0.40.0130.08020.00
7.0.30.0330.07320.11
7.0.20.0230.07720.22
7.0.10.0100.08320.14
7.0.00.0130.08020.05
5.6.280.0100.06320.92
5.6.210.0070.07020.60
5.6.200.0170.07318.09
5.6.190.0030.04320.48
5.6.180.0270.04320.32
5.6.170.0230.03720.54
5.6.160.0100.08020.48
5.6.150.0070.07718.08
5.6.140.0030.05718.18
5.6.130.0030.04318.16
5.6.120.0200.05721.12
5.6.110.0000.04720.89
5.6.100.0130.06720.94
5.6.90.0230.07021.00
5.6.80.0070.03720.37
5.5.350.0070.08320.41
5.5.340.0200.06317.93
5.5.330.0000.04720.11
5.5.320.3070.04720.13
5.5.310.0270.05020.20
5.5.300.0000.07017.90
5.5.290.0100.07717.99
5.5.280.0100.08020.90
5.5.270.0070.03720.86
5.5.260.0130.07720.88
5.5.250.0030.07320.59
5.5.240.0000.05320.28
5.4.450.0230.04019.26
5.4.440.0330.07319.07
5.4.430.0300.06019.57
5.4.420.0370.07019.54
5.4.410.0330.06719.29
5.4.400.0270.04018.78
5.4.390.0300.07319.08
5.4.380.0230.05718.89
5.4.370.0270.07319.07
5.4.360.0300.07019.13
5.4.350.0330.04319.16
5.4.340.0300.04319.09
5.4.320.0430.05019.22
5.4.310.0230.06319.16
5.4.300.0300.04019.10
5.4.290.0370.06019.15
5.4.280.0400.06319.08
5.4.270.0400.05719.07
5.4.260.0370.04319.13
5.4.250.0330.05318.80
5.4.240.0230.05018.77
5.4.230.0130.04719.05
5.4.220.0230.03719.21
5.4.210.0200.04019.12
5.4.200.0430.04019.10
5.4.190.0200.03719.24
5.4.180.0230.03718.91
5.4.170.0200.03318.88
5.4.160.0170.04019.11
5.4.150.0170.04718.88
5.4.140.0400.03016.38
5.4.130.0230.02716.48
5.4.120.0230.03716.48
5.4.110.0130.04016.23
5.4.100.0270.02716.51
5.4.90.0230.03716.23
5.4.80.0200.03316.42
5.4.70.0170.03316.26
5.4.60.0170.03316.37
5.4.50.0300.03316.41
5.4.40.0200.03316.37
5.4.30.0130.03716.36
5.4.20.0170.03316.36
5.4.10.0170.03316.04
5.4.00.0100.04315.82
5.3.290.0130.04014.71
5.3.280.0170.03714.44
5.3.270.0170.05714.55
5.3.260.0170.04314.45
5.3.250.0170.04014.59
5.3.240.0200.03314.64
5.3.230.0130.04014.43
5.3.220.0170.03714.52
5.3.210.0130.05014.66
5.3.200.0130.04014.47
5.3.190.0030.04014.47
5.3.180.0000.04014.56
5.3.170.0170.03714.61
5.3.160.0200.03314.66
5.3.150.0200.03314.39
5.3.140.0230.02714.60
5.3.130.0070.04014.48
5.3.120.0030.03714.42
5.3.110.0030.03714.45
5.3.100.1670.03014.03
5.3.90.1730.03714.07
5.3.80.2100.03713.96
5.3.70.1930.03013.92
5.3.60.2030.03013.84
5.3.50.2000.03313.86
5.3.40.1930.04013.89
5.3.30.2230.03314.00
5.3.20.2170.04013.71
5.3.10.2100.02713.53
5.3.00.1200.03013.57
5.2.170.0030.03711.23
5.2.160.0100.02311.01
5.2.150.0000.03011.04
5.2.140.0370.03011.16
5.2.130.1500.03311.17
5.2.120.1600.03010.96
5.2.110.1430.02711.01
5.2.100.1600.02711.15
5.2.90.1570.02710.95
5.2.80.1900.03311.15
5.2.70.1770.04011.00
5.2.60.1700.03710.92
5.2.50.1570.03011.03
5.2.40.1500.02711.04
5.2.30.1200.03310.91
5.2.20.1300.02310.86
5.2.10.1500.03310.76
5.2.00.1470.03010.71
5.1.60.1300.0209.89
5.1.50.1570.0309.97
5.1.40.1430.0309.88
5.1.30.1230.03010.30
5.1.20.1470.03710.40
5.1.10.1430.0309.93
5.1.00.1530.03310.01
5.0.50.0670.0308.63
5.0.40.0830.0238.29
5.0.30.0670.0278.30
5.0.20.0630.0208.16
5.0.10.0670.0208.16
5.0.00.0830.0438.29
4.4.90.0700.0208.16
4.4.80.0600.0208.16
4.4.70.0900.0208.16
4.4.60.0930.0108.16
4.4.50.1030.0138.16
4.4.40.0970.0208.16
4.4.30.1030.0238.16
4.4.20.1000.0178.16
4.4.10.0730.0178.16
4.4.00.0730.0238.16
4.3.110.0030.0208.16
4.3.100.0030.0178.16
4.3.90.0000.0208.16
4.3.80.0000.0238.16
4.3.70.0230.0138.16
4.3.60.0400.0138.16
4.3.50.0730.0208.16
4.3.40.0000.0238.16
4.3.30.0000.0178.16
4.3.20.0000.0178.16
4.3.10.0000.0278.16
4.3.00.0000.0178.16

preferences:
46.85 ms | 401 KiB | 5 Q