3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( "[", " [", " [", "Test", "Server1", null, "Server2", null, "", "stopped", " ]", " ]", "]" ); $res = preg_grep("/^\h*[][]\h*$/", $array, PREG_GREP_INVERT); var_export($res);

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.20.0070.01019.48
8.5.10.0060.01219.49
8.5.00.0100.01319.92
8.4.170.0120.01020.45
8.4.160.0160.00723.96
8.4.150.0030.00014.05
8.4.140.0130.00817.47
8.4.130.0150.00518.91
8.4.120.0070.00924.16
8.4.110.0100.00918.75
8.4.100.0140.00717.86
8.4.90.0100.00318.42
8.4.80.0110.01017.89
8.4.70.0100.01118.32
8.4.60.0120.00919.07
8.4.50.0060.01419.44
8.4.40.0040.01819.88
8.4.30.0060.00320.50
8.4.20.0070.00418.01
8.4.10.0130.00618.06
8.3.300.0090.01120.85
8.3.290.0100.01220.82
8.3.280.0100.01018.50
8.3.270.0130.00816.83
8.3.260.0110.01116.97
8.3.250.0100.00618.75
8.3.240.0030.00417.21
8.3.230.0040.00516.95
8.3.220.0090.00717.30
8.3.210.0100.01016.72
8.3.200.0050.00416.57
8.3.190.0100.00717.30
8.3.180.0050.00318.64
8.3.170.0050.00316.88
8.3.160.0080.00018.47
8.3.150.0130.00617.11
8.3.140.0070.01118.55
8.3.130.0140.00716.83
8.3.120.0070.01016.91
8.3.110.0000.00916.63
8.3.100.0060.00316.53
8.3.90.0030.00526.77
8.3.80.0100.00017.97
8.3.70.0130.00716.75
8.3.60.0170.00318.68
8.3.50.0100.00624.57
8.3.40.0080.00818.93
8.3.30.0070.00718.83
8.3.20.0080.00020.87
8.3.10.0000.00820.22
8.3.00.0040.00420.50
8.2.300.0090.01021.94
8.2.290.0080.00320.63
8.2.280.0060.00318.67
8.2.270.0080.01216.73
8.2.260.0140.00320.41
8.2.250.0040.00416.58
8.2.240.0060.00318.89
8.2.230.0030.00520.94
8.2.220.0030.00624.06
8.2.210.0040.00426.77
8.2.200.0070.00416.75
8.2.190.0090.00616.74
8.2.180.0130.00716.63
8.2.170.0110.00422.96
8.2.160.0110.00322.26
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0080.00826.16
8.2.110.0070.00321.00
8.2.100.0060.00617.97
8.2.90.0060.00319.23
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0080.00017.63
8.2.50.0080.00018.10
8.2.40.0060.00319.34
8.2.30.0050.00319.14
8.2.20.0040.00418.06
8.2.10.0040.00420.70
8.2.00.0030.00519.38
8.1.340.0110.01117.91
8.1.330.0110.00721.96
8.1.320.0120.00716.41
8.1.310.0080.00016.81
8.1.300.0050.00517.80
8.1.290.0090.00018.88
8.1.280.0110.00725.92
8.1.270.0080.00022.52
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0030.00722.61
8.1.230.0000.01119.04
8.1.220.0000.00817.75
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0080.00017.39
8.1.180.0000.00819.09
8.1.170.0040.00418.71
8.1.160.0000.00719.09
8.1.150.0000.00718.89
8.1.140.0000.00722.06
8.1.130.0050.00320.09
8.1.120.0000.00717.53
8.1.110.0000.00717.59
8.1.100.0030.00517.55
8.1.90.0100.00017.55
8.1.80.0050.00317.41
8.1.70.0000.00717.45
8.1.60.0040.00417.56
8.1.50.0000.00817.56
8.1.40.0040.00417.49
8.1.30.0080.00017.55
8.1.20.0040.00417.64
8.1.10.0030.00917.45
8.1.00.0000.00717.57
8.0.300.0070.00018.77
8.0.290.0090.00016.88
8.0.280.0000.00718.26
8.0.270.0000.00817.07
8.0.260.0080.00019.89
8.0.250.0060.00016.99
8.0.240.0070.00016.92
8.0.230.0060.00316.93
8.0.220.0030.00316.90
8.0.210.0070.00017.00
8.0.200.0030.00317.04
8.0.190.0060.00316.91
8.0.180.0000.00816.86
8.0.170.0090.00016.95
8.0.160.0070.00017.01
8.0.150.0070.00016.88
8.0.140.0050.00316.84
8.0.130.0000.00613.36
8.0.120.0070.00017.02
8.0.110.0040.00416.93
8.0.100.0040.00417.00
8.0.90.0000.00816.89
8.0.80.0070.00917.04
8.0.70.0040.00416.99
8.0.60.0000.00717.09
8.0.50.0080.00017.01
8.0.30.0100.00617.07
8.0.20.0060.01217.32
8.0.10.0040.00417.14
8.0.00.0120.00616.79
7.4.330.0000.00515.55
7.4.320.0040.00416.84
7.4.300.0030.00316.68
7.4.290.0070.00016.77
7.4.280.0090.00016.71
7.4.270.0030.00616.55
7.4.260.0030.00313.39
7.4.250.0070.00016.66
7.4.240.0030.00516.72
7.4.230.0070.00016.61
7.4.220.0030.00316.69
7.4.210.0050.01216.66
7.4.200.0000.00716.54
7.4.140.0130.00317.86
7.4.130.0180.00316.64
7.4.120.0070.01016.74
7.4.110.0100.00716.63
7.4.100.0100.01016.64
7.4.90.0030.01416.61
7.4.80.0160.00619.39
7.4.70.0120.00616.55
7.4.60.0090.00816.63
7.4.50.0000.01816.46
7.4.40.0230.00016.40
7.4.00.0110.01514.71
7.3.330.0070.00016.12
7.3.320.0000.00513.14
7.3.310.0050.00216.11
7.3.300.0070.00016.31
7.3.290.0080.00716.34
7.3.280.0070.00716.23
7.3.260.0170.00016.21
7.3.240.0130.00516.42
7.3.230.0030.01416.40
7.3.210.0130.00616.31
7.3.200.0030.01616.59
7.3.190.0110.00616.32
7.3.180.0110.00616.79
7.3.170.0080.00816.25
7.3.160.0060.01216.27
7.3.120.0170.01314.69
7.3.110.0120.01214.90
7.3.100.0110.00814.43
7.3.90.0150.00514.80
7.3.80.0040.01414.28
7.3.70.0140.00514.40
7.3.60.0150.00714.55
7.3.50.0180.00614.59
7.3.40.0100.00714.70
7.3.30.0110.00414.70
7.3.20.0110.01114.77
7.3.10.0180.00314.85
7.3.00.0170.00414.54
7.2.330.0040.01216.64
7.2.320.0060.00916.66
7.2.310.0060.00916.79
7.2.300.0060.01216.72
7.2.290.0040.01216.66
7.2.250.0130.01015.10
7.2.240.0150.01114.54
7.2.230.0110.01014.86
7.2.220.0140.00514.84
7.2.210.0120.00914.88
7.2.200.0100.01114.98
7.2.190.0130.00515.05
7.2.180.0100.00815.13
7.2.170.0110.00814.86
7.1.330.0140.00714.10
7.1.320.0100.01013.94
7.1.310.0120.01013.93
7.1.300.0160.00013.81
7.1.290.0090.01013.75
7.1.280.0040.01213.96
7.1.270.0160.00013.66
7.1.260.0180.00713.98

preferences:
163.56 ms | 403 KiB | 5 Q