3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '=iferror(ifs(OR("foo", "bar"),"a",OR("tar", OR("scar", "baa")),"b",OR("lar"),"d"),"c") blah blah ifs(OR("foo", "bar"),"a") and another one ifs("a", OR("tar", OR("scar", "baa")),"b",OR("lar"),"d")'; $regex = '/ifs(\(((?>[^()]+)|(?-2))*\))/'; preg_match_all($regex, $string, $matches); print_r($matches[0]);

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.5.10.0110.00716.77
8.5.00.0160.00820.34
8.4.150.0010.00114.05
8.4.140.0150.00617.66
8.4.130.0140.00717.89
8.4.120.0090.00220.68
8.4.110.0050.00420.71
8.4.100.0080.01218.99
8.4.90.0140.00720.68
8.4.80.0120.00819.92
8.4.70.0040.00417.89
8.4.60.0040.00418.61
8.4.50.0060.00419.63
8.4.40.0120.00819.32
8.4.30.0150.00317.72
8.4.20.0100.01020.26
8.4.10.0090.00619.70
8.3.280.0130.01018.59
8.3.270.0160.01216.76
8.3.260.0120.01016.86
8.3.250.0130.00718.79
8.3.240.0130.00716.45
8.3.230.0110.00816.53
8.3.220.0100.00818.95
8.3.210.0120.00816.82
8.3.200.0060.00316.89
8.3.190.0060.00417.02
8.3.180.0110.00816.43
8.3.170.0180.00018.88
8.3.160.0140.00416.59
8.3.150.0000.00820.68
8.3.140.0070.01118.93
8.3.130.0080.00018.50
8.3.120.0150.00318.91
8.3.110.0030.00620.94
8.3.100.0080.00024.06
8.3.90.0030.00526.77
8.3.80.0060.00317.97
8.3.70.0130.00616.50
8.3.60.0000.01418.43
8.3.50.0170.00318.16
8.3.40.0060.00919.11
8.3.30.0070.00718.92
8.3.20.0050.00321.90
8.3.10.0080.00019.03
8.3.00.0040.00419.38
8.2.290.0100.00820.39
8.2.280.0060.00218.68
8.2.270.0100.00017.29
8.2.260.0070.01116.84
8.2.250.0040.00416.97
8.2.240.0160.00017.07
8.2.230.0030.00622.58
8.2.220.0050.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00616.63
8.2.190.0110.00416.73
8.2.180.0090.00918.41
8.2.170.0100.01022.96
8.2.160.0130.00020.52
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0100.00720.38
8.2.120.0030.00526.35
8.2.110.0100.00020.93
8.2.100.0070.00417.72
8.2.90.0080.00018.16
8.2.80.0000.00817.97
8.2.70.0050.00317.93
8.2.60.0070.00318.22
8.2.50.0040.00418.10
8.2.40.0060.00319.29
8.2.30.0000.00819.33
8.2.20.0030.00518.12
8.2.10.0000.00719.28
8.2.00.0050.00318.08
8.1.330.0110.00721.96
8.1.320.0120.00716.32
8.1.310.0070.00716.53
8.1.300.0040.00416.35
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0040.00420.39
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0040.00721.04
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0080.00417.34
8.1.190.0000.00817.38
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0060.00318.86
8.1.150.0050.00318.86
8.1.140.0000.00720.23
8.1.130.0040.00420.21
8.1.120.0000.00717.57
8.1.110.0040.00417.44
8.1.100.0000.01017.55
8.1.90.0070.00017.60
8.1.80.0050.00317.49
8.1.70.0050.00317.57
8.1.60.0000.00817.66
8.1.50.0040.00417.50
8.1.40.0030.00617.64
8.1.30.0090.00017.75
8.1.20.0090.00017.71
8.1.10.0000.00717.75
8.1.00.0040.00417.59
8.0.300.0080.00021.62
8.0.290.0040.00416.75
8.0.280.0040.00418.41
8.0.270.0000.00716.91
8.0.260.0000.00618.52
8.0.250.0000.00816.98
8.0.240.0060.00017.01
8.0.230.0030.00317.03
8.0.220.0070.00317.00
8.0.210.0040.00416.88
8.0.200.0040.00417.09
8.0.190.0040.00416.96
8.0.180.0040.00416.88
8.0.170.0050.00317.00
8.0.160.0040.00416.85
8.0.150.0050.00316.95
8.0.140.0000.00716.84
8.0.130.0030.00313.38
8.0.120.0050.00316.95
8.0.110.0000.00716.88
8.0.100.0040.00416.93
8.0.90.0040.00416.98
8.0.80.0070.00916.98
8.0.70.0070.00016.76
8.0.60.0000.00816.93
8.0.50.0000.00716.99
8.0.30.0100.01317.48
8.0.20.0130.00617.20
8.0.10.0000.00716.98
8.0.00.0100.01216.80
7.4.330.0060.00015.55
7.4.320.0030.00316.75
7.4.300.0000.00616.75
7.4.290.0040.00416.70
7.4.280.0050.00316.65
7.4.270.0040.00416.76
7.4.260.0030.00616.75
7.4.250.0030.00316.61
7.4.240.0070.00016.79
7.4.230.0040.00416.66
7.4.220.0040.00416.93
7.4.210.0060.01016.63
7.4.200.0050.00216.62
7.4.160.0090.00816.65
7.4.140.0080.01217.86
7.4.130.0060.01216.55
7.4.120.0110.01116.66
7.4.110.0150.00616.62
7.4.100.0120.00916.77
7.4.90.0140.00716.66
7.4.80.0120.00619.39
7.4.70.0130.01016.82
7.4.60.0140.00316.66
7.4.50.0080.00816.31
7.4.40.0100.00716.72
7.4.00.0050.01114.99
7.3.330.0000.00513.26
7.3.320.0030.00313.10
7.3.310.0040.00416.41
7.3.300.0020.00516.20
7.3.290.0040.00416.30
7.3.280.0060.01116.34
7.3.260.0110.01216.47
7.3.240.0080.01116.53
7.3.230.0080.00816.64
7.3.210.0070.01116.43
7.3.200.0080.01516.72
7.3.190.0150.00816.42
7.3.180.0170.00016.46
7.3.170.0060.01316.53
7.3.160.0110.00816.42
7.3.120.0110.00715.09
7.3.110.0090.00314.91
7.3.100.0130.00314.89
7.3.90.0120.00615.15
7.3.80.0040.00714.88
7.3.70.0030.00614.88
7.3.60.0030.00714.76
7.3.50.0040.01414.73
7.3.40.0100.00714.59
7.3.30.0030.00914.73
7.3.20.0320.00615.81
7.3.10.0160.00915.85
7.3.00.0210.00415.93
7.2.330.0100.00616.61
7.2.320.0090.00916.57
7.2.310.0030.01316.58
7.2.300.0040.01316.65
7.2.290.0070.01016.77
7.2.250.0070.01014.98
7.2.240.0070.01114.95
7.2.230.0090.00614.96
7.2.220.0090.00315.12
7.2.210.0000.01815.12
7.2.200.0040.00415.04
7.2.190.0030.00814.80
7.2.180.0090.00915.01
7.2.170.0000.01314.86
7.2.150.0390.00615.20
7.2.140.0330.01315.27
7.2.130.0290.00615.17
7.2.120.0310.01615.03
7.2.110.0400.00615.05
7.2.100.0380.00315.04
7.2.90.0450.00814.94
7.2.80.0350.00415.24
7.2.70.0380.00615.15
7.2.60.0340.00314.87
7.2.50.0520.00315.09
7.2.40.0420.01115.25
7.2.30.0590.00715.23
7.2.20.0290.00615.11
7.2.10.0410.00915.18
7.2.00.0350.00015.02
7.1.330.0110.00415.71
7.1.320.0110.00315.96
7.1.310.0000.01816.09
7.1.300.0040.00416.01
7.1.290.0070.01016.11
7.1.280.0000.01215.89
7.1.270.0030.00515.65
7.1.260.0040.01116.13
7.1.250.0480.00314.07

preferences:
191.73 ms | 403 KiB | 5 Q