3v4l.org

run code in 300+ PHP versions simultaneously
<?php $report = array ( '18427e904f7a227e8c3b80dd2858a70e' => array ( 'needle' => array ( 0 => array ( 'starts_at' => 11821, 'ends_at' => 14377, 'length' => 2556, 'original' => 'foo' ), ), 'haystack' => array ( 0 => array ( 'starts_at' => 12227, 'ends_at' => 14783, 'length' => 2556, 'original' => 'foo' ), ), ), 'dd0c26f35ebf55de25eabea3edbfba32' => array ( 'needle' => array ( 0 => array ( 'starts_at' => 17255, 'ends_at' => 32431, 'length' => 15176, 'original' => 'foo' ), ), 'haystack' => array ( 0 => array ( 'starts_at' => 17776, 'ends_at' => 33032, 'length' => 15256, 'original' => 'foo' ), ), )); var_dump(remapMatches($report, true)); function remapMatches($matches) { $remapped = []; foreach ($matches as $fingerprint => $match) { $remapped[$fingerprint] = $match; $needle = $remapped[$fingerprint]['needle']; $haystack = $remapped[$fingerprint]['haystack']; unset($needle); unset($haystack); foreach ($remapped[$fingerprint]['needle'] as &$needle) unset($needle['original']); foreach ($remapped[$fingerprint]['haystack'] as &$haystack) unset($haystack['original']); } return $remapped; }

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.70.0120.01216.63
8.3.60.0100.00718.48
8.3.50.0070.01318.04
8.3.40.0110.00418.76
8.3.30.0180.00018.75
8.3.20.0080.00020.90
8.3.10.0040.00423.65
8.3.00.0080.00017.80
8.2.190.0100.00716.58
8.2.180.0100.01018.54
8.2.170.0120.00322.96
8.2.160.0060.01122.07
8.2.150.0040.00724.18
8.2.140.0000.00824.66
8.2.130.0090.00026.16
8.2.120.0040.00419.66
8.2.110.0080.00322.14
8.2.100.0090.00318.03
8.2.90.0050.00319.17
8.2.80.0000.00917.97
8.2.70.0030.00617.50
8.2.60.0000.00818.05
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0000.00718.16
8.2.20.0000.00718.13
8.2.10.0000.00719.34
8.2.00.0040.00419.34
8.1.280.0090.00625.92
8.1.270.0060.00320.81
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.81
8.1.230.0110.00017.83
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0050.00318.46
8.1.160.0000.00818.82
8.1.150.0000.00718.92
8.1.140.0000.00718.84
8.1.130.0020.00520.17
8.1.120.0040.00417.51
8.1.110.0000.00917.49
8.1.100.0070.00017.43
8.1.90.0080.00017.48
8.1.80.0050.00317.46
8.1.70.0040.00417.48
8.1.60.0040.00417.57
8.1.50.0080.00017.57
8.1.40.0000.00817.60
8.1.30.0000.00817.58
8.1.20.0000.00917.72
8.1.10.0070.00317.58
8.1.00.0030.00617.43
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0050.00218.49
8.0.270.0030.00417.92
8.0.260.0000.00620.10
8.0.250.0030.00316.98
8.0.240.0040.00417.01
8.0.230.0040.00416.99
8.0.220.0000.00716.96
8.0.210.0040.00416.99
8.0.200.0070.00017.00
8.0.190.0000.00916.98
8.0.180.0040.00416.96
8.0.170.0000.00916.96
8.0.160.0050.00216.94
8.0.150.0030.00616.73
8.0.140.0030.00716.92
8.0.130.0050.00013.36
8.0.120.0000.00716.89
8.0.110.0060.00316.79
8.0.100.0070.00016.86
8.0.90.0030.00616.79
8.0.80.0090.00916.87
8.0.70.0000.00816.73
8.0.60.0080.00016.91
8.0.50.0050.00216.99
8.0.30.0030.01416.82
8.0.20.0120.00617.29
8.0.10.0000.00816.94
8.0.00.0140.00716.73
7.4.330.0000.00516.63
7.4.320.0040.00416.70
7.4.300.0030.00316.54
7.4.290.0090.00016.53
7.4.280.0050.00316.52
7.4.270.0000.00716.55
7.4.260.0050.00013.29
7.4.250.0040.00316.51
7.4.240.0020.00516.69
7.4.230.0030.00616.29
7.4.220.0030.00316.64
7.4.210.0080.01116.58
7.4.200.0000.00816.51
7.4.130.0120.01016.45
7.4.120.0160.00816.44
7.4.110.0160.00816.60
7.4.100.0060.01216.70
7.4.90.0080.01016.58
7.4.80.0090.00919.39
7.4.70.0120.01216.77
7.4.60.0090.00916.63
7.4.50.0030.01216.40
7.4.40.0190.00316.50
7.4.20.0110.01116.64
7.4.10.0060.01016.39
7.4.00.0120.00916.44
7.3.330.0070.00016.26
7.3.320.0030.00313.23
7.3.310.0030.00616.35
7.3.300.0000.00716.24
7.3.290.0050.00916.32
7.3.260.0150.00416.41
7.3.240.0120.00716.55
7.3.230.0070.01116.44
7.3.210.0050.01316.36
7.3.200.0120.01216.54
7.3.190.0100.01016.49
7.3.180.0170.00716.64
7.3.170.0170.00016.40
7.3.160.0030.01316.59
7.3.140.0120.00616.66
7.3.130.0140.00316.32
7.3.120.0060.00916.35
7.3.110.0120.00316.31
7.3.100.0100.01316.56
7.3.90.0120.00916.66
7.3.80.0040.01616.49
7.3.70.0140.00416.36
7.3.60.0060.00916.43
7.3.50.0100.01016.34
7.3.40.0090.00916.29
7.3.30.0070.01016.30
7.3.20.0100.01016.39
7.3.10.0130.00616.39
7.3.00.0140.00316.32
7.2.330.0110.01416.74
7.2.320.0070.01016.75
7.2.310.0080.01216.40
7.2.300.0090.00916.75
7.2.290.0050.01416.70
7.2.270.0030.01316.74
7.2.260.0070.01316.78
7.2.250.0100.01316.57
7.2.240.0090.00916.56
7.2.230.0030.01416.83
7.2.220.0100.01316.86
7.2.210.0070.01316.65
7.2.200.0070.01116.75
7.2.190.0090.00616.57
7.2.180.0090.01216.74
7.2.170.0060.00916.59
7.2.160.0110.00716.61
7.2.150.0130.00616.58
7.2.140.0040.01216.66
7.2.130.0150.00316.90
7.2.120.0100.00716.58
7.2.110.0040.01516.74
7.2.100.0090.00916.68
7.2.90.0140.00516.58
7.2.80.0030.01516.71
7.2.70.0120.00916.71
7.2.60.0090.00916.65
7.2.50.0080.01516.61
7.2.40.0070.01016.70
7.2.30.0120.01116.75
7.2.20.0050.01116.64
7.2.10.0040.01216.75
7.2.00.0140.00316.59

preferences:
45.7 ms | 401 KiB | 5 Q