3v4l.org

run code in 300+ PHP versions simultaneously
<?php function removeCacheWhereLike($sClass, $aWhere) { $aWhereQueryStrings = ''; foreach ($aWhere as $sKey => $sValue) { $aWhereQueryStrings[] = "`Query` LIKE '%\"".$sKey."\":\"".$sValue."\"%'"; } if (empty($aWhereQueryStrings)) { return false; } return " SELECT `Query` FROM IrgentEineTabelle WHERE ".implode(' AND', $aWhereQueryStrings)." "; } echo removeCacheWHereLike('Amazon', array( 'Function' => __FUNCTION__, 'Category' => 'CATEGORY', 'MWSSite' => 'DE', ));

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.43
8.3.50.0100.00316.75
8.3.40.0120.00318.75
8.3.30.0090.00618.79
8.3.20.0030.00720.16
8.3.10.0050.00321.75
8.3.00.0090.00020.87
8.2.180.0040.01118.18
8.2.170.0110.00422.96
8.2.160.0170.00322.25
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.38
8.2.120.0040.00426.35
8.2.110.0060.00320.35
8.2.100.0060.00617.98
8.2.90.0040.00419.22
8.2.80.0080.00018.16
8.2.70.0030.00517.63
8.2.60.0050.00317.93
8.2.50.0090.00018.10
8.2.40.0050.00322.32
8.2.30.0030.00620.98
8.2.20.0070.00018.00
8.2.10.0040.00418.05
8.2.00.0070.00018.02
8.1.280.0120.00325.92
8.1.270.0000.00723.97
8.1.260.0000.00826.35
8.1.250.0090.00028.09
8.1.240.0090.00022.62
8.1.230.0070.00419.16
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0040.00417.11
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0080.00019.09
8.1.150.0040.00420.71
8.1.140.0000.00719.55
8.1.130.0000.00718.77
8.1.120.0080.00017.41
8.1.110.0030.00517.48
8.1.100.0080.00017.37
8.1.90.0000.00817.43
8.1.80.0030.00317.52
8.1.70.0040.00417.45
8.1.60.0040.00417.48
8.1.50.0000.00817.43
8.1.40.0080.00017.55
8.1.30.0080.00017.68
8.1.20.0000.00817.66
8.1.10.0000.00717.59
8.1.00.0030.00617.53
8.0.300.0050.00318.77
8.0.290.0000.00716.88
8.0.280.0030.00318.47
8.0.270.0000.00717.14
8.0.260.0030.00316.95
8.0.250.0040.00417.06
8.0.240.0030.00616.85
8.0.230.0000.00716.90
8.0.220.0040.00316.97
8.0.210.0000.00716.98
8.0.200.0040.00417.02
8.0.190.0040.00416.99
8.0.180.0040.00417.04
8.0.170.0050.00217.00
8.0.160.0040.00416.92
8.0.150.0030.00316.96
8.0.140.0040.00416.84
8.0.130.0000.00713.45
8.0.120.0000.00816.96
8.0.110.0000.00717.01
8.0.100.0080.00016.94
8.0.90.0040.00416.86
8.0.80.0070.00716.90
8.0.70.0040.00416.79
8.0.60.0040.00416.86
8.0.50.0050.00216.84
8.0.30.0100.00816.99
8.0.20.0120.00617.40
8.0.10.0080.00016.95
8.0.00.0080.00916.89
7.4.330.0000.00515.55
7.4.320.0040.00416.56
7.4.300.0000.00616.37
7.4.290.0040.00416.53
7.4.280.0050.00316.64
7.4.270.0070.00016.50
7.4.260.0080.00016.52
7.4.250.0030.00316.56
7.4.240.0070.00016.41
7.4.230.0040.00416.64
7.4.220.0110.00716.61
7.4.210.0060.00916.47
7.4.200.0080.00016.59
7.4.160.0060.00916.52
7.4.150.0080.00817.40
7.4.140.0110.01117.86
7.4.130.0140.01116.60
7.4.120.0090.01016.53
7.4.110.0040.01116.59
7.4.100.0090.00916.72
7.4.90.0170.00616.43
7.4.80.0040.01219.39
7.4.70.0070.01016.56
7.4.60.0130.00316.61
7.4.50.0030.00716.36
7.4.40.0080.01116.36
7.4.30.0120.00616.43
7.4.00.0110.00314.86
7.3.330.0060.00013.23
7.3.320.0000.00513.20
7.3.310.0000.00716.35
7.3.300.0070.00016.34
7.3.290.0080.00916.36
7.3.280.0110.00716.35
7.3.270.0060.01117.40
7.3.260.0100.00816.56
7.3.250.0090.00916.50
7.3.240.0100.00716.54
7.3.230.0120.00416.56
7.3.210.0110.00616.55
7.3.200.0030.01316.68
7.3.190.0090.00916.48
7.3.180.0130.01016.55
7.3.170.0100.00616.52
7.3.160.0060.01516.55
7.3.00.0090.00916.57
7.2.330.0070.01416.62
7.2.320.0130.00716.66
7.2.310.0100.00716.76
7.2.300.0060.01216.57
7.2.290.0120.00316.57
7.2.130.0140.00916.96
7.2.120.0030.01316.69
7.2.110.0060.01216.71
7.2.100.0160.00416.62
7.2.90.0160.01016.68
7.2.80.0090.00616.66
7.2.70.0090.00616.93
7.2.60.0110.00516.88
7.2.50.0060.00916.84
7.2.40.0070.00716.96
7.2.30.0040.01316.83
7.2.20.0100.00916.97
7.2.10.0120.00816.89
7.2.00.0130.00518.03
7.1.250.0150.00515.80
7.1.240.0090.00815.69
7.1.230.0110.01115.32
7.1.220.0120.00815.58
7.1.210.0100.01015.68
7.1.200.0100.00515.82
7.1.190.0100.00715.58
7.1.180.0090.00315.68
7.1.170.0070.00715.47
7.1.160.0130.00315.63
7.1.150.0060.00915.58
7.1.140.0100.00715.54
7.1.130.0130.00315.81
7.1.120.0040.01115.55
7.1.110.0130.00315.92
7.1.100.0090.00417.01
7.1.90.0140.00015.63
7.1.80.0040.01115.63
7.1.70.0040.00916.22
7.1.60.0350.00324.51
7.1.50.0350.00524.29
7.1.40.0320.01224.19
7.1.30.0400.00823.96
7.1.20.0330.00824.27
7.1.10.0330.00615.02
7.1.00.0350.00815.30
7.0.330.0080.00815.32
7.0.320.0090.00915.23
7.0.310.0160.00015.09
7.0.300.0090.00615.26
7.0.290.0100.00615.37
7.0.280.0100.00715.50
7.0.270.0120.00015.21
7.0.260.0100.00315.20
7.0.250.0110.00715.54
7.0.240.0070.00715.44
7.0.230.0070.00715.45
7.0.220.0090.00615.43
7.0.210.0100.00015.46
7.0.200.0390.00815.07
7.0.190.0330.01014.95
7.0.180.0280.00915.01
7.0.170.0270.00714.97
7.0.160.0270.00714.94
7.0.150.0270.00714.96
7.0.140.0230.01015.11
7.0.130.0260.00815.01
7.0.120.0270.00715.22
7.0.110.0270.00814.87
7.0.100.0260.00814.97
7.0.90.0350.00514.99
7.0.80.0380.00715.00
7.0.70.0300.00814.88
7.0.60.0300.00814.90
7.0.50.0230.01114.91
7.0.40.0270.00814.09
7.0.30.0270.00914.04
7.0.20.0280.00714.07
7.0.10.0270.00814.06
7.0.00.0290.00313.99
5.6.380.0120.00414.25

preferences:
45.74 ms | 401 KiB | 5 Q