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_2) unset($needle_2['original']); foreach ($remapped[$fingerprint]['haystack'] as &$haystack_2) unset($needle_2['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.4.120.0100.01120.58
8.4.110.0050.00422.61
8.4.100.0120.00817.50
8.4.90.0110.01020.65
8.4.80.0050.00420.84
8.4.70.0100.00418.84
8.4.60.0140.00720.61
8.4.50.0110.00918.71
8.4.40.0000.00917.64
8.4.30.0120.00620.34
8.4.20.0140.00717.67
8.4.10.0030.00619.70
8.3.250.0150.00419.00
8.3.240.0050.01616.66
8.3.230.0100.01016.92
8.3.220.0150.00518.89
8.3.210.0100.01116.71
8.3.200.0100.01116.57
8.3.190.0130.00717.07
8.3.180.0090.00920.80
8.3.170.0070.01317.05
8.3.160.0150.00316.71
8.3.150.0100.01016.48
8.3.140.0110.00716.63
8.3.130.0090.00016.78
8.3.120.0090.00618.75
8.3.110.0040.00420.94
8.3.100.0100.00018.59
8.3.90.0040.00426.77
8.3.80.0060.00316.38
8.3.70.0130.00916.38
8.3.60.0130.00318.43
8.3.50.0170.00624.54
8.3.40.0150.00318.83
8.3.30.0110.00318.70
8.3.20.0040.00420.91
8.3.10.0050.00223.59
8.3.00.0040.00417.93
8.2.290.0100.01017.43
8.2.280.0130.00918.68
8.2.270.0070.01016.52
8.2.260.0000.00817.16
8.2.250.0160.00316.57
8.2.240.0000.00917.57
8.2.230.0070.00422.58
8.2.220.0050.00324.06
8.2.210.0040.00426.77
8.2.200.0090.00016.88
8.2.190.0120.00316.58
8.2.180.0040.01518.41
8.2.170.0070.00722.96
8.2.160.0030.01022.02
8.2.150.0030.00724.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00020.86
8.2.110.0080.00320.94
8.2.100.0080.00417.78
8.2.90.0040.00417.84
8.2.80.0090.00018.16
8.2.70.0050.00317.75
8.2.60.0080.00017.75
8.2.50.0050.00317.63
8.2.40.0060.00319.35
8.2.30.0080.00019.58
8.2.20.0040.00418.20
8.2.10.0030.00519.45
8.2.00.0050.00319.39
8.1.330.0140.00621.95
8.1.320.0080.01117.00
8.1.310.0060.00316.91
8.1.300.0110.00416.11
8.1.290.0030.00630.84
8.1.280.0130.01025.92
8.1.270.0050.00320.65
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00320.88
8.1.230.0090.00322.08
8.1.220.0000.00817.76
8.1.210.0050.00318.77
8.1.200.0040.00417.48
8.1.190.0000.00817.54
8.1.180.0040.00418.10
8.1.170.0030.00620.20
8.1.160.0040.00418.93
8.1.150.0040.00418.91
8.1.140.0040.00418.92
8.1.130.0030.00320.30
8.1.120.0000.00717.39
8.1.110.0030.00617.45
8.1.100.0040.00417.47
8.1.90.0050.00217.39
8.1.80.0050.00317.41
8.1.70.0040.00417.49
8.1.60.0000.00817.59
8.1.50.0000.00817.45
8.1.40.0000.00917.53
8.1.30.0050.00317.68
8.1.20.0000.00817.58
8.1.10.0040.00717.57
8.1.00.0030.00617.47
8.0.300.0000.00719.90
8.0.290.0000.00816.88
8.0.280.0050.00318.47
8.0.270.0000.00717.98
8.0.260.0030.00320.02
8.0.250.0000.00717.02
8.0.240.0080.00017.01
8.0.230.0030.00317.00
8.0.220.0040.00416.93
8.0.210.0000.00816.92
8.0.200.0000.00717.02
8.0.190.0030.00716.92
8.0.180.0030.00517.00
8.0.170.0000.00916.86
8.0.160.0040.00416.89
8.0.150.0030.00416.91
8.0.140.0070.00416.88
8.0.130.0030.00313.38
8.0.120.0040.00416.78
8.0.110.0000.00716.93
8.0.100.0050.00316.79
8.0.90.0090.00016.75
8.0.80.0130.00816.86
8.0.70.0030.00616.78
8.0.60.0040.00416.99
8.0.50.0070.00017.03
8.0.30.0180.00017.41
8.0.20.0160.00717.04
8.0.10.0040.00417.16
8.0.00.0060.01316.75
7.4.330.0000.00516.59
7.4.320.0070.00016.63
7.4.300.0030.00316.56
7.4.290.0070.00016.38
7.4.280.0000.00816.65
7.4.270.0030.00316.52
7.4.260.0050.00013.36
7.4.250.0000.00716.62
7.4.240.0040.00316.61
7.4.230.0000.00716.71
7.4.220.0050.00216.54
7.4.210.0090.00916.67
7.4.200.0030.00316.73
7.4.130.0140.01216.47
7.4.120.0100.01316.51
7.4.110.0090.00916.49
7.4.100.0110.00616.56
7.4.90.0070.01116.50
7.4.80.0090.01219.39
7.4.70.0110.00716.74
7.4.60.0030.01416.59
7.4.50.0030.00716.61
7.4.40.0090.01516.45
7.4.20.0100.00616.46
7.4.10.0140.00616.62
7.4.00.0070.00716.70
7.3.330.0040.00416.43
7.3.320.0000.00613.43
7.3.310.0030.00316.40
7.3.300.0030.00316.33
7.3.290.0030.01416.37
7.3.260.0060.01216.27
7.3.240.0060.01216.42
7.3.230.0090.00916.46
7.3.210.0080.00816.41
7.3.200.0050.01116.44
7.3.190.0120.00616.50
7.3.180.0150.00516.36
7.3.170.0030.01516.42
7.3.160.0130.00516.31
7.3.140.0030.01316.63
7.3.130.0160.00016.39
7.3.120.0100.00516.40
7.3.110.0110.00416.27
7.3.100.0030.01216.33
7.3.90.0080.00816.32
7.3.80.0130.00316.30
7.3.70.0000.01616.39
7.3.60.0160.00016.36
7.3.50.0110.00616.45
7.3.40.0050.01116.43
7.3.30.0170.00316.33
7.3.20.0090.00916.40
7.3.10.0080.00916.25
7.3.00.0110.00716.53
7.2.330.0200.00316.63
7.2.320.0110.00716.70
7.2.310.0070.01016.75
7.2.300.0130.00916.57
7.2.290.0100.00716.68
7.2.270.0110.01116.84
7.2.260.0000.01616.50
7.2.250.0060.00916.54
7.2.240.0090.00816.88
7.2.230.0080.00816.61
7.2.220.0170.00016.54
7.2.210.0080.00816.74
7.2.200.0110.01116.53
7.2.190.0040.01116.45
7.2.180.0000.01816.47
7.2.170.0060.01116.56
7.2.160.0000.01516.45
7.2.150.0120.00616.75
7.2.140.0140.00316.67
7.2.130.0100.00616.74
7.2.120.0130.01016.72
7.2.110.0120.00916.66
7.2.100.0000.01616.79
7.2.90.0040.01216.71
7.2.80.0060.01016.60
7.2.70.0070.01016.79
7.2.60.0070.01016.73
7.2.50.0160.00616.75
7.2.40.0170.00016.65
7.2.30.0060.01016.79
7.2.20.0030.01416.68
7.2.10.0060.00916.77
7.2.00.0000.01716.53

preferences:
33.32 ms | 403 KiB | 5 Q