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.0120.00618.28
8.3.50.0140.00016.64
8.3.40.0130.00318.75
8.3.30.0030.01018.70
8.3.20.0080.00020.09
8.3.10.0040.00420.78
8.3.00.0040.00922.05
8.2.180.0100.00616.50
8.2.170.0110.00422.96
8.2.160.0070.00719.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.67
8.2.120.0040.00426.35
8.2.110.0090.00020.52
8.2.100.0030.00917.68
8.2.90.0040.00419.17
8.2.80.0000.00917.97
8.2.70.0080.00017.75
8.2.60.0100.00017.80
8.2.50.0000.00818.22
8.2.40.0000.00720.59
8.2.30.0040.00419.12
8.2.20.0000.00718.06
8.2.10.0020.00518.07
8.2.00.0070.00017.96
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00319.38
8.1.230.0100.00018.97
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00617.38
8.1.190.0030.00617.25
8.1.180.0070.00018.10
8.1.170.0000.00818.54
8.1.160.0000.00718.76
8.1.150.0050.00222.07
8.1.140.0060.00319.57
8.1.130.0000.00818.82
8.1.120.0000.00717.53
8.1.110.0040.00417.59
8.1.100.0040.00417.48
8.1.90.0040.00417.53
8.1.80.0030.00717.43
8.1.70.0070.00017.50
8.1.60.0090.00317.64
8.1.50.0040.00717.61
8.1.40.0040.00417.44
8.1.30.0030.00517.70
8.1.20.0080.00017.66
8.1.10.0000.00817.66
8.1.00.0060.00317.60
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0040.00418.38
8.0.270.0030.00317.11
8.0.260.0070.00018.68
8.0.250.0050.00316.96
8.0.240.0030.00316.97
8.0.230.0040.00416.92
8.0.220.0030.00316.86
8.0.210.0050.00217.02
8.0.200.0060.00016.99
8.0.190.0040.00416.91
8.0.180.0040.00416.92
8.0.170.0040.00416.89
8.0.160.0000.00716.98
8.0.150.0040.00416.95
8.0.140.0040.00316.83
8.0.130.0030.00313.39
8.0.120.0040.00416.96
8.0.110.0000.00816.99
8.0.100.0040.00417.01
8.0.90.0030.00516.95
8.0.80.0070.01016.91
8.0.70.0030.00316.75
8.0.60.0040.00416.77
8.0.50.0050.00316.99
8.0.30.0130.00817.16
8.0.20.0100.00917.41
8.0.10.0070.00016.92
8.0.00.0130.00316.84
7.4.330.0020.00215.55
7.4.320.0070.00016.59
7.4.300.0000.00616.63
7.4.290.0030.00316.77
7.4.280.0000.00816.64
7.4.270.0040.00416.65
7.4.260.0040.00416.60
7.4.250.0030.00516.68
7.4.240.0000.00716.61
7.4.230.0040.00416.53
7.4.220.0140.00616.73
7.4.210.0000.01516.80
7.4.200.0030.00316.67
7.4.160.0100.00916.67
7.4.150.0090.01317.40
7.4.140.0110.00817.86
7.4.130.0030.01516.60
7.4.120.0120.00816.67
7.4.110.0120.00616.59
7.4.100.0060.01016.71
7.4.90.0130.00516.61
7.4.80.0130.01419.39
7.4.70.0170.00616.64
7.4.60.0060.01416.45
7.4.50.0090.00616.69
7.4.40.0200.00316.56
7.4.30.0040.01316.65
7.4.00.0070.00715.11
7.3.330.0000.00613.03
7.3.320.0050.00013.14
7.3.310.0000.00816.27
7.3.300.0070.00016.28
7.3.290.0030.01116.26
7.3.280.0060.01116.25
7.3.270.0150.00317.40
7.3.260.0090.00816.61
7.3.250.0070.01016.33
7.3.240.0090.00916.39
7.3.230.0060.01216.52
7.3.210.0120.00416.64
7.3.200.0160.00616.20
7.3.190.0120.00616.41
7.3.180.0120.00416.29
7.3.170.0070.01116.22
7.3.160.0070.00716.56
7.2.330.0100.01016.57
7.2.320.0120.01216.51
7.2.310.0030.01316.75
7.2.300.0110.00616.57
7.2.290.0080.01516.61
7.2.110.0140.00016.47
7.2.60.0150.00016.99
7.1.200.0110.00016.01
7.1.80.0030.01018.37
7.1.70.0040.00717.17
7.1.60.0170.01034.82
7.1.50.0190.00734.60
7.1.40.0160.01034.31
7.1.30.0190.00634.23
7.1.20.0140.01134.41
7.1.10.0060.00616.68
7.1.00.0030.01016.88
7.0.200.0090.00316.70
7.0.190.0030.00916.60
7.0.180.0060.00616.52
7.0.170.0080.00316.27
7.0.160.0030.00916.27
7.0.150.0040.00716.32
7.0.140.0000.01116.69
7.0.130.0000.01116.62
7.0.120.0090.00316.56
7.0.110.0060.00616.70
7.0.100.0000.01216.36
7.0.90.0030.00916.56
7.0.80.0060.00616.54
7.0.70.0080.00416.39
7.0.60.0040.00816.35
7.0.50.0060.00616.51
7.0.40.0060.00616.71
7.0.30.0040.00716.63
7.0.20.0000.01116.52
7.0.10.0030.01216.65
7.0.00.0030.01416.68

preferences:
55.3 ms | 401 KiB | 5 Q