3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lookup = [ '0' => [ 'column1' => 'value1', 'column2' => 'value2', ], '1' => [ 'column1' => 'value1', 'column2' => 'value2', ] ]; // First check the cache if the items exist there $cacheResult = getFromCache($lookup); // If cache result does not match lookup, check the database $databaseResult = getFromDatabase($someDifferenceWhichNeedsToCheckedFor); // if Database lookup gave back what's missed from the Cache addToCache($databaseResult); // and merge both results // If databaseResult does not give what was missing from cache check the external "provider" $providerResult = getFromProvider($someDifferenceWhichNeedsToCheckedFor); // if Provider lookup gave back what's missed from the Cache $queryResponse = addToDatabase($databaseResult); if($queryResponse) { addToCache($queryResponse); } //Return result

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.0170.00318.55
8.3.50.0100.00718.18
8.3.40.0060.01018.68
8.3.30.0090.00618.90
8.3.20.0000.00818.73
8.3.10.0040.00421.58
8.3.00.0040.00421.90
8.2.180.0070.01418.36
8.2.170.0030.01422.96
8.2.160.0120.00619.09
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00419.24
8.2.110.0100.00022.24
8.2.100.0040.00717.72
8.2.90.0030.00617.63
8.2.80.0090.00018.90
8.2.70.0030.00617.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0000.00918.15
8.2.30.0020.00517.98
8.2.20.0040.00417.86
8.2.10.0040.00417.96
8.2.00.0000.00819.48
8.1.280.0070.01025.92
8.1.270.0040.00420.38
8.1.260.0000.01026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.84
8.1.230.0110.00019.22
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00018.73
8.1.160.0040.00418.84
8.1.150.0050.00218.86
8.1.140.0030.00518.78
8.1.130.0030.00621.82
8.1.120.0000.00717.47
8.1.110.0040.00417.42
8.1.100.0080.00017.36
8.1.90.0080.00017.39
8.1.80.0000.00817.37
8.1.70.0030.00317.45
8.1.60.0030.00517.55
8.1.50.0030.00717.43
8.1.40.0000.00717.40
8.1.30.0000.00817.48
8.1.20.0040.00417.63
8.1.10.0040.00417.61
8.1.00.0060.00317.38
8.0.300.0040.00419.82
8.0.290.0050.00316.63
8.0.280.0030.00318.39
8.0.270.0040.00417.19
8.0.260.0030.00318.35
8.0.250.0070.00016.93
8.0.240.0030.00516.96
8.0.230.0070.00016.92
8.0.220.0030.00616.88
8.0.210.0040.00416.80
8.0.200.0000.00616.84
8.0.190.0000.00716.95
8.0.180.0040.00416.93
8.0.170.0000.00816.79
8.0.160.0030.00516.88
8.0.150.0050.00216.71
8.0.140.0080.00016.74
8.0.130.0000.00513.36
8.0.120.0070.00016.73
8.0.110.0000.00716.92
8.0.100.0000.00716.94
8.0.90.0040.00416.72
8.0.80.0100.00816.86
8.0.70.0000.00816.83
8.0.60.0000.00716.77
8.0.50.0040.00416.83
8.0.30.0070.01017.15
8.0.20.0090.00917.40
8.0.10.0040.00417.00
8.0.00.0080.00816.77
7.4.330.0050.00315.55
7.4.320.0000.00716.54
7.4.300.0060.00016.50
7.4.290.0000.00716.59
7.4.280.0090.00016.62
7.4.270.0050.00316.58
7.4.260.0040.00416.59
7.4.250.0070.00016.37
7.4.240.0000.00716.49
7.4.230.0020.00516.50
7.4.220.0000.00716.25
7.4.210.0050.00916.49
7.4.200.0050.00216.44
7.4.160.0090.00816.52
7.4.140.0090.00917.86
7.4.130.0100.01316.68
7.4.120.0140.00616.47
7.4.110.0030.01416.58
7.4.100.0030.02016.45
7.4.90.0070.01016.48
7.4.80.0130.00919.39
7.4.70.0040.01516.66
7.4.60.0130.00316.44
7.4.50.0000.01516.56
7.4.40.0030.01316.34
7.4.00.0030.01014.97
7.3.330.0050.00013.13
7.3.320.0000.00613.17
7.3.310.0070.00016.32
7.3.300.0040.00416.18
7.3.290.0060.00316.34
7.3.280.0130.00516.23
7.3.260.0110.01016.49
7.3.240.0100.00816.33
7.3.230.0070.01016.53
7.3.210.0260.01616.56
7.3.200.0090.00616.38
7.3.190.0120.00616.19
7.3.180.0130.00316.49
7.3.170.0100.01016.38
7.3.160.0120.00316.31
7.2.330.0060.01616.58
7.2.320.0100.00716.51
7.2.310.0050.01216.42
7.2.300.0090.00816.29
7.2.290.0100.00916.55
7.2.100.0280.00914.62
7.2.90.2850.01314.41
7.2.80.0140.00614.52
7.2.70.0060.01014.87
7.2.60.0430.00914.84
7.2.50.0100.00714.60
7.2.40.0080.01114.74
7.2.30.0100.01114.82
7.2.20.3410.00714.59
7.2.10.1900.00614.93
7.2.00.0180.00614.64
7.1.210.2840.01013.57
7.1.200.0650.01113.74
7.1.190.0120.00313.52
7.1.180.0180.00013.51
7.1.170.0130.00713.79
7.1.160.3010.00713.67
7.1.150.0080.01313.57
7.1.140.0150.00413.45
7.1.130.0050.01113.68
7.1.120.0320.00813.63
7.1.110.0680.00313.68
7.1.100.0120.00613.95
7.1.90.0190.01213.58
7.1.80.0270.00313.78
7.1.70.1720.00913.76
7.1.60.1260.01031.60
7.1.50.0240.01231.71
7.1.40.0360.00931.76
7.1.30.2280.00731.68
7.1.20.1740.00631.83
7.1.10.0070.00713.76
7.1.00.0050.01013.59

preferences:
60.13 ms | 401 KiB | 5 Q