3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haystacks = [ ["Mac", "NT"], ["Irix", "Linux"] ]; $needle = 'Irix'; var_export( array_any( $haystacks, fn($haystack) => in_array($needle, $haystack) ) );

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.0150.00524.07
8.4.110.0050.00422.52
8.4.100.0110.00917.65
8.4.90.0100.01018.44
8.4.80.0140.00617.63
8.4.70.0060.00317.78
8.4.60.0060.00218.02
8.4.50.0060.00518.72
8.4.40.0040.00417.53
8.4.30.0100.01020.24
8.4.20.0130.00719.02
8.4.10.0030.00619.23
8.3.250.0130.00618.95
8.3.240.0100.00916.80
8.3.230.0130.00716.60
8.3.220.0110.00816.92
8.3.210.0120.00618.46
8.3.200.0050.00416.46
8.3.190.0130.00716.92
8.3.180.0040.00418.93
8.3.170.0140.00418.52
8.3.160.0100.01018.44
8.3.150.0060.01317.21
8.3.140.0030.00618.46
8.3.130.0090.00018.50
8.3.120.0140.00518.22
8.3.110.0130.00318.23
8.3.100.0100.01018.20
8.3.90.0150.00518.25
8.3.80.0150.00516.47
8.3.70.0190.00316.69
8.3.60.0140.00916.40
8.3.50.0170.00416.56
8.3.40.0130.00417.39
8.3.30.0140.00417.39
8.3.20.0190.00017.23
8.3.10.0130.00317.12
8.3.00.0050.00519.02
8.2.290.0040.00420.52
8.2.280.0130.00616.52
8.2.270.0060.00916.80
8.2.260.0140.00417.15
8.2.250.0170.00016.59
8.2.240.0140.00616.34
8.2.230.0160.00316.26
8.2.220.0140.00516.83
8.2.210.0160.00316.84
8.2.200.0200.00018.22
8.2.190.0150.00416.37
8.2.180.0130.00416.53
8.2.170.0160.00419.32
8.2.160.0140.00517.59
8.2.150.0190.00017.51
8.2.140.0220.00017.25
8.2.130.0140.00717.41
8.2.120.0130.00617.30
8.2.110.0150.00417.36
8.2.100.0160.00317.31
8.2.90.0140.00617.09
8.2.80.0140.00717.54
8.2.70.0130.00817.54
8.2.60.0120.00617.27
8.2.50.0140.00717.11
8.2.40.0180.00317.41
8.2.30.0170.00017.46
8.2.20.0120.00417.33
8.2.10.0100.00717.46
8.2.00.0100.00719.19
8.1.330.0110.00822.05
8.1.320.0140.00517.98
8.1.310.0070.00016.88
8.1.300.0120.00616.27
8.1.290.0150.00316.14
8.1.280.0130.00417.85
8.1.270.0130.00617.13
8.1.260.0240.00016.88
8.1.250.0150.00517.02
8.1.240.0170.00017.10
8.1.230.0160.00017.21
8.1.220.0080.00817.14
8.1.210.0110.00816.91
8.1.200.0120.00616.93
8.1.190.0120.00618.56
8.1.180.0130.00316.93
8.1.170.0160.00016.80
8.1.160.0170.00016.90
8.1.150.0160.00216.95
8.1.140.0170.00017.04
8.1.130.0110.00717.01
8.1.120.0080.00817.06
8.1.110.0140.00317.03
8.1.100.0140.00616.95
8.1.90.0050.01116.84
8.1.80.0130.00416.85
8.1.70.0170.00016.85
8.1.60.0120.00617.18
8.1.50.0120.00816.75
8.1.40.0130.00617.12
8.1.30.0150.00517.42
8.1.20.0160.00317.43
8.1.10.0150.00617.38
8.1.00.0200.00016.88

preferences:
27.32 ms | 403 KiB | 5 Q