3v4l.org

run code in 300+ PHP versions simultaneously
<?php $alternative = 'offer_type:buy'; $key = 'category:apartment__location_region:shan-south__offer_type:buy'; $result['key'] = 'category:apartment__offer_type:buy_my'; $keyExactMatch = !!array_intersect( array($key, $alternative), array($result['key'], substr($result['key'], null, -3)) ); var_dump($keyExactMatch);

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.40.0040.01118.83
8.3.30.0060.00819.17
8.3.20.0090.00020.39
8.3.10.0040.00423.53
8.3.00.0050.00320.64
8.2.170.0130.00322.96
8.2.160.0070.01021.94
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00422.20
8.2.110.0060.00322.11
8.2.100.0080.00417.91
8.2.90.0090.00019.20
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0050.00517.91
8.2.50.0070.00418.07
8.2.40.0050.00219.26
8.2.30.0040.00418.13
8.2.20.0080.00017.69
8.2.10.0000.00817.92
8.2.00.0030.00717.88
8.1.270.0030.00523.91
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0110.00318.93
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00717.47
8.1.190.0060.00317.43
8.1.180.0000.00818.10
8.1.170.0000.00818.71
8.1.160.0000.00821.94
8.1.150.0040.00418.63
8.1.140.0000.00817.41
8.1.130.0070.00317.82
8.1.120.0000.00717.49
8.1.110.0000.00717.49
8.1.100.0070.00017.36
8.1.90.0030.00317.44
8.1.80.0070.00017.48
8.1.70.0000.00817.42
8.1.60.0050.00317.58
8.1.50.0050.00317.50
8.1.40.0040.00417.48
8.1.30.0030.00617.60
8.1.20.0080.00017.56
8.1.10.0000.00717.55
8.1.00.0000.00817.36
8.0.300.0040.00418.77
8.0.290.0000.00817.16
8.0.280.0070.00018.45
8.0.270.0040.00417.25
8.0.260.0030.00516.73
8.0.250.0000.00716.95
8.0.240.0030.00316.96
8.0.230.0020.00516.97
8.0.220.0000.00716.91
8.0.210.0040.00416.90
8.0.200.0030.00316.85
8.0.190.0000.00717.00
8.0.180.0030.00416.82
8.0.170.0030.00616.89
8.0.160.0080.00016.92
8.0.150.0000.00716.79
8.0.140.0000.00716.87
8.0.130.0030.00313.32
8.0.120.0000.00816.74
8.0.110.0000.00716.84
8.0.100.0100.00016.93
8.0.90.0040.00416.96
8.0.80.0030.01216.84
8.0.70.0000.00717.00
8.0.60.0000.00716.77
8.0.50.0040.00416.71
8.0.30.0100.01217.02
8.0.20.0070.01217.40
8.0.10.0030.00516.84
8.0.00.0030.01416.74
7.4.330.0000.00515.09
7.4.320.0030.00316.52
7.4.300.0030.00316.44
7.4.290.0030.00316.61
7.4.280.0070.00016.60
7.4.270.0050.00316.50
7.4.260.0000.00716.51
7.4.250.0070.00016.46
7.4.240.0000.00716.59
7.4.230.0000.00716.51
7.4.220.0080.00916.45
7.4.210.0100.00716.60
7.4.200.0000.00716.40
7.4.190.0040.00416.47
7.4.160.0100.00716.40
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0050.01316.66
7.4.120.0110.00616.47
7.4.110.0100.00716.54
7.4.100.0150.00616.58
7.4.90.0100.00716.48
7.4.80.0100.00716.50
7.4.70.0090.00916.48
7.4.60.0150.00616.51
7.4.50.0080.00016.40
7.4.40.0110.00422.77
7.4.30.0040.01416.61
7.4.00.0000.01715.18
7.3.330.0030.00313.20
7.3.320.0030.00313.22
7.3.310.0000.00716.41
7.3.300.0050.00216.28
7.3.290.0030.01016.31
7.3.280.0090.00816.33
7.3.270.0140.00317.40
7.3.260.0080.01416.73
7.3.250.0070.01116.50
7.3.240.0150.00816.38
7.3.230.0130.00616.39
7.3.210.0100.01016.71
7.3.200.0120.00919.39
7.3.190.0090.01016.27
7.3.180.0170.00016.27
7.3.170.0030.01316.60
7.3.160.0120.00316.57
7.3.120.0040.01014.85
7.3.10.0130.00316.39
7.3.00.0130.00316.72
7.2.330.0070.01216.44
7.2.320.0180.00616.36
7.2.310.0060.01016.44
7.2.300.0150.00316.56
7.2.290.0100.01016.73
7.2.130.0100.00316.93
7.2.120.0000.01316.79
7.2.110.0000.01517.03
7.2.100.0090.00616.71
7.2.90.0050.00316.59
7.2.80.0070.00717.09
7.2.70.0030.00716.95
7.2.60.0040.00416.81
7.2.50.0060.00616.94
7.2.40.0040.01116.96
7.2.30.0040.00416.90
7.2.20.0090.00316.94
7.2.10.0060.00616.82
7.2.00.0030.01018.04
7.1.250.0060.00315.48
7.1.100.0060.00618.24
7.1.70.0000.01217.22
7.1.60.0150.00919.32
7.1.50.0070.01016.94
7.1.00.0030.07722.32
7.0.200.0030.00516.88
7.0.140.0000.07722.16
7.0.60.0030.07320.02
7.0.50.0100.05017.92
7.0.40.0100.08720.10
7.0.30.0270.04020.20
7.0.20.0200.05320.16
7.0.10.0100.08320.13
7.0.00.0030.08720.17
5.6.280.0100.06720.91
5.6.210.0100.07720.50
5.6.200.0070.08018.17
5.6.190.0070.04020.41
5.6.180.0030.05020.57
5.6.170.0270.03320.61
5.6.160.0100.05020.38
5.6.150.0030.08318.16
5.6.140.0070.08718.18
5.6.130.0030.08318.18
5.6.120.0070.09020.98
5.6.110.0030.08020.97
5.6.100.0070.05020.97
5.6.90.0130.08021.11
5.6.80.0130.07320.36
5.5.350.0070.08720.46
5.5.340.0000.04318.02
5.5.330.0030.08320.57
5.5.320.0370.07020.34
5.5.310.0230.04020.29
5.5.300.0000.04318.00
5.5.290.0000.07717.98
5.5.280.0070.08320.62
5.5.270.0100.03320.89
5.5.260.0000.05320.87
5.5.250.0100.08320.77
5.5.240.0070.08020.15
5.4.450.0630.04319.58
5.4.440.0630.04319.41
5.4.430.0600.02719.57
5.4.420.0500.04719.08
5.4.410.0430.04319.41
5.4.400.0430.05318.72
5.4.390.0570.04318.72
5.4.380.0130.05718.52
5.4.370.0230.05018.64
5.4.360.0170.06018.62
5.4.350.0230.04718.49
5.4.340.0130.05718.72
5.4.320.0050.03612.45
5.4.310.0040.03912.45
5.4.300.0050.03712.45
5.4.290.0040.03812.45
5.4.280.0100.03012.34
5.4.270.0060.03612.35
5.4.260.0050.03712.35
5.4.250.0070.04212.34
5.4.240.0100.03612.34
5.4.230.0050.03712.34
5.4.220.0080.03712.34
5.4.210.0030.03712.34
5.4.200.0090.03812.34
5.4.190.0150.04412.34
5.4.180.0130.04412.33
5.4.170.0190.03912.35
5.4.160.0140.04512.34
5.4.150.0170.04612.33
5.4.140.0150.04312.02
5.4.130.0160.04312.00
5.4.120.0140.04511.96
5.4.110.0270.06211.96
5.4.100.0170.04211.96
5.4.90.0140.04511.96
5.4.80.0220.06611.96
5.4.70.0110.04611.95
5.4.60.0180.04311.95
5.4.50.0200.06911.95
5.4.40.0210.03811.95
5.4.30.0120.04711.94
5.4.20.0340.08411.95
5.4.10.0190.03811.95
5.4.00.0160.04011.43
5.3.290.0020.04312.80
5.3.280.0060.03612.71
5.3.270.0150.04712.72
5.3.260.0180.04512.71
5.3.250.0170.04512.72
5.3.240.0190.04212.72
5.3.230.0170.04712.71
5.3.220.0200.04512.68
5.3.210.0190.04612.68
5.3.200.0170.04412.68
5.3.190.0250.06912.68
5.3.180.0200.05112.67
5.3.170.0220.04612.67
5.3.160.0370.05712.68
5.3.150.0180.04412.67
5.3.140.0260.03712.66
5.3.130.0250.07012.66
5.3.120.0220.04812.66
5.3.110.0220.04712.66
5.3.100.0190.04912.11
5.3.90.0240.05312.09
5.3.80.0390.09312.08
5.3.70.0170.04512.07
5.3.60.0190.04212.07
5.3.50.0510.06912.00
5.3.40.0230.04112.00
5.3.30.0150.04311.96
5.3.20.0140.04511.73
5.3.10.0150.04111.69
5.3.00.0160.04111.68
5.2.170.0210.0589.18
5.2.160.0110.0369.18
5.2.150.0120.0369.18
5.2.140.0150.0329.18
5.2.130.0100.0379.14
5.2.120.0120.0359.14
5.2.110.0120.0389.15
5.2.100.0240.0559.14
5.2.90.0110.0369.14
5.2.80.0120.0369.14
5.2.70.0140.0339.14
5.2.60.0100.0369.09
5.2.50.0130.0649.05
5.2.40.0120.0359.04
5.2.30.0090.0389.01
5.2.20.0100.0399.00
5.2.10.0120.0348.92
5.2.00.0130.0328.78
5.1.60.0090.0318.07
5.1.50.0110.0328.07
5.1.40.0110.0298.05
5.1.30.0130.0298.39
5.1.20.0110.0328.43
5.1.10.0110.0328.14
5.1.00.0100.0318.14
5.0.50.0100.0276.62
5.0.40.0180.0456.48
5.0.30.0090.0366.30
5.0.20.0070.0256.27
5.0.10.0090.0256.24
5.0.00.0090.0376.23
4.4.90.0090.0164.78
4.4.80.0060.0194.75
4.4.70.0070.0184.76
4.4.60.0090.0174.75
4.4.50.0090.0174.77
4.4.40.0110.0584.71
4.4.30.0080.0204.76
4.4.20.0080.0174.84
4.4.10.0070.0184.85
4.4.00.0090.0304.76
4.3.110.0080.0174.67
4.3.100.0070.0184.66
4.3.90.0100.0154.63
4.3.80.0060.0294.58
4.3.70.0060.0194.63
4.3.60.0070.0174.63
4.3.50.0100.0184.63
4.3.40.0060.0294.54
4.3.30.0050.0193.29
4.3.20.0060.0173.28
4.3.10.0040.0183.23
4.3.00.0000.01713.14

preferences:
45.67 ms | 400 KiB | 5 Q