3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ [ 'hash' => '0xa35b44d7e2ff09f2c936d04ad53f472b3cae46b449ddd307b3bb0a9aa67aa7a0', 'from' => '0x87fdc1fd91cb8a7db0021f1d749027b7048874cb', 'to' => '0xe460c28e4ce2e4ae0b934a3eeb8fd88134d26956' ], [ 'hash' =>'0x3f85168d763793e350b4273c531b055d37121b170a48675ba5decd80b62442d5', 'from' => '0xe460c28e4ce2e4ae0b934a3eeb8fd88134d26956', 'to' => '0x1faae436c85a15f257f7ff7f02af1e608815bbd7' ], [ 'hash' => '0x621de75f0a2a880e17efc2c40a310223c38fa19b71b2dae375a9bc4d4d794a1a', 'from' => '0xe460c28e4ce2e4ae0b934a3eeb8fd88134d26956', 'to' => '0x1faae436c85a15f257f7ff7f02af1e608815bbd7' ], [ 'hash' => '0x4a32e142b627a1541d0dc5605ef9c52b7f586f02ab502d13d0503321622ba435', 'from' => '0xe460c28e4ce2e4ae0b934a3eeb8fd88134d26956', 'to' => '0x1faae436c85a15f257f7ff7f02af1e608815bbd7' ], [ 'hash' => '0x0b40f67a334aae4cd54977e5e4cd5f54a2157f75441d5143d1eed4ba70f19b8f', 'from' => '0xe460c28e4ce2e4ae0b934a3eeb8fd88134d26956', 'to' => '0x1faae436c85a15f257f7ff7f02af1e608815bbd7' ] ]; $pa = strtolower('0xE460c28E4cE2e4aE0B934a3eeb8FD88134d26956'); $result = ['from' => [], 'to' => []]; foreach ($data as $set) { if ($pa == $set['from']) { $result['Sent'][] = $set['hash']; } elseif ($pa == $set['to']) { $result['Received'][] = $set['hash']; } } echo "For $pa\n"; echo "Sent Transactions:\n\t" , implode("\n\t", $result['Sent']) , "\n"; echo "Received Transactions:\n\t" , implode("\n\t", $result['Received']);

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.130.0110.00917.69
8.4.120.0140.00620.64
8.4.110.0120.00719.04
8.4.100.0060.00317.80
8.4.90.0130.00819.04
8.4.80.0060.00317.92
8.4.70.0100.00819.61
8.4.60.0110.01018.99
8.4.50.0120.00818.71
8.4.40.0100.00619.35
8.4.30.0050.00317.75
8.4.20.0100.01020.51
8.4.10.0080.00019.50
8.3.260.0080.00916.80
8.3.250.0130.00718.83
8.3.240.0130.00616.36
8.3.230.0090.00816.56
8.3.220.0100.00816.96
8.3.210.0110.00816.48
8.3.200.0050.00416.59
8.3.190.0070.01316.95
8.3.180.0100.01016.70
8.3.170.0120.00620.67
8.3.160.0050.00517.00
8.3.150.0110.00418.50
8.3.140.0140.00416.71
8.3.130.0070.00318.42
8.3.120.0100.01019.12
8.3.110.0000.00820.94
8.3.100.0000.00916.65
8.3.90.0040.00426.77
8.3.80.0060.00316.47
8.3.70.0120.00316.63
8.3.60.0110.00418.43
8.3.50.0070.01018.29
8.3.40.0090.00618.80
8.3.30.0090.00918.57
8.3.20.0030.00519.10
8.3.10.0000.00821.73
8.3.00.0080.00020.64
8.2.290.0110.00820.22
8.2.280.0120.00616.82
8.2.270.0000.00817.27
8.2.260.0080.00016.59
8.2.250.0040.00416.72
8.2.240.0040.00419.13
8.2.230.0040.00422.58
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0090.00617.00
8.2.180.0070.01025.92
8.2.170.0070.00718.91
8.2.160.0030.01022.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0040.00419.89
8.2.120.0000.00726.35
8.2.110.0070.00421.18
8.2.100.0080.00317.84
8.2.90.0050.00317.84
8.2.80.0080.00017.97
8.2.70.0030.00517.50
8.2.60.0050.00518.05
8.2.50.0080.00018.07
8.2.40.0040.00420.07
8.2.30.0040.00418.12
8.2.20.0060.00318.21
8.2.10.0000.00718.05
8.2.00.0000.00917.80
8.1.330.0090.00821.91
8.1.320.0110.00716.14
8.1.310.0090.00918.66
8.1.300.0040.00717.86
8.1.290.0060.00330.84
8.1.280.0180.00025.92
8.1.270.0040.00422.03
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0000.00920.74
8.1.230.0090.00322.20
8.1.220.0000.00817.78
8.1.210.0040.00418.83
8.1.200.0000.01117.23
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0060.00318.64
8.1.160.0030.00618.92
8.1.150.0050.00218.97
8.1.140.0050.00322.08
8.1.130.0000.00720.18
8.1.120.0030.00517.51
8.1.110.0040.00417.36
8.1.100.0040.00417.47
8.1.90.0040.00417.50
8.1.80.0000.00717.51
8.1.70.0030.00317.48
8.1.60.0000.00817.49
8.1.50.0040.00417.50
8.1.40.0060.00317.47
8.1.30.0040.00417.65
8.1.20.0000.01217.62
8.1.10.0030.00617.52
8.1.00.0040.00417.50
8.0.300.0080.00019.86
8.0.290.0040.00416.63
8.0.280.0000.00718.47
8.0.270.0000.00817.30
8.0.260.0030.00318.39
8.0.250.0030.00316.89
8.0.240.0000.00716.84
8.0.230.0080.00016.94
8.0.220.0000.00716.81
8.0.210.0000.00716.95
8.0.200.0040.00416.98
8.0.190.0040.00416.85
8.0.180.0040.00416.95
8.0.170.0060.00316.82
8.0.160.0000.00916.93
8.0.150.0030.00316.87
8.0.140.0000.00816.87
8.0.130.0050.00013.43
8.0.120.0080.00016.91
8.0.110.0000.00716.79
8.0.100.0000.00716.93
8.0.90.0000.00716.71
8.0.80.0130.00616.92
8.0.70.0070.00016.80
8.0.60.0080.00016.99
8.0.50.0040.00416.80
8.0.30.0160.00017.26
8.0.20.0130.00617.40
8.0.10.0070.00016.98
8.0.00.0140.00616.68
7.4.330.0000.00515.55
7.4.320.0040.00416.67
7.4.300.0000.00616.62
7.4.290.0070.00016.57
7.4.280.0000.00716.62
7.4.270.0090.00016.48
7.4.260.0030.00516.42
7.4.250.0070.00016.42
7.4.240.0030.00516.56
7.4.230.0070.00016.37
7.4.220.0050.00516.51
7.4.210.0080.00616.59
7.4.200.0030.00316.72
7.4.160.0070.00916.58
7.4.140.0100.00817.86
7.4.130.0110.00616.39
7.4.120.0080.01016.60
7.4.110.0110.00716.60
7.4.100.0120.00616.51
7.4.90.0100.00716.32
7.4.80.0130.00319.39
7.4.70.0090.00616.50
7.4.60.0060.00916.60
7.4.50.0120.00316.42
7.4.40.0050.01116.51
7.4.10.0070.00914.89
7.4.00.0020.01514.95
7.3.330.0050.00013.18
7.3.320.0030.00313.21
7.3.310.0050.00316.34
7.3.300.0070.00016.33
7.3.290.0070.00016.35
7.3.280.0080.00916.29
7.3.260.0090.01016.49
7.3.240.0080.01016.45
7.3.230.0100.01316.46
7.3.210.0100.00716.54
7.3.200.0100.00716.32
7.3.190.0100.00716.34
7.3.180.0030.01816.29
7.3.170.0120.00616.54
7.3.160.0030.01216.66
7.3.130.0080.01115.00
7.3.120.0100.00514.87
7.3.110.0110.00614.81
7.3.100.0080.00514.79
7.3.90.0070.00914.80
7.3.80.0020.01114.79
7.3.70.0030.00914.92
7.3.60.0060.01114.79
7.3.50.0050.01014.77
7.3.40.0050.00914.58
7.3.30.0110.00514.64
7.3.20.0090.00716.12
7.3.10.0080.01115.93
7.3.00.0130.00716.06
7.2.330.0120.00616.73
7.2.320.0060.01216.64
7.2.310.0040.01916.57
7.2.300.0110.00816.55
7.2.290.0160.00616.77
7.2.260.0030.01615.07
7.2.250.0050.01215.27
7.2.240.0090.00615.09
7.2.230.0040.01115.24
7.2.220.0080.00815.02
7.2.210.0080.00615.22
7.2.200.0090.00714.84
7.2.190.0060.00715.01
7.2.180.0070.00815.11
7.2.170.0050.01214.88
7.2.160.0060.00815.12
7.2.150.0100.00816.29
7.2.140.0100.01116.29
7.2.130.0100.00716.36
7.2.120.0100.00816.35
7.2.110.0230.00815.87
7.2.100.0220.00915.84
7.2.90.0320.00915.80
7.2.80.0390.00815.96
7.2.70.0320.00715.91
7.2.60.0250.00715.96
7.2.50.0290.00815.97
7.2.40.0320.00916.01
7.2.30.0310.01016.04
7.2.20.0290.00815.95
7.2.10.0250.00916.07
7.2.00.0490.00816.00
7.1.330.0060.00815.95
7.1.320.0090.00315.71
7.1.310.0100.00515.88
7.1.300.0080.00515.85
7.1.290.0030.01015.85
7.1.280.0110.00615.17
7.1.270.0120.00315.25
7.1.260.0050.00715.23
7.1.250.0090.00715.15
7.1.240.0100.01115.26
7.1.230.0410.01014.90
7.1.220.0350.00314.84
7.1.210.0260.01315.00
7.1.200.0270.00614.80
7.1.190.0280.00814.80
7.1.180.0550.00614.74
7.1.170.0230.01014.65
7.1.160.0670.00614.79
7.1.150.0320.00714.80
7.1.140.0230.01114.80
7.1.130.0400.00914.78
7.1.120.0350.00514.73
7.1.110.0500.00714.86
7.1.100.0440.00714.85
7.1.90.0340.00914.79
7.1.80.0260.00914.82
7.1.70.0300.00714.83
7.1.60.0280.01019.40
7.1.50.0510.01219.05
7.1.40.0380.01119.34
7.1.30.0440.00819.29
7.1.20.0470.00619.12
7.1.10.0330.00814.88
7.1.00.0250.00914.85
7.0.330.0260.00713.70
5.6.400.0140.01514.45
5.6.390.0090.01414.61
5.6.380.0050.01214.51

preferences:
28.08 ms | 403 KiB | 5 Q