3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['a', 'b', 'c', 'd']; $vars = ['a', 'f', 'g']; var_export( array_any( $vars, fn($v) => in_array($v, $array) ) );

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.0040.00416.77
8.5.00.0140.00719.89
8.4.150.0030.00014.05
8.4.140.0140.00817.64
8.4.130.0110.00917.79
8.4.120.0120.00820.36
8.4.110.0130.00622.52
8.4.100.0130.00722.25
8.4.90.0150.00718.58
8.4.80.0140.00619.51
8.4.70.0080.00817.97
8.4.60.0070.01218.70
8.4.50.0070.00118.45
8.4.40.0100.01017.63
8.4.30.0080.00018.61
8.4.20.0150.00321.12
8.4.10.0330.00719.16
8.3.280.0130.00718.22
8.3.270.0120.00816.86
8.3.260.0060.00616.61
8.3.250.0050.00518.86
8.3.240.0110.00916.62
8.3.230.0130.00716.56
8.3.220.0130.00617.27
8.3.210.0090.00918.62
8.3.200.0040.00416.60
8.3.190.0100.00516.95
8.3.180.0050.00316.71
8.3.170.0090.00917.07
8.3.160.0070.01120.45
8.3.150.0070.01117.35
8.3.140.0330.00416.44
8.3.130.0190.00616.29
8.3.120.0150.00316.50
8.3.110.0160.00316.27
8.3.100.0160.00316.57
8.3.90.0180.00416.29
8.3.80.0150.00516.41
8.3.70.0160.00416.36
8.3.60.0150.00616.29
8.3.50.0180.00316.19
8.3.40.0100.00517.45
8.3.30.0180.00017.34
8.3.20.0140.00317.36
8.3.10.0130.00317.50
8.3.00.0080.00417.52
8.2.290.0100.00920.67
8.2.280.0100.00918.63
8.2.270.0130.00716.95
8.2.260.0080.00016.75
8.2.250.0140.00416.32
8.2.240.0110.00816.30
8.2.230.0110.00616.43
8.2.220.0150.00416.23
8.2.210.0150.00416.50
8.2.200.0120.00416.38
8.2.190.0110.00716.70
8.2.180.0170.00016.61
8.2.170.0210.00017.23
8.2.160.0120.00817.55
8.2.150.0130.00617.04
8.2.140.0110.00717.35
8.2.130.0160.00317.28
8.2.120.0150.00417.41
8.2.110.0120.00617.52
8.2.100.0190.00017.32
8.2.90.0120.00617.68
8.2.80.0080.00817.33
8.2.70.0170.00217.16
8.2.60.0170.00017.26
8.2.50.0150.00317.21
8.2.40.0120.00617.36
8.2.30.0060.01017.05
8.2.20.0080.00817.64
8.2.10.0080.00817.53
8.2.00.0100.00517.21
8.1.330.0100.00921.95
8.1.320.0090.01018.33
8.1.310.0140.00416.08
8.1.300.0130.00316.16
8.1.290.0030.01415.91
8.1.280.0120.00416.26
8.1.270.0160.00316.91
8.1.260.0250.00017.04
8.1.250.0170.00217.01
8.1.240.0130.00317.16
8.1.230.0100.00716.86
8.1.220.0080.01217.20
8.1.210.0130.00317.02
8.1.200.0110.00416.98
8.1.190.0160.00016.98
8.1.180.0110.00416.88
8.1.170.0130.00416.96
8.1.160.0110.00517.36
8.1.150.0160.00016.97
8.1.140.0140.00316.88
8.1.130.0160.00017.08
8.1.120.0130.00417.03
8.1.110.0040.01317.25
8.1.100.0120.00316.97
8.1.90.0080.00817.10
8.1.80.0050.01016.91
8.1.70.0120.00517.12
8.1.60.0140.00317.30
8.1.50.0140.00517.07
8.1.40.0030.00617.48
8.1.30.0140.00317.33
8.1.20.0120.00617.40
8.1.10.0190.00017.21
8.1.00.0060.01217.18

preferences:
32.23 ms | 403 KiB | 5 Q