3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ (object) ['id' => 'one', 'color' => 'white'], (object) ['id' => 'two', 'color' => 'red'], (object) ['id' => 'three', 'color' => 'blue'] ]; $find = 'one'; var_export( array_find( $array, fn($row) => $row->id === $find ) );

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.5.30.0070.01018.01
8.5.20.0090.00719.97
8.5.10.0110.00816.80
8.5.00.0150.00623.12
8.4.180.0170.00419.74
8.4.170.0150.01023.98
8.4.160.0090.01321.92
8.4.150.0080.00516.88
8.4.140.0140.01517.75
8.4.130.0180.00817.70
8.4.120.0240.00617.40
8.4.110.0140.01217.82
8.4.100.0140.01317.46
8.4.90.0180.01217.58
8.4.80.0200.01317.85
8.4.70.0160.01317.87
8.4.60.0200.01017.64
8.4.50.0170.01017.80
8.4.40.0190.00917.61
8.4.30.0180.01017.57
8.4.20.0160.01017.69
8.4.10.0170.01017.94
8.3.300.0110.01120.72
8.3.290.0080.00920.68
8.3.280.0070.00416.27
8.3.270.0150.01216.50
8.3.260.0150.01116.73
8.3.250.0170.00616.89
8.3.240.0130.01016.20
8.3.230.0110.01316.58
8.3.220.0130.01216.45
8.3.210.0170.00516.56
8.3.200.0130.01116.55
8.3.190.0180.00716.64
8.3.180.0130.01116.46
8.3.170.0210.00616.46
8.3.160.0180.00716.72
8.3.150.0240.00616.43
8.3.140.0260.01116.23
8.3.130.0260.00816.46
8.3.120.0230.01216.43
8.3.110.0250.01116.37
8.3.100.0340.01016.63
8.3.90.0280.01216.19
8.3.80.0270.00716.51
8.3.70.0300.01116.55
8.3.60.0310.01016.20
8.3.50.0270.00916.10
8.3.40.0280.01017.13
8.3.30.0260.00717.60
8.3.20.0220.01217.42
8.3.10.0190.01317.08
8.3.00.0270.01217.39
8.2.300.0120.00720.41
8.2.290.0250.00916.40
8.2.280.0240.00916.70
8.2.270.0290.00715.98
8.2.260.0250.01015.92
8.2.250.0200.01416.11
8.2.240.0280.00615.92
8.2.230.0180.01716.22
8.2.220.0260.00716.61
8.2.210.0260.00716.00
8.2.200.0220.01016.36
8.2.190.0290.00716.30
8.2.180.0250.00916.34
8.2.170.0340.00517.41
8.2.160.0200.01417.37
8.2.150.0220.01517.19
8.2.140.0260.00717.54
8.2.130.0280.01217.36
8.2.120.0260.01017.56
8.2.110.0310.00517.32
8.2.100.0290.00817.66
8.2.90.0240.00917.33
8.2.80.0240.01117.21
8.2.70.0270.00917.52
8.2.60.0250.01317.37
8.2.50.0300.01117.43
8.2.40.0230.01117.14
8.2.30.0310.00517.30
8.2.20.0270.00917.40
8.2.10.0320.00917.11
8.2.00.0230.01117.17
8.1.340.0090.01021.79

preferences:
61 ms | 851 KiB | 5 Q