3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{IF bla}Text 1{ELSEIF ble}Text 2 {IF bli}Text 2.1{ELSE blo}Text 2.1{ENDIF} Main text end{/ENDIF}'; var_dump(preg_match('#\{IF [^}]*\}[^{]*\{ENDIF\}#is',$string,$m)); var_dump($m);

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.0150.00618.55
8.3.50.0030.01316.29
8.3.40.0070.01418.68
8.3.30.0120.00418.71
8.3.20.0000.00820.24
8.3.10.0080.00020.86
8.3.00.0040.00421.94
8.2.180.0100.01016.63
8.2.170.0160.00022.96
8.2.160.0090.00619.29
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0070.00019.77
8.2.120.0050.00226.35
8.2.110.0070.00319.45
8.2.100.0090.00317.97
8.2.90.0060.00319.27
8.2.80.0040.00417.97
8.2.70.0030.00617.61
8.2.60.0080.00017.55
8.2.50.0060.00318.10
8.2.40.0040.00420.41
8.2.30.0000.00719.14
8.2.20.0070.00018.06
8.2.10.0020.00517.89
8.2.00.0040.00418.07
8.1.280.0180.00325.92
8.1.270.0040.00422.22
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0110.00319.52
8.1.230.0110.00019.00
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.25
8.1.180.0050.00318.10
8.1.170.0040.00418.41
8.1.160.0080.00018.84
8.1.150.0000.00720.28
8.1.140.0040.00419.52
8.1.130.0070.00018.90
8.1.120.0000.00717.57
8.1.110.0040.00417.54
8.1.100.0030.00517.50
8.1.90.0040.00417.50
8.1.80.0000.00817.54
8.1.70.0000.00717.54
8.1.60.0000.00817.70
8.1.50.0040.00417.55
8.1.40.0030.00517.54
8.1.30.0050.00217.68
8.1.20.0000.00817.74
8.1.10.0030.00517.63
8.1.00.0080.00017.49
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0030.00518.32
8.0.270.0070.00017.11
8.0.260.0070.00018.76
8.0.250.0040.00416.92
8.0.240.0070.00017.00
8.0.230.0040.00416.95
8.0.220.0070.00016.98
8.0.210.0000.00716.89
8.0.200.0000.00817.00
8.0.190.0000.00717.00
8.0.180.0050.00316.99
8.0.170.0030.00317.02
8.0.160.0030.00317.00
8.0.150.0040.00416.90
8.0.140.0000.00716.83
8.0.130.0040.00413.41
8.0.120.0040.00416.91
8.0.110.0040.00416.91
8.0.100.0030.00316.82
8.0.90.0040.00416.86
8.0.80.0060.01016.90
8.0.70.0020.00516.93
8.0.60.0050.00316.93
8.0.50.0020.00516.83
8.0.30.0090.00917.30
8.0.20.0110.01017.40
8.0.10.0040.00417.14
8.0.00.0100.01016.82
7.4.330.0030.00315.55
7.4.320.0060.00016.66
7.4.300.0000.00616.53
7.4.290.0030.00316.72
7.4.280.0040.00416.57
7.4.270.0040.00416.66
7.4.260.0000.00716.60
7.4.250.0000.00816.76
7.4.240.0000.00716.62
7.4.230.0000.00816.71
7.4.220.0070.01116.56
7.4.210.0100.01016.77
7.4.200.0030.00316.62
7.4.160.0090.00516.69
7.4.150.0140.00317.40
7.4.140.0090.00717.86
7.4.130.0110.00816.61
7.4.120.0120.00916.64
7.4.110.0110.00716.63
7.4.100.0100.00716.46
7.4.90.0100.00716.73
7.4.80.0080.01319.39
7.4.70.0140.00316.54
7.4.60.0090.00616.56
7.4.50.0020.00816.41
7.4.40.0030.01216.64
7.4.30.0160.00616.52
7.4.00.0090.00615.24
7.3.330.0000.00513.09
7.3.320.0060.00013.18
7.3.310.0000.00616.29
7.3.300.0030.00316.23
7.3.290.0080.00816.28
7.3.280.0080.00816.31
7.3.270.0110.00717.40
7.3.260.0110.00916.42
7.3.250.0080.00916.50
7.3.240.0100.00916.37
7.3.230.0040.01616.38
7.3.210.0100.00716.49
7.3.200.0100.00716.61
7.3.190.0090.00916.33
7.3.180.0120.00316.58
7.3.170.0100.00616.45
7.3.160.0090.00616.52
7.2.330.0100.00716.64
7.2.320.0070.01516.56
7.2.310.0050.01116.62
7.2.300.0120.01216.59
7.2.290.0090.00616.50
7.2.60.0060.00916.55
7.1.200.0030.00915.78
7.1.80.0040.01118.14
7.1.70.0040.00717.22
7.1.60.0170.00734.92
7.1.50.0200.00334.77
7.1.40.0170.00734.13
7.1.30.0070.01834.37
7.1.20.0150.00934.48
7.1.10.0080.00316.73
7.1.00.0000.01116.81
7.0.200.0060.00616.90
7.0.190.0040.00717.02
7.0.180.0090.00316.40
7.0.170.0000.01116.27
7.0.160.0040.00716.28
7.0.150.0000.01116.49
7.0.140.0000.01116.45
7.0.130.0040.00816.42
7.0.120.0040.00716.54
7.0.110.0060.00616.58
7.0.100.0030.00916.44
7.0.90.0040.00816.68
7.0.80.0030.00916.56
7.0.70.0030.00916.41
7.0.60.0100.00316.21
7.0.50.0080.00516.57
7.0.40.0040.00816.59
7.0.30.0120.00016.83
7.0.20.0030.00916.57
7.0.10.0060.00616.53
7.0.00.0000.01116.37

preferences:
63.96 ms | 401 KiB | 5 Q