3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'abcd,abed,abfd,abgd'; if(preg_match("/ab.d/",$str ,$matches) !== false){ // check any match found or not echo "match found:".$matches[0]; // when found print that match }//after printing execution will stops successfully. ?>

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.70.0090.00618.20
8.3.60.0030.01318.45
8.3.50.0100.00716.80
8.3.40.0040.01419.07
8.3.30.0060.00918.79
8.3.20.0030.00520.71
8.3.10.0080.00023.52
8.3.00.0030.00622.55
8.2.190.0130.00718.42
8.2.180.0070.00718.48
8.2.170.0120.00322.96
8.2.160.0110.00422.25
8.2.150.0090.00024.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00019.89
8.2.110.0090.00020.30
8.2.100.0090.00317.97
8.2.90.0060.00317.97
8.2.80.0000.00922.30
8.2.70.0030.00517.88
8.2.60.0080.00017.75
8.2.50.0000.00817.75
8.2.40.0000.01117.93
8.2.30.0050.00319.25
8.2.20.0000.00718.14
8.2.10.0000.00719.34
8.2.00.0000.00718.08
8.1.280.0110.00725.92
8.1.270.0060.00920.25
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.81
8.1.230.0090.00322.13
8.1.220.0000.00817.74
8.1.210.0000.00918.91
8.1.200.0060.00317.36
8.1.190.0000.00817.35
8.1.180.0030.00718.10
8.1.170.0040.00417.62
8.1.160.0040.00418.81
8.1.150.0030.00618.84
8.1.140.0040.00420.28
8.1.130.0050.00217.44
8.1.120.0070.00017.43
8.1.110.0050.00317.43
8.1.100.0040.00417.51
8.1.90.0040.00417.45
8.1.80.0000.00817.50
8.1.70.0040.00417.55
8.1.60.0000.00817.63
8.1.50.0110.00017.58
8.1.40.0080.00017.48
8.1.30.0040.00417.71
8.1.20.0000.00817.69
8.1.10.0000.00717.66
8.1.00.0040.00417.64
8.0.300.0040.00419.94
8.0.290.0060.00316.88
8.0.280.0000.00718.45
8.0.270.0000.00817.16
8.0.260.0000.00716.96
8.0.250.0040.00317.11
8.0.240.0070.00017.06
8.0.230.0070.00017.08
8.0.220.0030.00316.99
8.0.210.0030.00617.02
8.0.200.0000.00717.10
8.0.190.0000.00817.05
8.0.180.0040.00416.93
8.0.170.0040.00416.93
8.0.160.0040.00416.96
8.0.150.0000.00716.96
8.0.140.0060.00316.92
8.0.130.0060.00013.46
8.0.120.0000.00716.88
8.0.110.0000.00716.93
8.0.100.0050.00216.85
8.0.90.0040.00417.00
8.0.80.0030.01216.93
8.0.70.0050.00217.02
8.0.60.0000.00717.08
8.0.50.0070.00016.84
8.0.30.0090.00817.18
8.0.20.0110.00817.40
8.0.10.0050.00217.12
8.0.00.0110.00717.01
7.4.330.0020.00215.55
7.4.320.0030.00316.68
7.4.300.0000.00716.80
7.4.290.0080.00016.77
7.4.280.0040.00416.75
7.4.270.0000.00716.75
7.4.260.0030.00616.65
7.4.250.0000.00716.60
7.4.240.0030.00516.57
7.4.230.0040.00416.70
7.4.220.0040.00416.54
7.4.210.0090.00916.75
7.4.200.0040.00416.68
7.4.160.0060.01116.56
7.4.140.0090.01517.86
7.4.130.0180.00016.77
7.4.120.0150.00616.76
7.4.110.0110.00716.65
7.4.100.0180.00016.81
7.4.90.0140.00416.56
7.4.80.0100.01319.39
7.4.70.0120.00316.49
7.4.60.0030.01316.90
7.4.50.0080.00516.54
7.4.40.0150.00716.59
7.4.00.0040.01115.03
7.3.330.0000.00513.27
7.3.320.0000.00613.25
7.3.310.0070.00016.38
7.3.300.0000.00716.43
7.3.290.0000.00616.37
7.3.280.0110.00716.29
7.3.260.0110.00716.46
7.3.240.0090.00716.51
7.3.230.0120.00616.59
7.3.210.0040.01516.39
7.3.200.0100.01016.53
7.3.190.0130.01016.39
7.3.180.0110.00716.46
7.3.170.0070.01016.49
7.3.160.0040.01216.41
7.3.100.0120.00614.55
7.3.90.0220.00714.72
7.3.80.0140.00414.87
7.3.70.0090.00714.76
7.3.60.0080.00814.75
7.3.50.0090.00814.79
7.3.40.0070.00914.74
7.3.30.0100.00614.73
7.3.20.0730.00815.24
7.3.10.0690.00815.27
7.3.00.0630.00915.31
7.2.330.0180.00316.70
7.2.320.0060.01216.77
7.2.310.0040.01416.73
7.2.300.0070.01116.75
7.2.290.0030.01916.84
7.2.230.0060.00915.26
7.2.220.0130.00915.16
7.2.210.0100.00815.01
7.2.200.0090.00815.06
7.2.190.0080.00915.01
7.2.180.0130.00615.06
7.2.170.0090.00815.04
7.2.160.0100.00715.10
7.2.150.0640.00715.60
7.2.140.0670.00915.60
7.2.130.0670.00815.56
7.2.120.0700.00915.53
7.2.110.0670.00915.61
7.2.100.0830.01015.59
7.2.90.0740.00815.63
7.2.80.0670.01015.72
7.2.70.0850.00715.60
7.2.60.0780.00815.57
7.2.50.0780.00815.61
7.2.40.0870.00815.63
7.2.30.0870.01015.62
7.2.20.0850.00815.62
7.2.10.0820.00815.64
7.2.00.0690.00715.57
7.1.320.0180.00814.31
7.1.310.0220.00614.43
7.1.300.0180.00814.54
7.1.290.0150.00814.59
7.1.280.0170.00714.56
7.1.270.0740.01014.39
7.1.260.0250.00914.55
7.1.250.0630.00714.41

preferences:
29.6 ms | 401 KiB | 5 Q