3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match("/(\w+)?/", "Log,,t1,12.12:t2,20.23:t3,30.00:t4,50.20:11.23 -- Sent using SMS-to-email. Reply to this email to",$matches); print_r($matches); echo "\n"; preg_match("/(\w*)/", "Log,,t1,12.12:t2,20.23:t3,30.00:t4,50.20:11.23 -- Sent using SMS-to-email. Reply to this email to",$matches); print_r($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.0150.00018.55
8.3.50.0150.00522.11
8.3.40.0090.00619.00
8.3.30.0070.00720.34
8.3.20.0090.00018.95
8.3.10.0090.00021.00
8.3.00.0040.00419.56
8.2.180.0040.01116.88
8.2.170.0070.01022.96
8.2.160.0110.00420.48
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0000.00826.16
8.2.120.0060.00321.17
8.2.110.0030.00620.35
8.2.100.0120.00017.91
8.2.90.0060.00319.04
8.2.80.0000.00819.38
8.2.70.0060.00317.75
8.2.60.0080.00017.80
8.2.50.0000.00918.07
8.2.40.0040.00418.09
8.2.30.0000.00721.19
8.2.20.0040.00417.58
8.2.10.0040.00417.72
8.2.00.0030.00517.65
8.1.280.0040.01125.92
8.1.270.0060.00323.99
8.1.260.0030.00626.35
8.1.250.0090.00928.09
8.1.240.0030.00722.33
8.1.230.0040.00722.58
8.1.220.0040.00418.77
8.1.210.0030.00518.91
8.1.200.0060.00317.22
8.1.190.0050.00317.41
8.1.180.0040.00418.10
8.1.170.0000.00818.69
8.1.160.0030.00518.80
8.1.150.0040.00418.72
8.1.140.0000.00717.40
8.1.130.0000.00717.67
8.1.120.0050.00217.45
8.1.110.0040.00417.51
8.1.100.0050.00317.45
8.1.90.0000.00817.40
8.1.80.0070.00017.39
8.1.70.0070.00017.54
8.1.60.0000.00817.57
8.1.50.0080.00017.46
8.1.40.0080.00017.53
8.1.30.0040.00417.70
8.1.20.0030.00517.56
8.1.10.0040.00417.58
8.1.00.0000.00917.53
8.0.300.0040.00419.93
8.0.290.0000.00817.18
8.0.280.0030.00318.41
8.0.270.0030.00317.21
8.0.260.0040.00418.43
8.0.250.0000.00717.00
8.0.240.0030.00517.04
8.0.230.0040.00316.96
8.0.220.0030.00316.88
8.0.210.0000.00716.81
8.0.200.0000.00716.90
8.0.190.0000.00716.99
8.0.180.0000.00716.95
8.0.170.0050.00316.94
8.0.160.0000.00816.99
8.0.150.0000.00816.72
8.0.140.0000.00716.80
8.0.130.0000.00513.38
8.0.120.0000.00816.77
8.0.110.0000.00816.88
8.0.100.0000.00716.96
8.0.90.0040.00416.98
8.0.80.0100.01016.95
8.0.70.0000.00716.81
8.0.60.0000.00716.77
8.0.50.0040.00416.92
8.0.30.0100.00817.24
8.0.20.0110.00817.40
8.0.10.0000.00817.04
8.0.00.0060.00916.83
7.4.330.0020.00216.78
7.4.320.0040.00416.70
7.4.300.0060.00316.59
7.4.290.0070.00016.70
7.4.280.0020.00516.52
7.4.270.0040.00316.71
7.4.260.0000.00513.36
7.4.250.0050.00316.71
7.4.240.0040.00416.61
7.4.230.0040.00416.70
7.4.220.0180.00016.64
7.4.210.0090.00616.71
7.4.200.0050.00216.80
7.4.190.0040.00416.85
7.4.160.0170.00616.44
7.4.150.0130.00617.40
7.4.140.0150.00817.86
7.4.130.0130.00816.63
7.4.120.0090.01016.69
7.4.110.0070.01616.48
7.4.100.0150.00316.50
7.4.90.0070.01016.46
7.4.80.0120.00619.39
7.4.70.0030.01316.48
7.4.60.0060.01016.72
7.4.50.0080.00016.74
7.4.40.0060.00622.77
7.4.30.0180.00316.69
7.4.00.0080.00815.23
7.3.330.0000.00513.12
7.3.320.0000.00613.15
7.3.310.0000.00716.43
7.3.300.0070.00016.20
7.3.290.0060.00916.25
7.3.280.0090.01016.29
7.3.270.0080.01517.40
7.3.260.0090.00918.24
7.3.250.0120.00816.49
7.3.240.0060.01016.45
7.3.230.0030.01616.62
7.3.210.0060.00916.71
7.3.200.0110.00619.39
7.3.190.0070.01416.63
7.3.180.0040.01116.35
7.3.170.0150.00016.40
7.3.160.0090.00616.37
7.3.120.0060.00914.79
7.3.00.0420.01016.20
7.2.330.0130.00316.65
7.2.320.0090.00916.67
7.2.310.0090.00916.57
7.2.300.0100.00716.57
7.2.290.0040.01216.74
7.2.130.0460.00316.77
7.2.120.0430.00316.66
7.2.110.0400.00316.63
7.2.100.0640.00716.68
7.2.90.0670.00316.87
7.2.80.0640.01016.70
7.2.70.0630.00616.64
7.2.60.0070.00616.88
7.2.50.0140.00316.37
7.2.40.0440.00616.48
7.2.30.0000.01816.55
7.2.20.0370.00316.82
7.2.10.0090.00316.96
7.2.00.0170.00718.28
7.1.250.0410.00315.73
7.1.240.0280.01215.73
7.1.230.0510.00615.63
7.1.220.0040.00715.57
7.1.210.0060.00615.69
7.1.200.0090.00215.71
7.1.190.0030.01015.80
7.1.180.0530.00315.68
7.1.170.0450.00315.77
7.1.160.0470.00315.73
7.1.150.0500.00315.60
7.1.140.0320.01115.66
7.1.130.0380.00715.67
7.1.120.0260.01315.44
7.1.110.0230.01015.64
7.1.100.0130.00815.97
7.1.90.0230.00815.83
7.1.80.0250.00015.73
7.1.70.0170.00616.58
7.1.60.0150.00516.42
7.1.50.0120.01216.43
7.1.40.0110.00516.44
7.1.30.0100.00816.17
7.1.20.0120.01216.34
7.1.10.0070.00716.15
7.1.00.0080.00716.21
7.0.330.0350.01315.30
7.0.320.0620.01315.30
7.0.310.0620.00915.43
7.0.300.0460.01015.41
7.0.290.0450.00315.22
7.0.280.0350.01015.23
7.0.270.0290.00415.31
7.0.260.0200.00515.32
7.0.250.0200.01015.24
7.0.240.0200.01015.37
7.0.230.0270.00015.53
7.0.220.0180.00715.63
7.0.210.0150.00915.29
7.0.200.0100.00716.23
7.0.190.0120.00715.98
7.0.180.0090.00915.76
7.0.170.0100.00315.85
7.0.160.0070.00815.96
7.0.150.0110.00515.95
7.0.140.0100.00615.99
7.0.130.0120.00316.11
7.0.120.0110.00516.17
7.0.110.0120.00316.04
7.0.100.0110.00616.00
7.0.90.0100.00815.90
7.0.80.0140.00215.86
7.0.70.0100.00315.92
7.0.60.0100.00915.89
7.0.50.0090.00616.06
7.0.40.0020.00814.27
7.0.30.0060.00814.22
7.0.20.0050.00714.39
7.0.10.0050.00714.35
7.0.00.0080.00314.23
5.6.380.0060.00914.11
5.6.370.0030.01314.14
5.6.360.0070.00414.17
5.6.350.0030.00914.36
5.6.340.0020.01014.50
5.6.330.0070.00714.29
5.6.320.0070.00714.08
5.6.310.0040.01114.38
5.6.300.0040.04617.57
5.6.290.0030.02517.60
5.6.280.0000.02917.44
5.6.270.0020.03017.43
5.6.260.0060.02217.55
5.6.250.0140.01717.70
5.6.240.0120.01917.38
5.6.230.0060.02617.43
5.6.220.0030.02917.49
5.6.210.0070.02617.53
5.6.200.0040.04317.32
5.6.190.0030.02817.66
5.6.180.0080.04417.56
5.6.170.0080.02217.32
5.6.160.0070.02117.33
5.6.150.0020.02817.29
5.6.140.0040.02817.54
5.6.130.0050.02717.48
5.6.120.0070.02217.42
5.6.110.0120.02217.37
5.6.100.0080.02217.51
5.6.90.0030.02817.48
5.6.80.0030.02316.94
5.6.70.0030.02817.13
5.6.60.0050.03117.22
5.6.50.0050.02417.17
5.6.40.0040.02517.21
5.6.30.0040.02417.08
5.6.20.0040.02417.13
5.6.10.0040.02417.16
5.6.00.0030.02317.17
5.5.380.0070.02014.37
5.5.370.0060.02214.22
5.5.360.0050.02514.30
5.5.350.0030.02214.35
5.5.340.0060.03714.49
5.5.330.0030.02414.70
5.5.320.0070.02214.69
5.5.310.0050.02014.50
5.5.300.0060.02114.62
5.5.290.0080.02014.46
5.5.280.0040.02214.62
5.5.270.0020.02614.55
5.5.260.0050.02414.56
5.5.250.0020.02914.48
5.5.240.0010.02614.13
5.5.230.0000.02814.17
5.5.220.0000.02914.07
5.5.210.0030.02214.21
5.5.200.0040.02114.10
5.5.190.0070.01814.30
5.5.180.0040.02313.97
5.5.170.0030.00611.08
5.5.160.0060.02214.19
5.5.150.0040.02714.18
5.5.140.0060.02914.20
5.5.130.0070.02314.08
5.5.120.0050.02213.83
5.5.110.0050.02413.93
5.5.100.0060.02014.00
5.5.90.0050.02114.12
5.5.80.0050.02113.88
5.5.70.0030.02514.04
5.5.60.0050.02114.16
5.5.50.0020.02414.01
5.5.40.0060.02313.95
5.5.30.0030.02614.12
5.5.20.0040.02514.07
5.5.10.0070.02114.08
5.5.00.0030.02413.85
5.4.450.0050.02215.19
5.4.440.0020.02715.11
5.4.430.0040.02215.14
5.4.420.0030.02215.21
5.4.410.0060.01915.05
5.4.400.0030.02314.82
5.4.390.0020.02815.03
5.4.380.0020.02515.00
5.4.370.0030.02514.82
5.4.360.0000.02815.08
5.4.350.0000.02514.93
5.4.340.0020.02515.04
5.4.330.0060.00610.66
5.4.320.0050.02015.11
5.4.310.0040.02214.98
5.4.300.0020.02515.10
5.4.290.0070.02015.05
5.4.280.0060.02114.80
5.4.270.0050.02814.83
5.4.260.0080.01914.95
5.4.250.0050.01915.00
5.4.240.0040.02215.00
5.4.230.0050.02014.89
5.4.220.0050.03014.88
5.4.210.0040.02214.94
5.4.200.0020.02514.91
5.4.190.0050.02114.93
5.4.180.0070.01814.95
5.4.170.0060.02015.02
5.4.160.0040.02215.06
5.4.150.0080.01915.02
5.4.140.0110.01713.60
5.4.130.0100.02613.56
5.4.120.0050.01913.75
5.4.110.0030.02413.60
5.4.100.0030.02013.79
5.4.90.0020.03213.66
5.4.80.0060.02113.59
5.4.70.0090.02413.72
5.4.60.0000.02713.87
5.4.50.0050.02313.90
5.4.40.0010.02713.72
5.4.30.0000.03113.81
5.4.20.0050.02013.88
5.4.10.0060.01813.77
5.4.00.0060.01813.42
5.3.290.0030.02212.86
5.3.280.0070.01912.73
5.3.270.0020.02312.85
5.3.260.0030.02312.71
5.3.250.0040.02012.84
5.3.240.0070.02112.76
5.3.230.0050.01912.73
5.3.220.0020.02312.77
5.3.210.0030.02812.70
5.3.200.0030.02612.70
5.3.190.0120.02212.64
5.3.180.0070.01812.85
5.3.170.0030.02612.74
5.3.160.0050.02312.81
5.3.150.0030.02112.88
5.3.140.0030.02612.83
5.3.130.0100.01812.82
5.3.120.0020.02212.68
5.3.110.0060.04612.80
5.3.100.0030.02512.77
5.3.90.0020.02212.77
5.3.80.0050.02012.67
5.3.70.0030.02212.55
5.3.60.0050.01812.72
5.3.50.0050.01812.54
5.3.40.0040.03812.61
5.3.30.0040.02412.71
5.3.20.0050.01912.73
5.3.10.0040.01712.56
5.3.00.0030.02412.64
5.2.170.0040.01912.53
5.2.160.0000.02012.53
5.2.150.0030.02512.53
5.2.140.0000.01912.53
5.2.130.0060.01512.53
5.2.120.0050.01412.53
5.2.110.0020.01912.53
5.2.100.0020.01812.53
5.2.90.0020.03312.53
5.2.80.0010.03512.53
5.2.70.0030.01812.53
5.2.60.0030.01912.53
5.2.50.0040.01512.53
5.2.40.0010.01912.53
5.2.30.0020.01812.53
5.2.20.0020.01812.53
5.2.10.0030.01912.53
5.2.00.0020.01712.53
5.1.60.0040.01412.53
5.1.50.0020.01512.53
5.1.40.0050.01412.53
5.1.30.0000.01912.53
5.1.20.0040.01812.53
5.1.10.0020.02212.53
5.1.00.0050.01612.53
5.0.50.0000.01412.53
5.0.40.0020.01112.53
5.0.30.0040.01712.53
5.0.20.0020.01312.53
5.0.10.0020.01212.53
5.0.00.0020.01812.53
4.4.90.0020.01212.53
4.4.80.0030.01012.53
4.4.70.0050.01112.53
4.4.60.0020.01212.53
4.4.50.0000.01212.53
4.4.40.0030.01312.53
4.4.30.0020.01012.53
4.4.20.0000.01612.53
4.4.10.0040.01012.53
4.4.00.0010.01512.53
4.3.110.0050.00712.53
4.3.100.0050.00812.53
4.3.90.0030.00812.53
4.3.80.0020.01412.53
4.3.70.0080.01012.53
4.3.60.0030.00812.53
4.3.50.0010.01112.53
4.3.40.0030.01612.53
4.3.30.0020.00812.53
4.3.20.0000.01312.53
4.3.10.0000.01712.53
4.3.00.0040.00612.53

preferences:
46.86 ms | 401 KiB | 5 Q