3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'بيتر هو صبي.'; // arabic if(mb_ereg('[\x{0600}-\x{06FF}]', $text)) // arabic range //if(mb_ereg('[\x{0590}-\x{05FF}]', $text)) // hebrew range { echo "Text has some arabic/hebrew characters."; } else { echo "Text doesnt have arabic/hebrew characters."; }

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.0040.01118.68
8.3.50.0150.00322.05
8.3.40.0070.01418.79
8.3.30.0120.00918.56
8.3.20.0060.00319.15
8.3.10.0030.00521.91
8.3.00.0050.00319.25
8.2.180.0040.01118.29
8.2.170.0150.00622.96
8.2.160.0140.00020.35
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0150.00426.16
8.2.120.0040.00421.03
8.2.110.0060.00322.29
8.2.100.0130.00317.91
8.2.90.0080.00017.91
8.2.80.0070.00019.16
8.2.70.0000.01017.63
8.2.60.0040.00417.93
8.2.50.0070.00318.07
8.2.40.0040.00418.06
8.2.30.0000.00919.90
8.2.20.0000.00718.17
8.2.10.0050.00218.08
8.2.00.0040.00417.58
8.1.280.0170.00325.92
8.1.270.0070.00022.37
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0070.00319.20
8.1.230.0090.00320.97
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00917.13
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0000.00818.78
8.1.160.0020.00518.89
8.1.150.0040.00420.23
8.1.140.0040.00419.50
8.1.130.0000.00717.95
8.1.120.0050.00217.59
8.1.110.0000.00717.50
8.1.100.0070.00017.57
8.1.90.0000.00817.43
8.1.80.0000.00817.54
8.1.70.0040.00417.57
8.1.60.0000.00717.65
8.1.50.0090.00017.62
8.1.40.0040.00417.54
8.1.30.0040.00417.75
8.1.20.0040.00417.65
8.1.10.0000.00817.64
8.1.00.0000.00717.58
8.0.300.0060.00320.16
8.0.290.0080.00016.75
8.0.280.0070.00018.47
8.0.270.0040.00417.38
8.0.260.0000.00617.38
8.0.250.0000.00717.05
8.0.240.0000.00617.04
8.0.230.0000.00716.99
8.0.220.0000.00716.92
8.0.210.0030.00316.96
8.0.200.0050.00517.02
8.0.190.0110.00017.01
8.0.180.0080.00017.00
8.0.170.0000.00816.91
8.0.160.0060.00316.93
8.0.150.0030.00316.92
8.0.140.0000.00816.81
8.0.130.0030.00313.38
8.0.120.0030.00516.95
8.0.110.0040.00417.05
8.0.100.0040.00417.06
8.0.90.0000.00716.82
8.0.80.0080.00816.86
8.0.70.0040.00416.81
8.0.60.0000.00716.96
8.0.50.0030.00316.96
8.0.30.0070.01017.18
8.0.20.0090.01017.40
8.0.10.0070.00016.88
8.0.00.0110.00616.77
7.4.330.0050.00015.55
7.4.320.0030.00616.70
7.4.300.0060.00016.58
7.4.290.0030.00316.73
7.4.280.0040.00416.56
7.4.270.0050.00516.61
7.4.260.0040.00416.63
7.4.250.0040.00416.70
7.4.240.0040.00416.73
7.4.230.0070.00016.75
7.4.220.0090.00916.66
7.4.210.0100.01016.68
7.4.200.0000.00816.36
7.4.160.0060.01116.51
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0080.00916.51
7.4.120.0090.00816.61
7.4.110.0110.00716.74
7.4.100.0090.01116.62
7.4.90.0070.01016.29
7.4.80.0060.01219.39
7.4.70.0070.01016.34
7.4.60.0120.00416.42
7.4.50.0130.00316.48
7.4.40.0090.00616.52
7.4.30.0070.01016.57
7.4.00.0090.00915.05
7.3.330.0030.00313.11
7.3.320.0050.00013.14
7.3.310.0030.00316.18
7.3.300.0030.00316.26
7.3.290.0100.00316.26
7.3.280.0110.00816.29
7.3.270.0090.01117.40
7.3.260.0040.01616.37
7.3.250.0140.00716.37
7.3.240.0080.01116.31
7.3.230.0120.00816.48
7.3.210.0180.00616.21
7.3.200.0130.00416.35
7.3.190.0060.01016.38
7.3.180.0120.00616.34
7.3.170.0090.00816.34
7.3.160.0140.00716.36
7.3.120.0160.00314.66
7.3.110.0070.01014.73
7.3.100.0030.01514.47
7.3.90.0000.01414.87
7.3.80.0080.00814.68
7.3.70.0070.01314.84
7.3.60.0040.00414.61
7.3.50.0030.00914.80
7.3.40.0100.00314.54
7.3.30.0040.01414.81
7.3.20.0000.01416.66
7.3.10.0040.01116.74
7.3.00.0070.00416.71
7.2.330.0100.00716.28
7.2.320.0070.01016.21
7.2.310.0130.00616.24
7.2.300.0100.01016.37
7.2.290.0060.00916.45
7.2.250.0070.01014.69
7.2.240.0070.01315.09
7.2.230.0070.00315.07
7.2.220.0000.01314.71
7.2.210.0100.00314.77
7.2.200.0100.01014.73
7.2.190.0030.01114.59
7.2.180.0030.01614.84
7.2.170.0090.00915.09
7.2.60.0100.00316.68
7.2.00.0030.01019.54
7.1.330.0040.01115.56
7.1.320.0080.00415.57
7.1.310.0000.01615.92
7.1.300.0030.01015.82
7.1.290.0040.01115.65
7.1.280.0090.00615.87
7.1.270.0060.00915.66
7.1.260.0040.01115.63
7.1.200.0040.00715.59
7.1.100.0000.01418.03
7.1.70.0060.00617.01
7.1.60.0050.00517.29
7.1.50.0040.01816.84
7.1.00.0530.07720.65
7.0.200.0000.00816.66
7.0.130.0370.06720.23
7.0.120.0370.07320.30
7.0.110.0430.05320.27
7.0.100.0370.06720.30
7.0.90.0430.07720.17
7.0.80.0300.06720.18
7.0.70.0370.08020.38
7.0.60.0470.05320.16
7.0.50.0300.07020.19
7.0.40.1070.05320.25
7.0.30.0700.06320.33
7.0.20.0570.07020.29
7.0.10.0600.07020.31
7.0.00.0330.09320.22
5.6.280.0130.07720.89
5.6.270.0170.07721.07
5.6.260.0130.06021.04
5.6.250.0170.06021.12
5.6.240.0070.06321.02
5.6.230.0130.07721.12
5.6.220.0100.08021.05
5.6.210.0100.06020.83
5.6.200.0200.05720.88
5.6.190.0300.06321.02
5.6.180.0170.06721.06
5.6.170.0170.05020.91
5.6.160.0170.07721.05
5.6.150.0130.07020.88
5.6.140.0200.07320.80
5.6.130.0230.07321.01
5.6.120.0300.06020.88
5.6.110.0130.08020.84
5.6.100.0170.08320.84
5.6.90.0200.06320.79
5.6.80.0130.06320.41
5.6.70.0200.06720.41
5.6.60.0130.08020.25
5.6.50.0170.06720.25
5.6.40.0170.05320.09
5.6.30.0070.07020.18
5.6.20.0170.05320.26
5.6.10.0070.06720.41
5.6.00.0200.04720.35

preferences:
57.19 ms | 401 KiB | 5 Q