3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'smiles.gif', 'kittens.jpg', 'biscuits.png', 'butthead.jpg', ]; $bad_words = ['beavis', 'butthead', 'winehouse']; $bad_extensions = ['.gif', '.tiff']; $branches = implode( '|', array_merge( $bad_words, array_map( fn($v) => preg_quote($v, '/') . '$', $bad_extensions ) ) ); var_export(preg_grep("/$branches/i", $array, PREG_GREP_INVERT));

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.0100.00920.15
8.5.00.0100.01120.29
8.4.160.0130.00923.86
8.4.150.0020.00114.05
8.4.140.0140.00717.52
8.4.130.0050.00520.50
8.4.120.0110.00822.27
8.4.110.0140.00618.84
8.4.100.0160.00420.39
8.4.90.0130.00820.58
8.4.80.0140.00618.21
8.4.70.0050.00318.19
8.4.60.0080.01018.68
8.4.50.0110.00717.70
8.4.40.0030.01618.04
8.4.30.0080.00018.43
8.4.20.0100.01017.90
8.4.10.0170.00321.82
8.3.290.0120.00820.93
8.3.280.0120.01118.35
8.3.270.0140.00816.98
8.3.260.0130.00816.72
8.3.250.0090.01019.05
8.3.240.0130.00516.67
8.3.230.0090.01016.42
8.3.220.0130.00819.00
8.3.210.0130.00516.76
8.3.200.0100.00216.76
8.3.190.0040.00619.09
8.3.180.0070.00216.96
8.3.170.0140.00417.04
8.3.160.0110.00016.59
8.3.150.0070.01120.88
8.3.140.0060.00316.55
8.3.130.0050.00318.62
8.3.120.0060.00918.97
8.3.110.0070.00320.94
8.3.100.0080.00824.06
8.3.90.0090.00626.77
8.3.80.0060.00318.30
8.3.70.0090.00916.75
8.3.60.0150.00018.30
8.3.50.0170.00320.21
8.3.40.0110.00619.92
8.3.30.0070.01418.72
8.3.20.0080.00024.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.300.0120.00818.20
8.2.290.0070.00320.20
8.2.280.0100.00318.45
8.2.270.0080.01117.27
8.2.260.0080.00018.68
8.2.250.0120.00616.67
8.2.240.0060.00916.86
8.2.230.0030.00622.58
8.2.220.0030.00537.54
8.2.210.0120.00326.77
8.2.200.0030.00616.63
8.2.190.0070.01416.75
8.2.180.0130.00325.92
8.2.170.0110.00422.96
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0000.00922.20
8.2.100.0060.00617.69
8.2.90.0040.00419.14
8.2.80.0000.00818.04
8.2.70.0060.00317.88
8.2.60.0080.00017.80
8.2.50.0050.00318.07
8.2.40.0060.00320.07
8.2.30.0040.00418.09
8.2.20.0080.00019.33
8.2.10.0050.00218.26
8.2.00.0080.00019.21
8.1.340.0110.00919.93
8.1.330.0100.00722.04
8.1.320.0040.00516.25
8.1.310.0120.00616.71
8.1.300.0030.00620.25
8.1.290.0000.00930.84
8.1.280.0110.00425.92
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.77
8.1.230.0110.00022.20
8.1.220.0030.00617.78
8.1.210.0040.00418.77
8.1.200.0100.00317.48
8.1.190.0040.00417.48
8.1.180.0080.00018.10
8.1.170.0040.00418.69
8.1.160.0080.00018.84
8.1.150.0000.00918.82
8.1.140.0030.00617.60
8.1.130.0030.00319.08
8.1.120.0000.00817.53
8.1.110.0000.00817.55
8.1.100.0040.00417.59
8.1.90.0120.00617.46
8.1.80.0070.01117.53
8.1.70.0080.01117.60
8.1.60.0160.00417.65
8.1.50.0160.00417.48
8.1.40.0090.01417.67
8.1.30.0120.00717.78
8.1.20.0080.01117.69
8.1.10.0060.01217.51
8.1.00.0190.00017.55
8.0.300.0000.00918.77
8.0.290.0000.00916.63
8.0.280.0050.00520.20
8.0.270.0040.00418.19
8.0.260.0030.00518.37
8.0.250.0040.00417.00
8.0.240.0000.00816.93
8.0.230.0000.01017.13
8.0.220.0060.01117.03
8.0.210.0080.00816.91
8.0.200.0110.00416.98
8.0.190.0120.00416.99
8.0.180.0160.00016.92
8.0.170.0110.00417.03
8.0.160.0040.01216.89
8.0.150.0130.00316.81
8.0.140.0150.00416.91
8.0.130.0060.01117.01
8.0.120.0080.00816.90
8.0.110.0090.00416.80
8.0.100.0090.00216.82
8.0.90.0130.00016.91
8.0.80.0030.00916.82
8.0.70.0090.00716.87
8.0.60.0070.00716.87
8.0.50.0050.00516.90
8.0.30.0090.00316.89
8.0.20.0040.00716.77
8.0.10.0110.00017.07
7.4.330.0030.00316.78
7.4.320.0000.01016.62
7.4.300.0180.00016.73
7.4.290.0070.00416.78
7.4.280.0050.00716.54
7.4.270.0080.00416.48
7.4.260.0020.00816.59
7.4.250.0030.00916.45
7.4.240.0070.00416.46
7.4.230.0060.00716.64
7.4.220.0090.00216.43
7.4.210.0120.00016.57
7.4.200.0110.00016.72
7.4.190.0040.00716.63
7.4.180.0040.00816.67
7.4.160.0040.00716.50
7.4.150.0050.00516.53
7.4.140.0110.00316.67
7.4.130.0070.00416.55
7.4.120.0040.00916.54
7.4.110.0060.00616.67
7.4.100.0070.00416.41
7.4.90.0040.00716.59
7.4.80.0110.00016.75
7.4.70.0110.00016.30
7.4.60.0030.00616.64
7.4.50.0050.00516.75
7.4.40.0050.00516.54
7.4.30.0050.00516.68
7.4.20.0050.00516.49
7.4.10.0040.00716.64
7.4.00.0120.00016.39

preferences:
146.06 ms | 403 KiB | 5 Q