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.0090.00618.55
8.3.50.0140.00716.44
8.3.40.0040.01118.92
8.3.30.0090.00618.84
8.3.20.0060.00320.19
8.3.10.0040.00420.77
8.3.00.0050.00321.83
8.2.180.0140.00716.38
8.2.170.0100.00322.96
8.2.160.0100.00319.34
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00219.64
8.2.120.0000.00726.35
8.2.110.0030.00619.21
8.2.100.0030.00917.84
8.2.90.0090.00019.13
8.2.80.0030.00517.97
8.2.70.0000.00817.75
8.2.60.0040.00417.80
8.2.50.0060.00318.10
8.2.40.0040.00420.41
8.2.30.0000.00719.20
8.2.20.0050.00218.08
8.2.10.0030.00517.85
8.2.00.0040.00418.07
8.1.280.0070.01025.92
8.1.270.0070.00022.13
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00319.38
8.1.230.0080.00319.14
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0100.00017.36
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0080.00018.78
8.1.160.0000.00718.84
8.1.150.0040.00420.20
8.1.140.0040.00419.53
8.1.130.0070.00018.83
8.1.120.0040.00417.59
8.1.110.0030.00417.55
8.1.100.0000.00817.52
8.1.90.0070.00317.55
8.1.80.0030.00417.59
8.1.70.0030.00317.55
8.1.60.0080.00417.66
8.1.50.0000.00717.61
8.1.40.0040.00417.49
8.1.30.0040.00417.67
8.1.20.0040.00417.73
8.1.10.0000.00817.66
8.1.00.0000.00717.58
8.0.300.0050.00318.77
8.0.290.0060.00316.63
8.0.280.0000.00718.27
8.0.270.0040.00417.17
8.0.260.0030.00318.87
8.0.250.0030.00317.05
8.0.240.0000.00717.05
8.0.230.0000.00817.03
8.0.220.0040.00416.99
8.0.210.0070.00016.96
8.0.200.0040.00416.91
8.0.190.0040.00416.91
8.0.180.0000.00817.05
8.0.170.0040.00417.07
8.0.160.0050.00316.96
8.0.150.0000.00716.77
8.0.140.0070.00016.85
8.0.130.0030.00313.47
8.0.120.0000.00716.77
8.0.110.0060.00316.80
8.0.100.0030.00516.84
8.0.90.0000.00716.87
8.0.80.0120.00916.97
8.0.70.0000.00716.86
8.0.60.0040.00417.00
8.0.50.0040.00416.95
8.0.30.0120.00817.16
8.0.20.0070.01117.40
8.0.10.0000.00717.10
8.0.00.0090.00917.09
7.4.330.0000.00515.55
7.4.320.0030.00316.61
7.4.300.0030.00316.57
7.4.290.0070.00016.65
7.4.280.0000.00716.66
7.4.270.0040.00416.73
7.4.260.0060.00616.62
7.4.250.0000.00816.73
7.4.240.0000.00716.55
7.4.230.0000.00716.55
7.4.220.0110.00816.59
7.4.210.0150.00616.85
7.4.200.0030.00316.63
7.4.160.0080.00816.68
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0120.00916.68
7.4.120.0080.01116.58
7.4.110.0100.00716.70
7.4.100.0080.00816.66
7.4.90.0080.00816.45
7.4.80.0090.01219.39
7.4.70.0030.01616.54
7.4.60.0340.00716.60
7.4.50.0070.00416.71
7.4.40.0100.00716.66
7.4.30.0000.01716.68
7.4.00.0030.01014.92
7.3.330.0000.00513.12
7.3.320.0020.00213.25
7.3.310.0000.00716.21
7.3.300.0030.00316.32
7.3.290.0080.00616.25
7.3.280.0080.00816.28
7.3.270.0120.00917.40
7.3.260.0070.01116.59
7.3.250.0070.01216.32
7.3.240.0130.00516.34
7.3.230.0090.00816.51
7.3.210.0100.00716.48
7.3.200.0150.00316.26
7.3.190.0000.01516.32
7.3.180.0070.01016.30
7.3.170.0140.00716.32
7.3.160.0090.00616.35
7.2.330.0060.01216.52
7.2.320.0120.00616.57
7.2.310.0090.00616.61
7.2.300.0060.01616.49
7.2.290.0030.01416.51
7.2.110.0090.00616.47
7.2.60.0070.00716.66
7.1.200.0040.00715.84
7.1.80.0090.00918.51
7.1.70.0040.00817.23
7.1.60.0150.01134.93
7.1.50.0200.00334.84
7.1.40.0110.01434.28
7.1.30.0220.00334.29
7.1.20.0190.00634.58
7.1.10.0040.00816.88
7.1.00.0030.00916.98
7.0.200.0030.00916.96
7.0.190.0040.00716.96
7.0.180.0030.00916.39
7.0.170.0030.00916.32
7.0.160.0000.01216.49
7.0.150.0060.00616.40
7.0.140.0050.00916.50
7.0.130.0000.01116.57
7.0.120.0000.01116.70
7.0.110.0040.00816.56
7.0.100.0060.00616.39
7.0.90.0090.00316.44
7.0.80.0000.01216.28
7.0.70.0030.00916.50
7.0.60.0060.00916.37
7.0.50.0030.01016.43
7.0.40.0060.00616.43
7.0.30.0060.00616.58
7.0.20.0090.00316.50
7.0.10.0080.00416.56
7.0.00.0030.00916.65

preferences:
70.26 ms | 400 KiB | 5 Q