3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = [ ['name' => 'banana', 'color' => 'yellow' , 'shape' => 'cylinder'], ['name' => 'apple', 'color' => 'red' , 'shape' => 'sphere'], ['name' => 'orange', 'color' => 'orange' , 'shape' => 'sphere'], ]; var_export( array_any( $fruits, fn($row) => $row['name'] === 'apple' ) ); echo "\n---\n"; var_export( array_all( $fruits, fn($row) => $row['name'] === 'apple' ) ); echo "\n---\n"; var_export( array_find_key( $fruits, fn($row) => $row['name'] === 'apple' ) ); echo "\n---\n"; var_export( array_find( $fruits, fn($row) => $row['name'] === 'apple' ) );

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.10.0110.00616.72
8.5.00.0120.01220.13
8.4.150.0020.00014.05
8.4.140.0110.01217.54
8.4.130.0120.00818.72
8.4.120.0100.00923.86
8.4.110.0160.00420.40
8.4.100.0090.00418.68
8.4.90.0080.01120.59
8.4.80.0060.00318.95
8.4.70.0040.00418.83
8.4.60.0110.00818.86
8.4.50.0150.00520.17
8.4.40.0160.00319.72
8.4.30.0030.00618.61
8.4.20.0030.01621.19
8.4.10.0100.00017.75
8.3.280.0170.00618.44
8.3.270.0090.01016.67
8.3.260.0040.00416.66
8.3.250.0050.00418.68
8.3.240.0110.00817.05
8.3.230.0060.00216.52
8.3.220.0030.00519.04
8.3.210.0030.00516.87
8.3.200.0030.00516.38
8.3.190.0090.01016.88
8.3.180.0090.01018.88
8.3.170.0070.00717.01
8.3.160.0110.00718.28
8.3.150.0110.00717.23
8.3.140.0050.00516.62
8.3.130.0060.01216.62
8.3.120.0130.00316.38
8.3.110.0150.00216.32
8.3.100.0160.00316.25
8.3.90.0210.00016.07
8.3.80.0120.00916.54
8.3.70.0180.00316.55
8.3.60.0170.00316.63
8.3.50.0160.00516.41
8.3.40.0060.00917.57
8.3.30.0180.00017.64
8.3.20.0120.00717.27
8.3.10.0090.00617.41
8.3.00.0100.00017.29
8.2.290.0130.00522.45
8.2.280.0060.00220.42
8.2.270.0160.00616.79
8.2.260.0090.00016.50
8.2.250.0140.00416.57
8.2.240.0150.00316.64
8.2.230.0110.00716.45
8.2.220.0090.00016.71
8.2.210.0120.00616.21
8.2.200.0170.00016.43
8.2.190.0200.00016.36
8.2.180.0180.00016.55
8.2.170.0190.00017.55
8.2.160.0200.00017.53
8.2.150.0150.00417.33
8.2.140.0170.00317.36
8.2.130.0190.00017.13
8.2.120.0110.00817.42
8.2.110.0200.00017.58
8.2.100.0140.00317.31
8.2.90.0140.00517.27
8.2.80.0090.00917.23
8.2.70.0160.00417.26
8.2.60.0090.00017.51
8.2.50.0130.00417.45
8.2.40.0030.01417.49
8.2.30.0130.00417.35
8.2.20.0160.00017.20
8.2.10.0130.00417.44
8.2.00.0120.00317.50
8.1.330.0120.00621.84
8.1.320.0040.00416.21
8.1.310.0100.00216.08
8.1.300.0170.00016.18
8.1.290.0150.00416.02
8.1.280.0140.00315.80
8.1.270.0190.00017.07
8.1.260.0130.00417.03
8.1.250.0140.00417.14
8.1.240.0160.00017.09
8.1.230.0140.00317.04
8.1.220.0160.00017.07
8.1.210.0120.00417.19
8.1.200.0100.00516.89
8.1.190.0110.00517.00
8.1.180.0110.00517.08
8.1.170.0110.00516.86
8.1.160.0120.00416.86
8.1.150.0100.00717.06
8.1.140.0080.00816.96
8.1.130.0160.00017.07
8.1.120.0140.00317.18
8.1.110.0110.00617.18
8.1.100.0110.00416.82
8.1.90.0070.01016.85
8.1.80.0120.00416.89
8.1.70.0120.00417.08
8.1.60.0140.00517.07
8.1.50.0150.00317.05
8.1.40.0100.00817.38
8.1.30.0150.00417.16
8.1.20.0080.00817.39
8.1.10.0140.00417.19
8.1.00.0110.00517.16

preferences:
36.62 ms | 403 KiB | 5 Q