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|calc)\\s*(\\()\\s*((?:[^()]+|(?2))*?)\\s*(\\))'; $string = preg_match('/'.$string_regex.'|'.$comment_regex.'|'.$url_regex.'|'.$calc_regex.'/si', $string, $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.0040.01516.88
8.3.50.0130.00522.23
8.3.40.0100.01019.00
8.3.30.0120.00318.95
8.3.20.0040.00420.34
8.3.10.0070.00323.55
8.3.00.0040.00420.88
8.2.180.0120.00317.13
8.2.170.0070.00722.96
8.2.160.0090.00620.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00420.43
8.2.110.0060.00322.19
8.2.100.0040.00817.84
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0030.00617.88
8.2.60.0000.00917.93
8.2.50.0030.00618.07
8.2.40.0000.00820.00
8.2.30.0050.00318.28
8.2.20.0030.00517.93
8.2.10.0040.00418.25
8.2.00.0000.00817.96
8.1.280.0040.01225.92
8.1.270.0080.00022.18
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00623.72
8.1.230.0080.00419.04
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0030.00517.35
8.1.180.0080.00019.13
8.1.170.0030.00618.78
8.1.160.0070.00022.07
8.1.150.0000.00718.72
8.1.140.0000.00717.50
8.1.130.0040.00417.87
8.1.120.0000.00717.57
8.1.110.0030.00717.52
8.1.100.0070.00017.56
8.1.90.0030.00617.58
8.1.80.0030.00317.65
8.1.70.0030.00317.45
8.1.60.0040.00417.74
8.1.50.0040.00417.66
8.1.40.0050.00217.63
8.1.30.0000.00817.85
8.1.20.0070.00017.79
8.1.10.0040.00417.70
8.1.00.0040.00417.63
8.0.300.0040.00418.85
8.0.290.0040.00417.30
8.0.280.0070.00018.49
8.0.270.0030.00317.26
8.0.260.0030.00317.22
8.0.250.0070.00017.20
8.0.240.0030.00617.19
8.0.230.0030.00317.10
8.0.220.0000.00717.09
8.0.210.0070.00017.01
8.0.200.0000.00717.20
8.0.190.0070.00017.02
8.0.180.0000.00817.15
8.0.170.0030.00617.14
8.0.160.0040.00417.08
8.0.150.0000.00717.11
8.0.140.0080.00017.09
8.0.130.0060.00313.30
8.0.120.0000.00817.14
8.0.110.0030.00517.04
8.0.100.0040.00417.20
8.0.90.0030.00617.23
8.0.80.0030.01317.01
8.0.70.0030.00517.02
8.0.60.0030.00317.20
8.0.50.0040.00416.95
8.0.30.0100.00917.26
8.0.20.0160.00617.40
8.0.10.0000.00717.21
8.0.00.0080.01116.79
7.4.330.0050.00015.16
7.4.320.0000.00716.64
7.4.300.0060.00016.69
7.4.290.0030.00316.84
7.4.280.0030.00516.73
7.4.270.0000.00716.61
7.4.260.0040.00816.71
7.4.250.0000.00716.80
7.4.240.0040.00416.76
7.4.230.0070.00016.57
7.4.220.0070.01116.93
7.4.210.0070.01116.83
7.4.200.0000.00716.90
7.4.190.0000.00716.91
7.4.160.0100.00716.53
7.4.150.0070.01117.40
7.4.140.0060.01317.86
7.4.130.0110.00616.81
7.4.120.0050.01216.78
7.4.110.0100.00716.73
7.4.100.0090.00916.69
7.4.90.0120.00616.74
7.4.80.0050.01419.39
7.4.70.0070.01416.58
7.4.60.0090.00916.63
7.4.50.0060.00016.42
7.4.40.0130.00616.58
7.4.30.0080.00816.72
7.4.00.0120.00415.18
7.3.330.0020.00213.24
7.3.320.0000.00513.22
7.3.310.0040.00416.44
7.3.300.0000.00716.51
7.3.290.0090.00616.49
7.3.280.0100.01116.52
7.3.270.0070.01117.40
7.3.260.0000.01716.50
7.3.250.0100.00616.54
7.3.240.0070.01116.69
7.3.230.0070.01016.42
7.3.210.0140.01016.46
7.3.200.0100.00719.39
7.3.190.0140.00616.48
7.3.180.0150.00016.52
7.3.170.0080.00816.58
7.3.160.0160.00016.63
7.3.120.0090.00615.08
7.3.10.0120.01016.57
7.3.00.0150.00416.54
7.2.330.0070.01716.86
7.2.320.0080.00816.79
7.2.310.0060.01216.92
7.2.300.0130.00716.84
7.2.290.0090.01216.82
7.2.130.0090.01116.90
7.2.120.0150.01016.84
7.2.110.0150.00316.88
7.2.100.0110.00617.01
7.2.90.0090.00816.87
7.2.80.0110.00417.10
7.2.70.0070.00716.94
7.2.60.0160.00816.88
7.2.50.0090.00716.83
7.2.40.0090.00817.09
7.2.30.0070.01117.07
7.2.20.0120.00616.84
7.2.10.0070.00916.86
7.2.00.0080.00917.88
7.1.250.0090.01115.79
7.1.240.0050.00515.88
7.1.230.0100.00315.94
7.1.220.0070.00716.06
7.1.210.0000.00815.73
7.1.200.0070.00616.01
7.1.190.0040.00815.70
7.1.180.0040.00715.73
7.1.170.0110.00415.95
7.1.160.0000.01715.82
7.1.150.0080.00315.88
7.1.140.0030.00715.50
7.1.130.0030.01015.99
7.1.120.0080.00515.91
7.1.110.0000.00915.95
7.1.100.0050.01017.15
7.1.90.0060.00615.91
7.1.80.0030.00615.95
7.1.70.0040.01116.76
7.1.60.0080.01117.68
7.1.50.0070.01016.51
7.1.40.0030.00916.03
7.1.30.0130.00315.84
7.1.20.0000.01515.89
7.1.10.0040.00415.81
7.1.00.0030.04319.13
7.0.330.0040.00815.54
7.0.320.0030.00915.41
7.0.310.0100.00315.50
7.0.300.0100.00315.54
7.0.290.0070.01015.55
7.0.280.0030.00915.50
7.0.270.0000.01615.77
7.0.260.0090.00415.45
7.0.250.0080.00615.30
7.0.240.0070.01015.25
7.0.230.0060.00615.25
7.0.220.0060.00615.21
7.0.210.0030.01415.59
7.0.200.0040.00916.36
7.0.190.0060.00915.59
7.0.180.0060.00315.79
7.0.170.0000.00815.54
7.0.160.0070.00715.43
7.0.150.0060.00615.60
7.0.140.0060.03618.73
7.0.130.0070.00715.51
7.0.120.0000.00915.33
7.0.110.0090.00315.72
7.0.100.0070.02417.79
7.0.90.0070.03717.73
7.0.80.0190.04017.76
7.0.70.0030.04617.81
7.0.60.0260.01917.83
7.0.50.0180.04317.95
7.0.40.0030.04816.96
7.0.30.0070.04516.77
7.0.20.0070.04016.91
7.0.10.0070.04517.00
7.0.00.0090.04316.85
5.6.380.0000.01114.50
5.6.370.0030.01014.20
5.6.360.0070.00314.24
5.6.350.0060.00614.27
5.6.340.0070.00714.40
5.6.330.0040.00414.20
5.6.320.0080.00814.12
5.6.310.0090.00314.46
5.6.300.0000.01014.36
5.6.290.0070.00714.39
5.6.280.0060.03817.49
5.6.270.0070.00714.60
5.6.260.0070.00714.13
5.6.250.0050.03117.47
5.6.240.0090.04117.24
5.6.230.0020.04517.32
5.6.220.0000.05117.48
5.6.210.0110.03617.33
5.6.200.0050.03917.76
5.6.190.0070.04517.64
5.6.180.0050.03617.76
5.6.170.0020.04217.72
5.6.160.0070.04917.76
5.6.150.0060.03917.68
5.6.140.0080.03017.70
5.6.130.0060.03117.70
5.6.120.0070.02317.57
5.6.110.0070.04017.76
5.6.100.0070.02617.57
5.6.90.0080.03717.69
5.6.80.0080.01817.45
5.6.70.0020.02517.39
5.6.60.0030.04817.14
5.6.50.0080.03817.11
5.6.40.0030.04817.25
5.6.30.0100.03717.35
5.6.20.0080.04317.28
5.6.10.0050.04117.38
5.6.00.0050.04317.26
5.5.380.0030.02315.67
5.5.370.0080.02015.70
5.5.360.0110.03815.70
5.5.350.0040.02715.54
5.5.340.0050.04316.09
5.5.330.0110.03615.89
5.5.320.0050.03115.87
5.5.310.0030.04315.93
5.5.300.0020.02515.80
5.5.290.0030.02615.92
5.5.280.0030.05215.89
5.5.270.0050.03315.99
5.5.260.0070.04315.92
5.5.250.0030.02315.67
5.5.240.0060.03315.50
5.5.230.0050.03915.57
5.5.220.0020.02315.37
5.5.210.0070.04715.55
5.5.200.0020.04115.49
5.5.190.0070.04015.55
5.5.180.0080.04015.57
5.5.170.0040.00410.84
5.5.160.0030.04415.59
5.5.150.0040.04215.59
5.5.140.0070.03415.51
5.5.130.0050.04315.50
5.5.120.0050.03015.63
5.5.110.0050.04315.35
5.5.100.0080.03515.51
5.5.90.0050.02815.40
5.5.80.0060.02315.49
5.5.70.0050.03715.40
5.5.60.0100.02315.28
5.5.50.0070.03815.33
5.5.40.0070.04015.32
5.5.30.0080.03715.34
5.5.20.0060.02215.38
5.5.10.0080.03715.36
5.5.00.0090.03615.44
5.4.450.0050.03915.12
5.4.440.0020.04115.16
5.4.430.0100.03815.18
5.4.420.0100.01815.20
5.4.410.0070.02015.04
5.4.400.0030.02814.88
5.4.390.0080.02015.11
5.4.380.0070.04214.93
5.4.370.0020.04314.88
5.4.360.0050.03514.88
5.4.350.0010.03614.90
5.4.340.0070.03614.92
5.4.330.0000.00910.80
5.4.320.0020.03014.90
5.4.310.0030.03814.96
5.4.300.0050.03314.96
5.4.290.0050.03815.09
5.4.280.0070.03214.99
5.4.270.0040.02115.07
5.4.260.0060.03514.86
5.4.250.0050.02814.94
5.4.240.0120.03015.14
5.4.230.0040.04114.82
5.4.220.0080.04015.13
5.4.210.0050.02614.95
5.4.200.0090.01915.03
5.4.190.0020.02114.97
5.4.180.0130.03615.06
5.4.170.0160.03114.92
5.4.160.0080.03515.01
5.4.150.0080.02315.05
5.4.140.0070.04113.64
5.4.130.0030.02413.64
5.4.120.0020.04013.56
5.4.110.0120.03813.60
5.4.100.0020.04413.76
5.4.90.0070.04213.61
5.4.80.0070.03513.73
5.4.70.0110.03213.63
5.4.60.0050.03813.69
5.4.50.0100.04013.77
5.4.40.0050.04113.59
5.4.30.0080.02513.64
5.4.20.0070.03713.55
5.4.10.0060.04013.49
5.4.00.0100.03213.24
5.3.290.0070.03112.61
5.3.280.0110.03012.49
5.3.270.0050.02712.56
5.3.260.0070.04312.56
5.3.250.0080.03812.49
5.3.240.0090.03712.46
5.3.230.0060.03312.50
5.3.220.0020.03012.52
5.3.210.0070.03812.47
5.3.200.0070.04012.50
5.3.190.0170.01512.55
5.3.180.0060.04012.50
5.3.170.0030.04512.56
5.3.160.0050.03712.52
5.3.150.0060.03212.40
5.3.140.0050.02812.46
5.3.130.0080.02212.54
5.3.120.0070.03812.44
5.3.110.0050.04512.54
5.3.100.0070.02712.23
5.3.90.0030.04212.24
5.3.80.0050.02712.11
5.3.70.0030.04312.22
5.3.60.0050.04412.16
5.3.50.0040.03912.17
5.3.40.0020.03912.12
5.3.30.0050.03912.10
5.3.20.0080.03212.07
5.3.10.0020.03712.05
5.3.00.0050.03212.04
5.2.170.0060.03111.63
5.2.160.0000.03511.63
5.2.150.0080.01611.63
5.2.140.0050.02811.63
5.2.130.0030.03211.68
5.2.120.0020.03911.63
5.2.110.0070.03011.63
5.2.100.0050.02711.65
5.2.90.0000.03911.63
5.2.80.0050.03011.63
5.2.70.0070.03311.63
5.2.60.0060.02011.63
5.2.50.0020.03311.64
5.2.40.0050.02011.63
5.2.30.0050.01411.63
5.2.20.0050.03211.63
5.2.10.0030.03011.63
5.2.00.0050.01311.63
5.1.60.0040.02711.63
5.1.50.0050.01511.63
5.1.40.0010.02011.63
5.1.30.0060.03011.63
5.1.20.0070.02611.63
5.1.10.0060.02811.63
5.1.00.0010.02311.63
5.0.50.0040.01311.63
5.0.40.0040.02311.63
5.0.30.0050.01811.63
5.0.20.0020.01711.63
5.0.10.0030.02311.63
5.0.00.0000.02911.63
4.4.90.0000.02111.63
4.4.80.0030.01811.63
4.4.70.0050.01511.63
4.4.60.0030.02211.63
4.4.50.0030.01711.63
4.4.40.0070.01311.63
4.4.30.0020.01111.63
4.4.20.0030.01811.63
4.4.10.0020.01811.63
4.4.00.0030.01511.63
4.3.110.0020.02011.63
4.3.100.0010.02111.63
4.3.90.0020.02011.63
4.3.80.0020.01711.63
4.3.70.0000.01811.63
4.3.60.0030.01211.63
4.3.50.0020.01811.63
4.3.40.0020.02811.63
4.3.30.0030.01511.63
4.3.20.0030.01211.63
4.3.10.0030.01011.63
4.3.00.0000.02011.63

preferences:
40.41 ms | 401 KiB | 5 Q