3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows22['Status2']="PR001:Approved,SA001:Rejected"; $che = "SA001"; if($rows22['Status2'] == "") { $status = ""; } else { $ks = 0; $ched = explode(',',$che); while($ks < sizeof($ched)) { if (strpos($rows22['Status2'],$ched[$ks]) !== false) { $sts = explode(',',$rows225['Status2']); $s = 0; while($s < sizeof($sts)) { if (strpos($sts[$s],$ched[$ks]) !== false) { $sts[$s] = ""; } if($s == 0) $status = $sts[$s]; else { $status = $status.",".$sts[$s]; } $s++; } } else { $status = $rows225['Status2']; } $ks++; } }

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.00618.68
8.3.50.0110.00721.14
8.3.40.0170.00318.79
8.3.30.0070.00720.39
8.3.20.0000.00720.29
8.3.10.0050.00221.91
8.3.00.0040.00422.58
8.2.180.0130.00616.50
8.2.170.0060.00922.96
8.2.160.0110.00420.43
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0160.00326.16
8.2.120.0050.00319.54
8.2.110.0100.00021.11
8.2.100.0080.00417.78
8.2.90.0000.00919.05
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0030.00618.03
8.2.50.0070.00318.10
8.2.40.0040.00420.65
8.2.30.0040.00418.05
8.2.20.0000.00817.78
8.2.10.0040.00417.69
8.2.00.0040.00419.61
8.1.280.0070.00725.92
8.1.270.0000.00824.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0040.00717.95
8.1.220.0090.00017.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0050.00317.23
8.1.180.0050.00518.10
8.1.170.0000.00918.67
8.1.160.0000.00722.08
8.1.150.0060.00318.67
8.1.140.0000.00917.33
8.1.130.0030.00617.82
8.1.120.0030.00517.53
8.1.110.0080.00017.47
8.1.100.0080.00017.45
8.1.90.0070.00017.53
8.1.80.0070.00017.39
8.1.70.0070.00017.43
8.1.60.0080.00017.51
8.1.50.0040.00417.54
8.1.40.0000.00917.40
8.1.30.0080.00017.53
8.1.20.0080.00017.60
8.1.10.0040.00417.54
8.1.00.0070.00017.49
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0030.00317.20
8.0.260.0060.00016.88
8.0.250.0030.00317.00
8.0.240.0000.00717.02
8.0.230.0040.00417.00
8.0.220.0000.00716.87
8.0.210.0040.00416.97
8.0.200.0030.00317.01
8.0.190.0000.00716.95
8.0.180.0000.00716.89
8.0.170.0040.00416.93
8.0.160.0070.00017.01
8.0.150.0050.00316.81
8.0.140.0070.00016.85
8.0.130.0050.00013.41
8.0.120.0030.00616.85
8.0.110.0020.00516.91
8.0.100.0000.00716.73
8.0.90.0040.00417.03
8.0.80.0040.01216.94
8.0.70.0040.00416.98
8.0.60.0070.00016.93
8.0.50.0050.00317.01
8.0.30.0130.00917.27
8.0.20.0140.00417.40
8.0.10.0050.00317.01
8.0.00.0100.00716.73
7.4.330.0050.00015.00
7.4.320.0030.00316.52
7.4.300.0060.00016.63
7.4.290.0070.00016.49
7.4.280.0000.00816.59
7.4.270.0030.00316.59
7.4.260.0030.00316.58
7.4.250.0050.00316.57
7.4.240.0030.00416.48
7.4.230.0060.00016.52
7.4.220.0000.01516.61
7.4.210.0070.00916.59
7.4.200.0050.00216.50
7.4.190.0040.00416.57
7.4.160.0100.00816.64
7.4.150.0070.01117.40
7.4.140.0120.00717.86
7.4.130.0100.00716.56
7.4.120.0080.00916.50
7.4.110.0070.01116.51
7.4.100.0100.00716.48
7.4.90.0120.01416.67
7.4.80.0090.00919.39
7.4.70.0080.00816.46
7.4.60.0070.01016.57
7.4.50.0020.00216.13
7.4.40.0040.01122.77
7.4.30.0030.01316.44
7.4.00.0030.01015.11
7.3.330.0050.00013.24
7.3.320.0020.00213.24
7.3.310.0000.00816.48
7.3.300.0030.00316.40
7.3.290.0030.01016.37
7.3.280.0120.00716.41
7.3.270.0090.00817.40
7.3.260.0100.01016.51
7.3.250.0110.01116.59
7.3.240.0080.01116.34
7.3.230.0030.01416.73
7.3.210.0060.01016.40
7.3.200.0080.00819.39
7.3.190.0080.01516.46
7.3.180.0100.00716.67
7.3.170.0130.01016.37
7.3.160.0080.00816.54
7.3.120.0060.00914.90
7.2.330.0100.00716.72
7.2.320.0140.01116.52
7.2.310.0030.01416.36
7.2.300.0070.01316.71
7.2.290.0100.00716.48
7.2.00.0060.00619.26
7.1.100.0000.01018.21
7.1.70.0030.00616.92
7.1.60.0000.01619.21
7.1.50.0120.01216.97
7.1.00.0030.07022.41
7.0.200.0170.00714.75
7.0.140.0070.07022.01
7.0.60.0070.08320.01
7.0.50.0170.07017.80
7.0.40.0070.06720.04
7.0.30.0370.07320.14
7.0.20.0330.04020.34
7.0.10.0270.08020.00
7.0.00.0100.03320.32
5.6.280.0100.06720.82
5.6.210.0170.05720.48
5.6.200.0100.07018.22
5.6.190.0100.08320.57
5.6.180.0270.05020.48
5.6.170.0230.05320.49
5.6.160.0030.04720.33
5.6.150.0030.04018.07
5.6.140.0030.07718.19
5.6.130.0030.06718.09
5.6.120.0170.07720.86
5.6.110.0070.06721.09
5.6.100.0070.08020.98
5.6.90.0000.04721.00
5.6.80.0170.06720.35
5.6.70.0330.06320.51
5.5.350.0130.06320.47
5.5.340.0130.07317.95
5.5.330.0030.05720.25
5.5.320.0470.05020.29
5.5.310.0230.08020.13
5.5.300.0130.07017.90
5.5.290.0100.07717.98
5.5.280.0200.06720.79
5.5.270.0130.06320.89
5.5.260.0070.06020.64
5.5.250.0030.09320.61
5.5.240.0000.08320.19
5.4.450.1630.03719.41
5.4.440.1630.03719.14
5.4.430.1700.03719.54
5.4.420.1870.03719.21
5.4.410.2030.04319.27
5.4.400.1970.03718.78
5.4.390.1870.05019.08
5.4.380.1770.04718.93
5.4.370.1570.03718.88
5.4.360.1770.03719.13
5.4.350.1600.03319.25
5.4.340.1570.03719.13
5.4.320.1800.04719.06
5.4.310.1900.04319.13
5.4.300.1630.04019.13
5.4.290.1830.04319.08
5.4.280.1830.04318.93
5.4.270.1970.03019.08
5.4.260.1800.04719.16
5.4.250.1930.03319.07
5.4.240.1570.03718.95
5.4.230.1770.04318.80
5.4.220.1870.04018.96
5.4.210.1830.04319.12
5.4.200.1770.04719.15
5.4.190.1870.04018.80
5.4.180.1570.03718.94
5.4.170.1570.03719.12
5.4.160.1830.04019.22
5.4.150.1830.03719.20
5.4.140.1570.03316.28
5.4.130.1730.03716.32
5.4.120.1830.04016.28
5.4.110.1700.03716.41
5.4.100.1970.04016.48
5.4.90.2170.03316.45
5.4.80.2070.04016.13
5.4.70.1870.03316.37
5.4.60.1630.03716.44
5.4.50.1670.03716.40
5.4.40.1700.03716.36
5.4.30.1700.03316.32
5.4.20.1830.03716.36
5.4.10.1830.04316.47
5.4.00.1700.04015.71
5.3.290.0070.07314.71
5.3.280.0070.03314.55
5.3.270.0800.06714.46
5.3.260.1530.04314.66
5.3.250.2000.03314.44
5.3.240.1870.04714.51
5.3.230.1870.04314.55
5.3.220.1670.03014.53
5.3.210.1500.04014.44
5.3.200.1670.04014.44
5.3.190.1500.04014.52
5.3.180.1600.04714.43
5.3.170.1570.03014.47
5.3.160.1530.03314.53
5.3.150.2070.02314.50
5.3.140.1700.04314.40
5.3.130.1570.04314.40
5.3.120.1570.04014.60
5.3.110.1600.04014.49
5.3.100.1530.03313.94
5.3.90.1470.04014.11
5.3.80.1800.03713.98
5.3.70.1630.04013.80
5.3.60.1470.04013.98
5.3.50.1670.04713.80
5.3.40.1770.04013.79
5.3.30.1470.04013.73
5.3.20.1730.04013.79
5.3.10.1770.04013.75
5.3.00.1900.03713.59
5.2.170.1430.03311.05
5.2.160.1470.03710.99
5.2.150.1370.03310.99
5.2.140.1430.04011.15
5.2.130.1230.02311.26
5.2.120.1670.03310.95
5.2.110.1300.02710.94
5.2.100.1430.04011.16
5.2.90.1430.02311.19
5.2.80.1470.03310.96
5.2.70.1200.03010.95
5.2.60.1470.03710.91
5.2.50.1200.02710.90
5.2.40.1100.04010.85
5.2.30.1170.03311.13
5.2.20.0970.02710.81
5.2.10.1070.03310.76
5.2.00.1130.04010.77
5.1.60.1170.03010.01
5.1.50.1070.03710.16
5.1.40.1170.0179.90
5.1.30.1170.04010.41
5.1.20.1000.03310.36
5.1.10.1130.0379.97
5.1.00.1000.0339.97
5.0.50.0530.0138.44
5.0.40.0600.0408.30
5.0.30.0500.0278.16
5.0.20.0500.0208.43
5.0.10.0500.0208.26
5.0.00.0670.0508.10
4.4.90.0630.0277.39
4.4.80.0500.0177.39
4.4.70.0600.0277.39
4.4.60.0570.0307.39
4.4.50.0630.0207.39
4.4.40.0570.0277.39
4.4.30.0630.0277.39
4.4.20.0800.0237.39
4.4.10.0730.0237.39
4.4.00.0600.0277.39
4.3.110.0670.0177.39
4.3.100.0470.0207.39
4.3.90.0400.0237.39
4.3.80.0500.0237.39
4.3.70.0600.0177.39
4.3.60.0500.0177.39
4.3.50.0500.0177.39
4.3.40.0500.0277.39
4.3.30.0230.0177.39
4.3.20.0230.0177.39
4.3.10.0300.0177.39
4.3.00.0270.0177.39

preferences:
39.58 ms | 401 KiB | 5 Q