3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array( 'index1' => 'html', 'index2' => 'html', 'index3' => 'slide', 'index4' => 'tab', 'index5' => array(123), ); $lookfor = array('slide', 'tab'); var_export(array_filter($options, fn($v) => in_array($v, $lookfor)));

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.00.0090.01119.73
8.4.150.0020.00014.05
8.4.140.0100.01017.39
8.4.130.0110.01018.82
8.4.120.0070.01224.10
8.4.110.0110.00920.27
8.4.100.0120.00818.88
8.4.90.0110.00820.65
8.4.80.0020.00720.51
8.4.70.0050.00417.91
8.4.60.0070.00918.96
8.4.50.0120.00618.67
8.4.40.0100.01017.45
8.4.30.0330.00320.76
8.4.20.0330.00618.38
8.4.10.0210.00818.46
8.3.280.0100.01018.29
8.3.270.0060.01316.63
8.3.260.0110.00516.62
8.3.250.0130.00519.02
8.3.240.0090.00917.19
8.3.230.0060.00316.47
8.3.220.0050.00219.10
8.3.210.0120.00816.59
8.3.200.0050.00616.66
8.3.190.0100.00817.30
8.3.180.0090.00918.83
8.3.170.0040.01517.07
8.3.160.0110.00918.39
8.3.150.0250.00917.79
8.3.140.0200.00816.49
8.3.130.0230.00516.53
8.3.120.0250.00717.22
8.3.110.0370.00616.48
8.3.100.0350.01216.49
8.3.90.0320.01016.37
8.3.80.0340.00916.61
8.3.70.0370.00816.53
8.3.60.0350.00516.24
8.3.50.0360.00916.45
8.3.40.0340.00617.32
8.3.30.0260.01017.34
8.3.20.0340.00717.57
8.3.10.0300.00817.43
8.3.00.0250.00318.41
8.2.290.0050.00320.22
8.2.280.0120.00820.17
8.2.270.0220.00817.29
8.2.260.0200.00516.72
8.2.250.0190.00316.55
8.2.240.0280.00516.33
8.2.230.0330.00916.64
8.2.220.0300.01016.45
8.2.210.0270.01116.49
8.2.200.0290.00816.36
8.2.190.0240.01516.36
8.2.180.0290.01016.63
8.2.170.0340.01117.40
8.2.160.0370.01017.41
8.2.150.0250.00617.42
8.2.140.0270.00517.47
8.2.130.0350.00617.31
8.2.120.0320.01017.61
8.2.110.0320.00317.29
8.2.100.0240.00717.30
8.2.90.0280.00317.31
8.2.80.0280.00317.26
8.2.70.0230.00717.31
8.2.60.0270.00317.48
8.2.50.0210.00717.43
8.2.40.0250.00317.38
8.2.30.0150.00717.36
8.2.20.0200.00217.10
8.2.10.0170.00317.37
8.2.00.0140.00617.36
8.1.330.0090.01021.92
8.1.320.0070.00716.27
8.1.310.0090.00417.31
8.1.300.0130.00716.10
8.1.290.0170.00915.79
8.1.280.0210.00816.07
8.1.270.0260.00117.07
8.1.260.0250.00717.24
8.1.250.0220.01117.16
8.1.240.0260.00217.21
8.1.230.0250.00517.06
8.1.220.0250.00517.30
8.1.210.0200.00717.09
8.1.200.0190.00917.21
8.1.190.0180.01117.13
8.1.180.0180.01016.88
8.1.170.0180.00917.08
8.1.160.0160.01017.11
8.1.150.0170.00917.22
8.1.140.0230.01017.01
8.1.130.0280.00717.88
8.1.120.0300.00917.04
8.1.110.0240.01217.14
8.1.100.0240.01017.24
8.1.90.0280.00916.94
8.1.80.0310.00717.03
8.1.70.0160.00817.21
8.1.60.0190.00017.37
8.1.50.0190.00717.00
8.1.40.0240.00617.22
8.1.30.0260.00217.24
8.1.20.0190.00617.16
8.1.10.0240.00617.12
8.1.00.0200.01116.84

preferences:
77.27 ms | 403 KiB | 5 Q