3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'a{ra:calc(*(la)100%);font-s'; $string_regex = '((?<!\\\\)(?:\\\\\\\\)*(\'|")(?:.*?[^\\\\])??(?:\\\\\\\\)*\\2)'; $comment_regex = '(\\/\\*(?:(?!\\*\\/).)*\\*\\/)'; $url_regex = '(?<=:| |,|\\(|\\))(url)\\s*(\\()\\s*((?:[^()]+|(?2))*?)\\s*(\\))'; $calc_regex = '(?<=:| |,|\\(|\\))(calc)\\s*(\\()\\s*((?:[^()]+|(?2))*?)\\s*(\\))'; $string = preg_match('/'.$string_regex.'|'.$comment_regex.'|'.$url_regex.'|'.$calc_regex.'/si', $string, $matches); var_dump($matches);

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.00616.63
8.3.50.0110.00522.00
8.3.40.0070.00718.70
8.3.30.0110.00319.05
8.3.20.0070.00020.34
8.3.10.0030.00623.48
8.3.00.0040.00419.05
8.2.180.0070.00718.66
8.2.170.0140.00422.96
8.2.160.0140.00320.57
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00020.36
8.2.110.0060.00321.99
8.2.100.0070.00717.91
8.2.90.0080.00019.21
8.2.80.0040.00417.97
8.2.70.0070.00317.75
8.2.60.0000.00818.03
8.2.50.0030.00618.07
8.2.40.0000.00820.07
8.2.30.0040.00418.29
8.2.20.0050.00317.82
8.2.10.0000.00818.22
8.2.00.0080.00017.82
8.1.280.0110.00425.92
8.1.270.0060.00322.32
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0110.00419.34
8.1.220.0030.00517.78
8.1.210.0060.00318.77
8.1.200.0000.00917.60
8.1.190.0030.00617.36
8.1.180.0000.01119.26
8.1.170.0030.00618.88
8.1.160.0040.00421.98
8.1.150.0040.00418.88
8.1.140.0000.00717.54
8.1.130.0060.00317.92
8.1.120.0040.00417.66
8.1.110.0030.00617.50
8.1.100.0000.00817.62
8.1.90.0000.00917.59
8.1.80.0040.00417.62
8.1.70.0030.00317.61
8.1.60.0000.00917.75
8.1.50.0040.00417.71
8.1.40.0000.00817.65
8.1.30.0000.00817.84
8.1.20.0080.00017.75
8.1.10.0040.00417.66
8.1.00.0030.00617.54
8.0.300.0040.00418.86
8.0.290.0000.00717.30
8.0.280.0050.00218.50
8.0.270.0000.00717.23
8.0.260.0030.00317.32
8.0.250.0030.00317.16
8.0.240.0050.00517.16
8.0.230.0070.00017.03
8.0.220.0050.00317.05
8.0.210.0000.00717.09
8.0.200.0000.00817.09
8.0.190.0030.00517.00
8.0.180.0020.00516.93
8.0.170.0040.00417.05
8.0.160.0040.00417.04
8.0.150.0030.00317.01
8.0.140.0040.00416.94
8.0.130.0040.00413.54
8.0.120.0040.00417.07
8.0.110.0000.00717.05
8.0.100.0000.00717.08
8.0.90.0050.00316.91
8.0.80.0080.00817.04
8.0.70.0080.00017.11
8.0.60.0050.00217.11
8.0.50.0000.00816.93
8.0.30.0080.01017.17
8.0.20.0130.00517.40
8.0.10.0080.00017.01
8.0.00.0130.00516.78
7.4.330.0000.00515.25
7.4.320.0040.00416.68
7.4.300.0000.00616.72
7.4.290.0070.00016.85
7.4.280.0000.00716.84
7.4.270.0040.00416.85
7.4.260.0000.00716.87
7.4.250.0040.00416.84
7.4.240.0030.00516.68
7.4.230.0040.00416.71
7.4.220.0060.01316.85
7.4.210.0080.00716.79
7.4.200.0030.00316.83
7.4.190.0030.00516.85
7.4.160.0040.01216.80
7.4.150.0090.00917.40
7.4.140.0100.01217.86
7.4.130.0090.00816.62
7.4.120.0130.00516.73
7.4.110.0140.00316.66
7.4.100.0090.00916.59
7.4.90.0100.00716.66
7.4.80.0140.00819.39
7.4.70.0090.00916.51
7.4.60.0130.00616.63
7.4.50.0040.00416.68
7.4.40.0160.00016.76
7.4.30.0080.00916.68
7.4.00.0100.00715.11
7.3.330.0030.00313.12
7.3.320.0030.00313.28
7.3.310.0000.00816.32
7.3.300.0040.00416.47
7.3.290.0060.01316.51
7.3.280.0090.00716.48
7.3.270.0090.00917.40
7.3.260.0000.01716.45
7.3.250.0100.01116.61
7.3.240.0030.01316.44
7.3.230.0200.00316.48
7.3.210.0160.00316.45
7.3.200.0090.01219.39
7.3.190.0140.00916.35
7.3.180.0070.01016.79
7.3.170.0120.00916.77
7.3.160.0060.01316.42
7.3.120.0090.00314.94
7.3.10.0070.00716.75
7.3.00.0040.00816.85
7.2.330.0090.01216.58
7.2.320.0080.00816.54
7.2.310.0070.01716.59
7.2.300.0140.00916.84
7.2.290.0170.00316.70
7.2.130.0070.00717.12
7.2.120.0090.00617.18
7.2.110.0000.01417.04
7.2.100.0070.00317.20
7.2.90.0070.00716.92
7.2.80.0030.01017.00
7.2.70.0030.01217.25
7.2.60.0040.01217.14
7.2.50.0040.00917.11
7.2.40.0000.01716.96
7.2.30.0100.00717.27
7.2.20.0000.01717.06
7.2.10.0080.00416.91
7.2.00.0080.00818.30
7.1.250.0000.01215.84
7.1.100.0030.01318.38
7.1.70.0050.00517.26
7.1.60.0070.00717.16
7.1.50.0090.00317.13
7.1.40.0140.00316.88
7.1.30.0080.00416.89
7.1.20.0110.00217.10
7.1.10.0000.01016.88
7.1.00.0030.00717.22
7.0.200.0050.00516.73
7.0.190.0020.00816.87
7.0.180.0000.00916.63
7.0.170.0030.00616.74
7.0.160.0030.00616.67
7.0.150.0030.00816.61
7.0.140.0040.00916.54
7.0.130.0040.00616.61
7.0.120.0000.01216.61
7.0.110.0070.00716.79
7.0.100.0060.00616.74
7.0.90.0060.00616.75
7.0.80.0120.00216.46
7.0.70.0070.00716.50
7.0.60.0090.00316.33
7.0.50.0060.00616.74
7.0.40.0070.00415.18
7.0.30.0070.00415.18
7.0.20.0040.00415.18
7.0.10.0000.00815.18
7.0.00.0050.00515.18
5.6.300.0220.04520.79
5.6.290.0090.04020.86
5.6.280.0000.06121.08
5.6.270.0000.04721.07
5.6.260.0100.04020.80
5.6.250.0130.04021.02
5.6.240.0090.04521.01
5.6.230.0150.03720.83
5.6.220.0030.04820.80
5.6.210.0040.05921.04
5.6.200.0030.04321.03
5.6.190.0040.04620.92
5.6.180.0000.04920.82
5.6.170.0060.03920.85
5.6.160.0030.04721.00
5.6.150.0030.04320.98
5.6.140.0060.03920.92
5.6.130.0070.03720.95
5.6.120.0030.04321.02
5.6.110.0130.03520.72
5.6.100.0100.06920.84
5.6.90.0070.04020.96
5.6.80.0070.03620.43
5.6.70.0130.03220.19
5.6.60.0000.04220.36
5.6.50.0030.03920.20
5.6.40.0070.04120.19
5.6.30.0100.03220.35
5.6.20.0000.04320.30
5.6.10.0000.04220.25
5.6.00.0070.03520.28
5.5.380.0040.04617.50
5.5.370.0070.04017.46
5.5.360.0090.03817.45
5.5.350.0000.04217.44
5.5.340.0030.04518.00
5.5.330.0000.04917.86
5.5.320.0130.03218.02
5.5.310.0030.03917.97
5.5.300.0070.08417.97
5.5.290.0070.03717.93
5.5.280.0060.04517.86
5.5.270.0000.04218.02
5.5.260.0000.04518.06
5.5.250.0070.04017.52
5.5.240.0090.04717.09
5.5.230.0000.04617.21
5.5.220.0130.02717.52
5.5.210.0000.04117.32
5.5.200.0000.04617.38
5.5.190.0030.03817.42
5.5.180.0000.04117.21
5.5.160.0060.03517.41
5.5.150.0030.03817.37
5.5.140.0000.04017.37
5.5.130.0030.04217.38
5.5.120.0030.03917.18
5.5.110.0000.04617.32
5.5.100.0000.04117.20
5.5.90.0000.04217.22
5.5.80.0030.03617.30
5.5.70.0000.04117.21
5.5.60.0200.03717.27
5.5.50.0000.04417.10
5.5.40.0070.03417.10
5.5.30.0030.03717.18
5.5.20.0100.03217.30
5.5.10.0030.04516.98
5.5.00.0000.04417.26
5.4.450.0070.03619.40
5.4.440.0040.04219.19
5.4.430.0060.03419.35
5.4.420.0130.03819.37
5.4.410.0030.03919.00
5.4.400.0000.04319.04
5.4.390.0030.03819.12
5.4.380.0000.04119.05
5.4.370.0030.04019.05
5.4.360.0000.04519.00
5.4.350.0070.03319.05
5.4.340.0070.03618.96
5.4.320.0030.04219.07
5.4.310.0060.03519.06
5.4.300.0030.03719.12
5.4.290.0000.04118.80
5.4.280.0040.04219.07
5.4.270.0070.03719.02
5.4.260.0100.03319.04
5.4.250.0190.02519.14
5.4.240.0000.04619.11
5.4.230.0070.03318.88
5.4.220.0270.03018.95
5.4.210.0030.03718.95
5.4.200.0030.04118.99
5.4.190.0030.03618.85
5.4.180.0030.06319.02
5.4.170.0030.04018.97
5.4.160.0070.03319.10
5.4.150.0040.04319.10
5.4.140.0070.03116.45
5.4.130.0200.03316.61
5.4.120.0030.03916.61
5.4.110.0240.03016.63
5.4.100.0110.02816.45
5.4.90.0090.02816.36
5.4.80.0000.05116.59
5.4.70.0030.03616.30
5.4.60.0070.04116.63
5.4.50.0100.02716.41
5.4.40.0100.06216.36
5.4.30.0030.03616.53
5.4.20.0000.04516.30
5.4.10.0100.03216.55
5.4.00.0000.04115.97
5.3.290.0070.03715.18
5.3.280.0000.04315.18
5.3.270.0030.04115.18
5.3.260.0030.03715.18
5.3.250.0000.04515.18
5.3.240.0030.06815.18
5.3.230.0030.03915.18
5.3.220.0000.03715.18
5.3.210.0000.03915.18
5.3.200.0030.03615.18
5.3.190.0030.05715.18
5.3.180.0070.03115.18
5.3.170.0030.04015.18
5.3.160.0030.03715.18
5.3.150.0060.03915.18
5.3.140.0030.04415.18
5.3.130.0040.03915.18
5.3.120.0000.04115.18
5.3.110.0030.03715.18
5.3.100.0030.03515.18
5.3.90.0000.03915.18
5.3.80.0000.04415.18
5.3.70.0030.03715.18
5.3.60.0000.03715.18
5.3.50.0030.03315.18
5.3.40.0000.04115.18
5.3.30.0090.03115.18
5.3.20.0000.03915.18
5.3.10.0070.07215.18
5.3.00.0060.03515.18
5.2.170.0030.03815.18
5.2.160.0030.02815.18
5.2.150.0100.02215.18
5.2.140.0030.03115.18
5.2.130.0040.03215.18
5.2.120.0000.03215.18
5.2.110.0030.04015.18
5.2.100.0030.03715.18
5.2.90.0000.03115.18
5.2.80.0030.02715.18
5.2.70.0000.03915.18
5.2.60.0070.02615.18
5.2.50.0030.03115.18
5.2.40.0030.02715.18
5.2.30.0030.02715.18
5.2.20.0070.02715.18
5.2.10.0000.03115.18
5.2.00.0030.02915.18
5.1.60.0030.02615.18
5.1.50.0000.02715.18
5.1.40.0000.02515.18
5.1.30.0120.02215.18
5.1.20.0060.05415.18
5.1.10.0060.02215.18
5.1.00.0030.03415.18
5.0.50.0040.01815.18
5.0.40.0040.01915.18
5.0.30.0000.03515.18
5.0.20.0030.01715.18
5.0.10.0070.01715.18
5.0.00.0060.02615.18
4.4.90.0070.01115.18
4.4.80.0000.01715.18
4.4.70.0030.01315.18
4.4.60.0000.02015.18
4.4.50.0030.01415.18
4.4.40.0030.02415.18
4.4.30.0070.01015.18
4.4.20.0030.01415.18
4.4.10.0000.01615.18
4.4.00.0030.04415.18
4.3.110.0000.01815.18
4.3.100.0000.01515.18
4.3.90.0000.01615.18
4.3.80.0000.02615.18
4.3.70.0000.01615.18
4.3.60.0000.01915.18
4.3.50.0000.01615.18
4.3.40.0000.02415.18
4.3.30.0030.01315.18
4.3.20.0000.01715.18
4.3.10.0030.01315.18
4.3.00.0000.02015.18

preferences:
41.46 ms | 401 KiB | 5 Q