3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_flip(['foo_bar', 'foo_baz', 'foo_bat', 'bar_baz', 'bar_bat', 'bat_bat']); var_export($array); echo "\n"; var_export(array_filter($array, function($k) { return strpos($k, "_bat") !== FALSE; }, ARRAY_FILTER_USE_KEY));

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.3.60.0070.01118.18
8.3.50.0000.01418.23
8.3.40.0070.01418.68
8.3.30.0090.00918.63
8.3.20.0080.00021.86
8.3.10.0070.00021.90
8.3.00.0040.00417.90
8.2.180.0030.01718.13
8.2.170.0100.00722.96
8.2.160.0090.00920.41
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0030.00626.16
8.2.120.0070.00026.16
8.2.110.0060.00320.84
8.2.100.0070.00717.59
8.2.90.0040.00419.46
8.2.80.0000.00920.26
8.2.70.0080.00017.63
8.2.60.0050.00317.50
8.2.50.0060.00317.93
8.2.40.0040.00418.05
8.2.30.0030.00319.51
8.2.20.0040.00417.99
8.2.10.0050.00217.94
8.2.00.0080.00018.05
8.1.280.0080.00625.92
8.1.270.0040.00423.82
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0080.00022.14
8.1.230.0080.00320.88
8.1.220.0040.00417.74
8.1.210.0030.00618.97
8.1.200.0060.00317.34
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0040.00417.65
8.1.160.0000.00718.95
8.1.150.0040.00619.02
8.1.140.0050.00317.63
8.1.130.0000.00719.19
8.1.120.0060.00317.36
8.1.110.0040.00417.48
8.1.100.0020.00517.43
8.1.90.0040.00417.53
8.1.80.0040.00417.37
8.1.70.0030.00317.46
8.1.60.0080.00017.61
8.1.50.0040.00417.48
8.1.40.0080.00017.54
8.1.30.0000.00917.59
8.1.20.0000.00817.61
8.1.10.0000.00817.53
8.1.00.0040.00417.43
8.0.300.0040.00420.00
8.0.290.0040.00416.63
8.0.280.0070.00018.30
8.0.270.0070.00017.13
8.0.260.0030.00316.81
8.0.250.0050.00316.96
8.0.240.0000.00716.79
8.0.230.0040.00416.80
8.0.220.0030.00616.80
8.0.210.0000.00716.75
8.0.200.0000.00716.92
8.0.190.0070.00016.98
8.0.180.0030.00416.89
8.0.170.0000.00816.79
8.0.160.0000.00717.00
8.0.150.0030.00316.81
8.0.140.0040.00416.74
8.0.130.0060.00013.25
8.0.120.0070.00016.84
8.0.110.0040.00416.88
8.0.100.0080.00016.81
8.0.90.0040.00416.78
8.0.80.0070.00716.84
8.0.70.0000.00716.69
8.0.60.0000.00716.80
8.0.50.0040.00416.95
8.0.30.0070.01117.24
8.0.20.0150.00317.40
8.0.10.0040.00416.88
8.0.00.0140.00516.89
7.4.330.0050.00015.55
7.4.320.0030.00316.57
7.4.300.0060.00016.64
7.4.290.0030.00316.49
7.4.280.0040.00416.35
7.4.270.0000.00716.46
7.4.260.0030.00616.38
7.4.250.0000.00716.37
7.4.240.0030.00316.50
7.4.230.0070.00016.39
7.4.220.0000.00816.66
7.4.210.0100.00416.48
7.4.200.0000.00716.35
7.4.140.0080.00917.86
7.4.130.0070.01016.59
7.4.120.0100.00816.48
7.4.110.0060.01216.34
7.4.100.0090.00916.39
7.4.90.0120.00416.40
7.4.80.0080.01319.39
7.4.70.0100.00716.34
7.4.60.0060.01216.57
7.4.50.0090.00616.44
7.4.40.0110.00516.60
7.4.00.0030.00914.96
7.3.330.0030.00313.09
7.3.320.0090.00013.19
7.3.310.0030.00316.22
7.3.300.0030.00316.24
7.3.290.0030.00316.18
7.3.280.0080.01216.21
7.3.260.0100.01016.45
7.3.240.0080.00916.46
7.3.230.0100.00716.60
7.3.210.0090.01216.38
7.3.200.0120.00716.21
7.3.190.0070.01116.57
7.3.180.0090.00916.50
7.3.170.0030.01216.47
7.3.160.0120.00316.55
7.3.10.0080.00016.48
7.3.00.0070.00716.32
7.2.330.0070.01016.52
7.2.320.0120.01316.52
7.2.310.0120.00616.73
7.2.300.0100.01316.52
7.2.290.0060.01016.73
7.2.130.0040.01116.31
7.2.120.0040.01416.21
7.2.110.0000.01316.73
7.2.100.0030.00916.46
7.2.90.0090.00616.57
7.2.80.0060.00916.42
7.2.70.0000.01316.60
7.2.60.0050.01116.48
7.2.50.0070.00616.63
7.2.40.0590.01117.51
7.2.30.0610.01017.29
7.2.20.0650.01017.39
7.2.10.0600.00817.16
7.2.00.0110.01117.28
7.1.250.0100.00015.25
7.1.200.0030.01215.50
7.1.160.0930.01516.66
7.1.150.0630.01316.56
7.1.140.0510.01116.66
7.1.130.1160.01216.71
7.1.120.1260.01516.71
7.1.110.1080.00815.91
7.1.100.1270.01216.10
7.1.90.1220.01216.13
7.1.80.1230.01316.04
7.1.70.1200.01114.97
7.1.60.1220.01333.32
7.1.50.1140.01332.95
7.1.40.1060.01832.63
7.1.30.1150.01532.56
7.1.20.1260.01632.81
7.1.10.1340.01314.57
7.1.00.1200.01314.96

preferences:
75.98 ms | 400 KiB | 5 Q