3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(!!preg_match('#b' . preg_quote("like", '#') . 'b#i', "I like tea"));

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.1.70.0030.00517.60
8.1.60.0050.00317.66
8.1.50.0030.00517.48
8.1.40.0070.00417.50
8.1.30.0000.00817.66
8.1.20.0000.00717.74
8.1.10.0040.00417.52
8.1.00.0020.00517.53
8.0.200.0000.00717.04
8.0.190.0030.00517.09
8.0.180.0000.00717.01
8.0.170.0000.00816.98
8.0.160.0000.00716.86
8.0.150.0000.00716.93
8.0.140.0040.00416.97
8.0.130.0030.00513.36
8.0.120.0030.00616.87
8.0.110.0080.00016.86
8.0.100.0000.00816.96
8.0.90.0050.00316.87
8.0.80.0100.01016.96
8.0.70.0070.00016.98
8.0.60.0030.00517.04
8.0.50.0040.00416.94
8.0.30.0150.00517.35
8.0.20.0100.00817.48
8.0.10.0040.00417.07
8.0.00.0100.00716.94
7.4.300.0000.00716.65
7.4.290.0000.00816.72
7.4.280.0000.00816.74
7.4.270.0070.00016.66
7.4.260.0000.01016.71
7.4.250.0030.00316.58
7.4.240.0000.00716.54
7.4.230.0030.00516.54
7.4.220.0070.01116.73
7.4.210.0100.00816.74
7.4.200.0030.00316.50
7.4.160.0110.01116.56
7.4.150.0090.00917.40
7.4.140.0070.01017.86
7.4.130.0100.00916.58
7.4.120.0090.00716.70
7.4.110.0090.00916.78
7.4.100.0120.00816.60
7.4.90.0090.00916.52
7.4.80.0100.00719.39
7.4.70.0120.00316.46
7.4.60.0130.00916.53
7.4.50.0040.01116.33
7.4.40.0080.00816.58
7.4.30.0070.01016.66
7.4.00.0060.01015.33
7.3.330.0020.00213.32
7.3.320.0000.00513.25
7.3.310.0030.00316.21
7.3.300.0050.00216.30
7.3.290.0020.00516.29
7.3.280.0080.00816.36
7.3.270.0110.00717.40
7.3.260.0130.00516.75
7.3.250.0050.01316.41
7.3.240.0070.01216.55
7.3.230.0100.00716.39
7.3.210.0150.00416.36
7.3.200.0150.00616.36
7.3.190.0070.01016.31
7.3.180.0030.01316.72
7.3.170.0110.01116.54
7.3.160.0060.01216.77
7.3.70.0100.00614.91
7.3.60.0070.00714.61
7.3.50.0110.00414.79
7.3.40.0110.00714.84
7.3.30.0160.00614.75
7.3.20.0170.00515.88
7.3.10.0120.00815.57
7.3.00.0080.00716.26
7.2.330.0150.00416.76
7.2.320.0070.01016.71
7.2.310.0150.00716.63
7.2.300.0030.01316.77
7.2.290.0100.00616.72
7.2.200.0120.00314.97
7.2.190.0120.00314.99
7.2.180.0070.01114.93
7.2.170.0130.01014.99
7.2.160.0170.00715.13
7.2.150.0160.00615.70
7.2.140.0140.00715.96
7.2.130.0070.01016.30
7.2.120.0080.00716.37
7.2.110.0080.00716.38
7.2.100.0090.00716.52
7.2.90.0090.00816.44
7.2.80.0100.00616.39
7.2.70.0050.00816.65
7.2.60.0120.00316.66
7.2.50.0100.00716.58
7.2.40.0090.00716.64
7.2.30.0120.00416.52
7.2.20.0120.00416.51
7.2.10.0140.00716.73
7.2.00.0090.00816.61
7.1.300.0030.01315.80
7.1.290.0100.00515.88
7.1.280.0210.00514.96
7.1.270.0090.00814.81
7.1.260.0100.00414.85
7.1.250.0060.00815.27
7.1.240.0070.00815.29
7.1.230.0090.00715.41
7.1.220.0090.00815.24
7.1.210.0100.00715.44
7.1.200.0100.00615.63
7.1.190.0080.00815.44
7.1.180.0120.00315.28
7.1.170.0110.00615.37
7.1.160.0070.00915.37
7.1.150.0090.00915.49
7.1.140.0100.00715.41
7.1.130.0080.00815.45
7.1.120.0200.00715.65
7.1.110.0170.00615.63
7.1.100.0160.00715.75
7.1.90.0170.00715.70
7.1.80.0950.00915.63
7.1.70.0120.00815.84
7.1.60.0200.00922.89
7.1.50.0210.01023.19
7.1.40.0220.01023.07
7.1.30.0170.01423.20
7.1.20.0200.00823.13
7.1.10.0370.00815.46
7.1.00.0130.01616.31
7.0.330.0110.00514.76
7.0.320.0130.00614.93
7.0.310.0130.00515.05
7.0.300.0110.00814.95
7.0.290.0130.00715.01
7.0.280.0110.00815.07
7.0.270.0150.00615.11
7.0.260.0120.00515.01
7.0.250.0200.00715.28
7.0.240.0200.00715.53
7.0.230.0230.00815.41
7.0.220.0190.00715.56
7.0.210.0190.00415.28
7.0.200.0760.00914.93
7.0.190.0210.00815.26
7.0.180.0170.00715.13
7.0.170.0120.01015.25
7.0.160.0170.00915.12
7.0.150.0130.00915.09
7.0.140.0170.00815.13
7.0.130.0180.00815.26
7.0.120.0130.01616.12
7.0.110.0360.01715.86
7.0.100.0330.01515.84
7.0.90.0120.01716.09
7.0.80.0130.01716.09
7.0.70.0130.01816.05
7.0.60.0110.01716.00
7.0.50.0140.01416.13
7.0.40.0100.01715.85
7.0.30.0100.01715.62
7.0.20.0160.01315.67
7.0.10.0150.01615.67
7.0.00.0140.01415.56
5.6.400.0110.00714.16
5.6.390.0110.00914.40
5.6.380.0060.01014.10
5.6.370.0110.00714.23
5.6.360.0090.01114.05
5.6.350.0110.00914.17
5.6.340.0100.01014.25
5.6.330.0110.00814.24
5.6.320.0110.00814.24
5.6.310.0080.00814.20
5.6.300.0140.02316.06
5.6.290.0130.02216.10
5.6.280.0100.03016.78
5.6.270.0140.02016.08
5.6.260.0090.02616.70
5.6.250.0110.02916.69
5.6.240.0110.02616.73
5.6.230.0100.02916.75
5.6.220.0110.03116.63
5.6.210.0140.02316.71
5.6.200.0120.03016.63
5.6.190.0140.02616.70
5.6.180.0100.02716.63
5.6.170.0090.03016.64
5.6.160.0110.02716.65
5.6.150.0110.02816.68
5.6.140.0130.02716.72
5.6.130.0110.02716.71
5.6.120.0090.03016.63
5.6.110.0090.02916.68
5.6.100.0100.02916.76
5.6.90.0120.02716.70
5.6.80.0080.02816.47
5.6.70.0110.02916.40
5.6.60.0100.03116.38
5.6.50.0100.02916.42
5.6.40.0100.03016.37
5.6.30.0120.02916.49
5.6.20.0120.02816.43
5.6.10.0090.03016.36
5.6.00.0110.02816.41
5.5.380.0100.02614.26
5.5.370.0090.02614.21
5.5.360.0090.02914.23
5.5.350.0080.02614.22
5.5.340.0080.03014.48
5.5.330.0080.02814.48
5.5.320.0120.02414.43
5.5.310.0120.02414.37
5.5.300.0110.02614.46
5.5.290.0110.02714.43
5.5.280.0090.02714.46
5.5.270.0100.02714.50
5.5.260.0100.02814.46
5.5.250.0110.02714.33
5.5.240.0100.02414.21
5.5.230.0110.02214.14
5.5.220.0120.02514.16
5.5.210.0100.02814.14
5.5.200.0120.02714.16
5.5.190.0100.02914.17
5.5.180.0120.02614.05
5.5.170.0090.00712.91
5.5.160.0110.02414.09
5.5.150.0090.02614.19
5.5.140.0110.02514.09
5.5.130.0090.02714.16
5.5.120.0100.02714.12
5.5.110.0090.03014.11
5.5.100.0100.02614.09
5.5.90.0120.02414.03
5.5.80.0100.02514.04
5.5.70.0120.02814.05
5.5.60.0100.02513.96
5.5.50.0100.02914.17
5.5.40.0100.02814.01
5.5.30.0080.02913.99
5.5.20.0080.02814.07
5.5.10.0090.02714.04
5.5.00.0090.02914.05

preferences:
40.96 ms | 406 KiB | 5 Q