3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/^# cat B.*?(cat).*?(ugly).*?^# cat C$/ms'; $str = '# cat A the cat is very cute. # cat B the cat is very ugly. # cat C the cat is very good. #'; preg_match_all($re, $str, $matches, PREG_SET_ORDER); array_shift($matches[0]); 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.4.140.0130.00917.70
8.4.130.0100.00217.86
8.4.120.0130.00720.50
8.4.110.0100.00922.51
8.4.100.0150.00617.71
8.4.90.0110.01018.68
8.4.80.0140.00818.00
8.4.70.0130.00617.84
8.4.60.0080.00820.38
8.4.50.0110.00918.60
8.4.40.0080.01119.54
8.4.30.0160.00317.71
8.4.20.0090.00920.60
8.4.10.0060.00320.64
8.3.270.0120.00716.86
8.3.260.0150.00516.84
8.3.250.0080.00919.05
8.3.240.0070.00916.35
8.3.230.0120.00816.70
8.3.220.0060.00317.16
8.3.210.0140.00718.46
8.3.200.0030.00616.57
8.3.190.0100.00916.98
8.3.180.0120.00516.55
8.3.170.0040.01416.93
8.3.160.0100.01018.46
8.3.150.0000.00817.39
8.3.140.0060.00319.02
8.3.130.0100.00018.62
8.3.120.0060.00320.55
8.3.110.0090.00020.94
8.3.100.0060.00316.49
8.3.90.0150.00316.75
8.3.80.0060.00318.43
8.3.70.0120.00618.68
8.3.60.0190.00318.68
8.3.50.0060.01118.54
8.3.40.0160.00018.96
8.3.30.0120.00318.71
8.3.20.0070.00021.87
8.3.10.0000.00721.91
8.3.00.0040.00421.89
8.2.290.0040.00520.50
8.2.280.0050.00518.58
8.2.270.0080.00017.11
8.2.260.0040.01121.01
8.2.250.0040.00419.17
8.2.240.0040.00419.17
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0090.00018.25
8.2.190.0090.00917.00
8.2.180.0070.00716.63
8.2.170.0070.00722.96
8.2.160.0120.00320.26
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00419.78
8.2.110.0070.01319.13
8.2.100.0120.00018.03
8.2.90.0050.00317.88
8.2.80.0000.00818.91
8.2.70.0030.00517.88
8.2.60.0030.00517.80
8.2.50.0080.00018.07
8.2.40.0050.00318.22
8.2.30.0050.00318.15
8.2.20.0050.00218.03
8.2.10.0030.00519.46
8.2.00.0000.00818.13
8.1.330.0110.00921.81
8.1.320.0130.00716.50
8.1.310.0040.00418.61
8.1.300.0030.00620.23
8.1.290.0050.00518.88
8.1.280.0150.00325.92
8.1.270.0040.00718.76
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00319.29
8.1.230.0090.00620.30
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0030.00619.06
8.1.170.0060.00318.62
8.1.160.0040.00418.81
8.1.150.0030.00518.92
8.1.140.0050.00318.99
8.1.130.0000.00620.25
8.1.120.0000.00717.45
8.1.110.0060.00617.62
8.1.100.0000.00817.60
8.1.90.0050.00317.44
8.1.80.0030.00617.49
8.1.70.0000.00717.58
8.1.60.0030.00517.57
8.1.50.0030.00517.50
8.1.40.0040.00417.50
8.1.30.0000.00917.71
8.1.20.0060.00317.70
8.1.10.0060.00317.70
8.1.00.0000.00717.67
8.0.300.0070.00019.76
8.0.290.0030.00616.88
8.0.280.0030.00318.41
8.0.270.0030.00717.33
8.0.260.0000.00918.32
8.0.250.0070.00017.09
8.0.240.0070.00016.91
8.0.230.0070.00016.98
8.0.220.0000.00716.89
8.0.210.0000.00716.96
8.0.200.0000.00617.07
8.0.190.0080.00017.04
8.0.180.0040.00416.88
8.0.170.0050.00317.00
8.0.160.0000.00817.02
8.0.150.0070.00016.85
8.0.140.0070.00016.94
8.0.130.0000.00613.40
8.0.120.0040.00416.84
8.0.110.0040.00416.84
8.0.100.0040.00417.04
8.0.90.0040.00417.04
8.0.80.0060.00917.01
8.0.70.0050.00217.00
8.0.60.0040.00416.94
8.0.50.0040.00416.86
8.0.30.0090.00616.97
8.0.20.0130.00917.20
8.0.10.0000.00817.12
8.0.00.0090.00816.94
7.4.330.0000.00516.59
7.4.320.0030.00316.77
7.4.300.0080.00016.59
7.4.290.0000.00716.64
7.4.280.0050.00316.56
7.4.270.0050.00516.66
7.4.260.0000.00916.69
7.4.250.0030.00316.76
7.4.240.0000.00716.70
7.4.230.0040.00216.66
7.4.220.0000.00816.77
7.4.210.0080.00816.67
7.4.200.0040.00316.52
7.4.160.0090.00916.74
7.4.140.0120.00617.86
7.4.130.0120.00616.49
7.4.120.0060.01116.65
7.4.110.0030.01316.57
7.4.100.0130.00616.71
7.4.90.0090.00816.65
7.4.80.0070.01119.39
7.4.70.0130.00316.75
7.4.60.0130.00316.63
7.4.50.0090.00316.44
7.4.40.0060.01016.70
7.4.00.0130.00315.13
7.3.330.0040.00413.16
7.3.320.0050.00013.27
7.3.310.0030.00316.37
7.3.300.0030.00316.41
7.3.290.0030.00316.20
7.3.280.0110.00816.39
7.3.260.0120.00716.53
7.3.240.0100.00816.50
7.3.230.0090.00916.82
7.3.210.0150.00616.37
7.3.200.0090.00816.52
7.3.190.0150.00016.47
7.3.180.0130.00716.63
7.3.170.0060.01716.23
7.3.160.0070.01016.46
7.3.40.0110.01114.90
7.3.30.0070.00314.80
7.3.20.0110.00316.62
7.3.10.0080.00316.54
7.3.00.0120.00916.97
7.2.330.0150.00316.54
7.2.320.0100.01316.78
7.2.310.0130.01016.69
7.2.300.0170.00616.65
7.2.290.0080.01216.57
7.2.170.0000.01415.09
7.2.160.0040.00715.01
7.2.150.0080.00316.94
7.2.140.0100.00016.71
7.2.130.0080.00316.72
7.2.120.0100.00316.71
7.2.110.0080.00416.74
7.2.100.0060.00616.97
7.2.90.0080.00317.01
7.2.80.0070.00416.91
7.2.70.0040.00716.91
7.2.60.0030.00916.91
7.2.50.0110.00416.97
7.2.40.0060.00817.09
7.2.30.0040.01116.89
7.2.20.0060.00816.93
7.2.10.0160.00617.05
7.2.00.0060.01616.98
7.1.280.0030.00615.77
7.1.270.0070.00315.84
7.1.260.0030.00715.97
7.1.250.0130.00616.22

preferences:
154.77 ms | 403 KiB | 5 Q