3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'descuentoladrillo'; if(preg_match('/descuento/i',$string)){ echo "Simona"; } $string2 = 'descuentobloque de concreto'; if(preg_match('/descuento/i',$string2)){ echo "Simona23"; }

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.40.0130.00318.61
8.3.30.0080.00618.79
8.3.20.0090.00920.34
8.3.10.0040.00421.87
8.3.00.0060.00320.91
8.2.170.0070.00722.96
8.2.160.0070.00722.02
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00322.42
8.2.120.0060.00326.35
8.2.110.0030.00722.16
8.2.100.0110.00417.75
8.2.90.0000.00818.91
8.2.80.0030.00518.04
8.2.70.0030.00517.75
8.2.60.0040.00418.04
8.2.50.0040.00418.10
8.2.40.0030.00620.59
8.2.30.0040.00420.98
8.2.20.0040.00417.93
8.2.10.0070.00018.05
8.2.00.0040.00417.95
8.1.270.0000.00822.19
8.1.260.0030.00626.35
8.1.250.0020.00528.09
8.1.240.0070.00323.84
8.1.230.0000.01122.13
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.01017.48
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.63
8.1.160.0040.00419.02
8.1.150.0040.00420.57
8.1.140.0000.00819.53
8.1.130.0000.00718.90
8.1.120.0000.00817.57
8.1.110.0040.00417.53
8.1.100.0070.00017.55
8.1.90.0000.00717.58
8.1.80.0000.00717.45
8.1.70.0000.00717.55
8.1.60.0040.00417.61
8.1.50.0030.00517.50
8.1.40.0040.00417.63
8.1.30.0040.00417.71
8.1.20.0000.00817.70
8.1.10.0040.00417.49
8.1.00.0000.00717.50
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.32
8.0.270.0080.00017.29
8.0.260.0070.00016.96
8.0.250.0000.00717.02
8.0.240.0030.00616.94
8.0.230.0030.00517.02
8.0.220.0000.00716.94
8.0.210.0030.00316.83
8.0.200.0000.00617.04
8.0.190.0040.00417.06
8.0.180.0040.00416.98
8.0.170.0050.00217.00
8.0.160.0030.00516.92
8.0.150.0040.00416.85
8.0.140.0070.00016.95
8.0.130.0030.00313.36
8.0.120.0070.00016.96
8.0.110.0070.00016.97
8.0.100.0040.00416.83
8.0.90.0030.00316.91
8.0.80.0060.00916.97
8.0.70.0000.00816.77
8.0.60.0000.00816.76
8.0.50.0000.00817.02
8.0.30.0130.00317.27
8.0.20.0070.01217.43
8.0.10.0070.00016.97
8.0.00.0090.00916.97
7.4.330.0050.00015.55
7.4.320.0040.00416.72
7.4.300.0030.00316.64
7.4.290.0060.00016.64
7.4.280.0050.00316.64
7.4.270.0080.00016.61
7.4.260.0030.00313.43
7.4.250.0030.00316.71
7.4.240.0080.00016.72
7.4.230.0030.00316.73
7.4.220.0070.01116.60
7.4.210.0120.00816.64
7.4.200.0030.00316.76
7.4.160.0080.00816.47
7.4.150.0060.01217.40
7.4.140.0130.00817.86
7.4.130.0090.00916.68
7.4.120.0140.00516.51
7.4.110.0030.01316.66
7.4.100.0160.00716.52
7.4.90.0130.00416.55
7.4.80.0120.00519.39
7.4.70.0200.00016.81
7.4.60.0040.01116.45
7.4.50.0060.00916.48
7.4.40.0070.01416.55
7.4.30.0090.01016.56
7.4.00.0030.01415.10
7.3.330.0050.00013.26
7.3.320.0020.00213.21
7.3.310.0080.00016.24
7.3.300.0000.00616.23
7.3.290.0070.00016.19
7.3.280.0120.01016.27
7.3.270.0080.00817.40
7.3.260.0110.00616.35
7.3.250.0110.00916.53
7.3.240.0070.01016.27
7.3.230.0100.00816.40
7.3.210.0100.00616.56
7.3.200.0000.01716.62
7.3.190.0060.00916.40
7.3.180.0100.01016.72
7.3.170.0060.00916.43
7.3.160.0110.00416.64
7.3.120.0060.00914.91
7.3.110.0060.00614.81
7.3.100.0000.01714.87
7.3.90.0110.00314.49
7.3.80.0030.01114.76
7.3.70.0090.00614.96
7.3.60.0120.00414.87
7.3.50.0090.00614.93
7.3.40.0040.00714.90
7.3.30.0070.00714.79
7.3.20.0090.00316.64
7.3.10.0030.01016.66
7.3.00.0080.00716.68
7.2.330.0030.01416.67
7.2.320.0100.01316.73
7.2.310.0130.00316.66
7.2.300.0030.01316.68
7.2.290.0070.01016.77
7.2.250.0090.01214.81
7.2.240.0130.00715.24
7.2.230.0080.00614.94
7.2.220.0090.00615.13
7.2.210.0040.00914.74
7.2.200.0100.00614.97
7.2.190.0070.01115.07
7.2.180.0060.00614.89
7.2.170.0120.00315.11
7.2.130.0000.01417.02
7.2.120.0000.01717.06
7.2.110.0030.01016.97
7.2.100.0060.00316.75
7.2.90.0040.01116.74
7.2.80.0040.01116.94
7.2.70.0030.00917.11
7.2.60.0000.01517.02
7.2.50.0060.00617.01
7.2.40.0030.00916.76
7.2.30.0000.01217.15
7.2.20.0100.00016.95
7.2.10.0060.00617.09
7.2.00.0130.00618.11
7.1.330.0070.00715.83
7.1.320.0060.00916.05
7.1.310.0040.00816.04
7.1.300.0040.01115.88
7.1.290.0000.00815.85
7.1.280.0120.00016.00
7.1.270.0040.01215.98
7.1.260.0060.00915.79
7.1.250.0060.00316.01
7.1.100.0070.00718.09
7.1.70.0030.00617.17
7.1.60.0530.00332.91
7.1.50.0430.01732.81
7.1.40.0470.01332.34
7.1.30.0530.01032.42
7.1.20.0570.00332.53
7.1.10.0470.00714.98
7.1.00.1300.01014.95
7.0.200.0330.00714.95
7.0.190.0400.00315.04
7.0.180.0430.01014.31
7.0.170.0430.00714.43
7.0.160.0370.00714.58
7.0.150.0400.00314.46
7.0.140.0430.01714.84
7.0.130.0400.00714.87
7.0.120.0370.01014.68
7.0.110.0400.00314.55
7.0.100.0500.00314.64
7.0.90.0570.00314.56
7.0.80.0330.01314.73
7.0.70.0530.00314.65
7.0.60.0370.01014.50
7.0.50.0400.01314.43
7.0.40.0400.01314.70
7.0.30.0570.01015.02
7.0.20.0470.01314.72
7.0.10.0500.00714.69
7.0.00.0430.01314.69

preferences:
39.29 ms | 400 KiB | 5 Q