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.0080.00818.43
8.3.50.0100.00716.40
8.3.40.0150.00618.92
8.3.30.0140.00018.70
8.3.20.0000.00820.13
8.3.10.0050.00320.78
8.3.00.0050.00322.14
8.2.180.0150.00416.50
8.2.170.0040.01122.96
8.2.160.0090.00619.27
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00019.76
8.2.120.0040.00426.35
8.2.110.0070.00322.31
8.2.100.0040.00718.03
8.2.90.0060.00317.89
8.2.80.0050.00317.97
8.2.70.0000.00917.93
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0040.00420.32
8.2.30.0050.00219.07
8.2.20.0040.00417.87
8.2.10.0040.00418.07
8.2.00.0000.00718.01
8.1.280.0100.00725.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00020.44
8.1.230.0110.00020.88
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00717.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0060.00318.83
8.1.160.0060.00318.76
8.1.150.0040.00422.08
8.1.140.0000.00719.51
8.1.130.0000.00718.85
8.1.120.0000.00717.58
8.1.110.0000.00717.57
8.1.100.0050.00217.52
8.1.90.0050.00317.45
8.1.80.0040.00417.44
8.1.70.0050.00217.51
8.1.60.0070.00317.68
8.1.50.0080.00017.50
8.1.40.0040.00417.53
8.1.30.0050.00317.78
8.1.20.0030.00617.74
8.1.10.0000.00717.71
8.1.00.0060.00317.47
8.0.300.0070.00021.62
8.0.290.0030.00616.75
8.0.280.0040.00418.43
8.0.270.0000.00817.11
8.0.260.0050.00318.73
8.0.250.0070.00017.02
8.0.240.0070.00016.96
8.0.230.0030.00317.07
8.0.220.0000.00716.97
8.0.210.0030.00317.02
8.0.200.0000.00616.91
8.0.190.0000.00816.89
8.0.180.0040.00416.88
8.0.170.0070.00017.02
8.0.160.0040.00416.93
8.0.150.0050.00316.83
8.0.140.0070.00016.88
8.0.130.0030.00313.32
8.0.120.0040.00416.77
8.0.110.0000.00716.78
8.0.100.0000.00717.02
8.0.90.0040.00416.95
8.0.80.0070.01016.95
8.0.70.0040.00417.07
8.0.60.0050.00216.84
8.0.50.0000.00716.91
8.0.30.0120.00517.10
8.0.20.0120.00917.40
8.0.10.0040.00417.08
8.0.00.0070.01116.96
7.4.330.0050.00015.55
7.4.320.0040.00416.49
7.4.300.0060.00016.77
7.4.290.0040.00416.76
7.4.280.0040.00416.62
7.4.270.0030.00816.63
7.4.260.0000.00716.76
7.4.250.0070.00016.52
7.4.240.0030.00316.64
7.4.230.0000.00716.63
7.4.220.0030.01516.75
7.4.210.0060.00916.71
7.4.200.0000.00716.44
7.4.160.0110.00616.52
7.4.150.0130.00417.40
7.4.140.0040.01217.86
7.4.130.0120.00916.58
7.4.120.0140.00816.71
7.4.110.0120.00616.51
7.4.100.0110.00616.58
7.4.90.0110.00516.46
7.4.80.0210.00019.39
7.4.70.0130.01016.61
7.4.60.0080.00816.50
7.4.50.0090.00616.27
7.4.40.0160.00616.49
7.4.30.0100.00716.70
7.4.00.0100.00614.88
7.3.330.0000.00513.25
7.3.320.0030.00313.18
7.3.310.0040.00316.14
7.3.300.0070.00016.36
7.3.290.0070.00616.27
7.3.280.0080.00816.24
7.3.270.0090.00917.40
7.3.260.0110.00616.45
7.3.250.0060.01216.42
7.3.240.0090.00716.54
7.3.230.0120.00616.59
7.3.210.0090.00916.30
7.3.200.0080.00816.57
7.3.190.0120.00316.65
7.3.180.0170.00316.73
7.3.170.0120.00316.25
7.3.160.0040.01216.39
7.2.330.0110.00716.42
7.2.320.0130.00416.79
7.2.310.0130.00316.49
7.2.300.0090.00916.61
7.2.290.0190.00416.69
7.2.60.0130.00016.68
7.1.200.0000.00916.06
7.1.80.0080.00718.13
7.1.70.0070.00717.41
7.1.60.0160.01035.08
7.1.50.0190.01134.71
7.1.40.0160.01534.28
7.1.30.0180.01334.41
7.1.20.0210.01134.39
7.1.10.0070.00716.69
7.1.00.0040.00917.02
7.0.200.0080.00516.85
7.0.190.0040.00916.93
7.0.180.0030.01016.19
7.0.170.0090.00616.22
7.0.160.0050.01016.31
7.0.150.0030.01116.35
7.0.140.0030.00816.41
7.0.130.0040.00716.71
7.0.120.0050.00816.58
7.0.110.0010.01216.59
7.0.100.0030.00916.48
7.0.90.0070.00616.42
7.0.80.0050.00816.58
7.0.70.0060.00616.45
7.0.60.0070.00416.22
7.0.50.0020.01016.56
7.0.40.0030.00916.63
7.0.30.0030.00816.65
7.0.20.0050.00816.63
7.0.10.0060.00616.63
7.0.00.0020.01216.68

preferences:
84.84 ms | 400 KiB | 5 Q