3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words = 'good bad cupid banana apple'; $text = 'Sometimes I travel to the good places that are good, and never the bad places that are bad. For example I want to visit the heavens and meet a cupid eating an apple. Perhaps I will see mythological creatures eating other fruits like apples, bananas, and other good fruits.'; $expr = explode("\n", $words); $expr = array_map(function ($v) { return preg_quote(trim($v)); }, $expr); $expr = '/('. implode('|', $expr) . ')/i'; preg_match_all($expr, $text, $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.0140.00318.55
8.3.50.0040.01222.17
8.3.40.0090.00618.69
8.3.30.0040.01119.08
8.3.20.0100.00720.35
8.3.10.0040.00421.80
8.3.00.0050.00317.91
8.2.180.0110.01116.88
8.2.170.0110.00422.96
8.2.160.0110.00420.39
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.98
8.2.110.0090.00022.28
8.2.100.0090.00320.07
8.2.90.0050.00319.26
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0040.00418.16
8.2.30.0030.00618.20
8.2.20.0040.00417.79
8.2.10.0080.00018.07
8.2.00.0030.00517.80
8.1.280.0110.00425.92
8.1.270.0040.00423.85
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00622.20
8.1.230.0060.00619.16
8.1.220.0050.00317.78
8.1.210.0050.00318.77
8.1.200.0030.00617.60
8.1.190.0000.00817.36
8.1.180.0050.00318.10
8.1.170.0030.00618.66
8.1.160.0000.00722.05
8.1.150.0000.00718.82
8.1.140.0060.00317.55
8.1.130.0000.00817.90
8.1.120.0040.00417.50
8.1.110.0000.00817.53
8.1.100.0050.00317.58
8.1.90.0000.00817.61
8.1.80.0040.00417.52
8.1.70.0030.00317.59
8.1.60.0000.00817.61
8.1.50.0040.00417.67
8.1.40.0000.00817.63
8.1.30.0000.00817.87
8.1.20.0040.00417.87
8.1.10.0040.00417.63
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.51
8.0.270.0070.00017.27
8.0.260.0060.00017.22
8.0.250.0030.00316.99
8.0.240.0030.00517.00
8.0.230.0040.00417.13
8.0.220.0030.00317.05
8.0.210.0000.00717.04
8.0.200.0070.00017.04
8.0.190.0000.00717.07
8.0.180.0070.00017.09
8.0.170.0090.00017.10
8.0.160.0000.00717.11
8.0.150.0050.00316.98
8.0.140.0030.00517.06
8.0.130.0000.00513.50
8.0.120.0040.00416.99
8.0.110.0000.00816.87
8.0.100.0000.00716.90
8.0.90.0000.00716.86
8.0.80.0130.00317.03
8.0.70.0040.00416.84
8.0.60.0000.00716.95
8.0.50.0050.00216.83
8.0.30.0090.01217.27
8.0.20.0140.00517.40
8.0.10.0040.00417.12
8.0.00.0110.00716.77
7.4.330.0000.00515.17
7.4.320.0030.00316.73
7.4.300.0040.00416.62
7.4.290.0000.00716.71
7.4.280.0030.00616.80
7.4.270.0030.00616.67
7.4.260.0030.00316.70
7.4.250.0050.00316.60
7.4.240.0040.00316.84
7.4.230.0040.00416.93
7.4.220.0000.02016.91
7.4.210.0070.01016.82
7.4.200.0040.00416.79
7.4.160.0070.01016.53
7.4.150.0120.00617.40
7.4.140.0110.01117.86
7.4.130.0080.01016.65
7.4.120.0070.01016.69
7.4.110.0110.00816.73
7.4.100.0110.00716.68
7.4.90.0120.00616.76
7.4.80.0140.00619.39
7.4.70.0140.00316.80
7.4.60.0190.00016.66
7.4.50.0020.00216.68
7.4.40.0100.01416.55
7.4.30.0100.00716.83
7.4.00.0050.01014.99
7.3.330.0000.00613.45
7.3.320.0050.00013.20
7.3.310.0000.00716.42
7.3.300.0000.00716.28
7.3.290.0130.00716.41
7.3.280.0100.00716.40
7.3.270.0140.00417.40
7.3.260.0170.00016.38
7.3.250.0160.00616.72
7.3.240.0080.01616.82
7.3.230.0070.01116.45
7.3.210.0120.00816.41
7.3.200.0130.01019.39
7.3.190.0090.00916.90
7.3.180.0090.00616.85
7.3.170.0120.00916.45
7.3.160.0060.01016.45
7.3.120.0070.00914.91
7.3.110.0090.00814.96
7.3.100.0080.01114.94
7.3.90.0070.00815.02
7.3.80.0060.00615.03
7.3.70.0060.00614.89
7.3.60.0050.00514.97
7.3.50.0060.01014.79
7.3.40.0060.00714.99
7.3.30.0030.01014.91
7.3.20.0030.01016.75
7.3.10.0070.00616.67
7.3.00.0050.00916.51
7.2.330.0120.00616.82
7.2.320.0180.00416.59
7.2.310.0110.00816.55
7.2.300.0120.00816.81
7.2.290.0160.00316.66
7.2.250.0060.01115.15
7.2.240.0080.00915.16
7.2.230.0060.01015.07
7.2.220.0040.01015.11
7.2.210.0080.00615.17
7.2.200.0100.00215.03
7.2.190.0050.00814.96
7.2.180.0060.00915.07
7.2.170.0090.00515.25
7.2.160.0180.00015.17
7.2.150.0040.01116.80
7.2.140.0040.00817.00
7.2.130.0060.00917.05
7.2.120.0030.00817.26
7.2.110.0080.00817.10
7.2.100.0060.01016.94
7.2.90.0080.00517.08
7.2.80.0040.01017.15
7.2.70.0100.01016.86
7.2.60.0060.00617.12
7.2.50.0030.00616.99
7.2.40.0060.00916.79
7.2.30.0070.01016.88
7.2.20.0000.01117.20
7.2.10.0120.00317.02
7.2.00.0030.01118.46
7.1.330.0090.00916.01
7.1.320.0050.00916.01
7.1.310.0070.00516.06
7.1.300.0050.00715.84
7.1.290.0060.00815.85
7.1.280.0040.01115.96
7.1.270.0080.00415.88
7.1.260.0070.00715.86
7.1.250.0000.01315.67
7.1.240.0060.00615.95
7.1.230.0070.00415.86
7.1.220.0090.00615.78
7.1.210.0090.00615.89
7.1.200.0040.00815.80
7.1.190.0060.01215.63
7.1.180.0040.00815.68
7.1.170.0000.01115.95
7.1.160.0110.00415.73
7.1.150.0060.00916.05
7.1.140.0030.00815.64
7.1.130.0100.00715.77
7.1.120.0000.01415.61
7.1.110.0000.01315.88
7.1.100.0030.01117.11
7.1.90.0040.00715.92
7.1.80.0120.00316.07
7.1.70.0020.01016.59
7.1.60.0070.01017.59
7.1.50.0070.00616.51
7.1.40.0030.01215.83
7.1.30.0040.00715.72
7.1.20.0030.00915.79
7.1.10.0040.01115.84
7.1.00.0020.04319.20
7.0.330.0090.00315.36
7.0.320.0030.00615.46
7.0.310.0060.00615.17
7.0.300.0040.00815.50
7.0.290.0040.00415.55
7.0.280.0030.01015.28
7.0.270.0040.01315.00
7.0.260.0080.00415.55
7.0.250.0070.00715.57
7.0.240.0080.00515.52
7.0.230.0060.00915.29
7.0.220.0040.01215.78
7.0.210.0070.00315.69
7.0.200.0020.00716.15
7.0.190.0060.00615.35
7.0.180.0040.00715.18
7.0.170.0030.00715.79
7.0.160.0060.00615.69
7.0.150.0000.01315.63
7.0.140.0030.04018.73
7.0.130.0100.00315.42
7.0.120.0110.03118.80
7.0.110.0060.03018.79
7.0.100.0050.03818.70
7.0.90.0050.04718.79
7.0.80.0020.04818.68
7.0.70.0080.02418.79
7.0.60.0060.03318.81
7.0.50.0070.03118.61
7.0.40.0090.02216.78
7.0.30.0070.04516.93
7.0.20.0050.04316.71
7.0.10.0070.04516.80
7.0.00.0040.03416.78
5.6.400.0060.00314.41
5.6.390.0070.00714.13
5.6.380.0000.01314.08
5.6.370.0100.00314.28
5.6.360.0030.01414.27
5.6.350.0060.00614.52
5.6.340.0070.00714.20
5.6.330.0090.00614.44
5.6.320.0040.01114.10
5.6.310.0070.00714.48
5.6.300.0080.00314.11
5.6.290.0040.00714.65
5.6.280.0050.03617.74
5.6.270.0050.03117.72
5.6.260.0070.04417.58
5.6.250.0110.01917.54
5.6.240.0100.03817.62
5.6.230.0080.02817.69
5.6.220.0050.03317.61
5.6.210.0080.04317.52
5.6.200.0050.04017.49
5.6.190.0050.04017.57
5.6.180.0130.03817.54
5.6.170.0100.03117.68
5.6.160.0050.04517.79
5.6.150.0100.04417.68
5.6.140.0100.04917.67
5.6.130.0100.04517.59
5.6.120.0080.02117.75
5.6.110.0080.04517.53
5.6.100.0100.04217.55
5.6.90.0150.03717.54
5.6.80.0040.04017.28
5.6.70.0070.02517.36
5.6.60.0020.03017.17
5.6.50.0040.03617.27
5.6.40.0030.02317.35
5.6.30.0120.04217.22
5.6.20.0110.02817.21
5.6.10.0040.03617.29
5.6.00.0030.04617.35
5.5.380.0100.03815.92
5.5.370.0080.04815.89
5.5.360.0070.05015.95
5.5.350.0070.04215.92
5.5.340.0130.03616.09
5.5.330.0100.03716.32
5.5.320.0070.04215.97
5.5.310.0050.04316.11
5.5.300.0100.04216.26
5.5.290.0130.04216.34
5.5.280.0060.02616.29
5.5.270.0050.02216.36
5.5.260.0130.02016.05
5.5.250.0050.02716.14
5.5.240.0020.03015.76
5.5.230.0050.03015.85
5.5.220.0060.02515.74
5.5.210.0060.04315.74
5.5.200.0100.03215.76
5.5.190.0070.02315.79
5.5.180.0030.02915.80
5.5.170.0000.01414.21
5.5.160.0120.01715.87
5.5.150.0030.02515.82
5.5.140.0040.02515.79
5.5.130.0030.02115.91
5.5.120.0030.02415.91
5.5.110.0060.02015.75
5.5.100.0070.02215.85
5.5.90.0040.03415.88
5.5.80.0070.01815.76
5.5.70.0100.03815.71
5.5.60.0030.02515.80
5.5.50.0080.02115.72
5.5.40.0120.01515.83
5.5.30.0000.02815.69
5.5.20.0100.02015.71
5.5.10.0030.03315.78
5.5.00.0100.02215.67
5.4.450.0080.05015.31
5.4.440.0060.03215.27
5.4.430.0070.04215.14
5.4.420.0060.03415.30
5.4.410.0100.03515.34
5.4.400.0030.02614.88
5.4.390.0040.02315.02
5.4.380.0080.02615.23
5.4.370.0020.03315.02
5.4.360.0050.03214.89
5.4.350.0020.03715.00
5.4.340.0000.03514.97
5.4.330.0060.00611.13
5.4.320.0030.03714.93
5.4.310.0030.02015.17
5.4.300.0100.02114.90
5.4.290.0070.01615.14
5.4.280.0070.02115.10
5.4.270.0020.03015.16
5.4.260.0040.02115.15
5.4.250.0070.03115.09
5.4.240.0050.02214.94
5.4.230.0060.02014.98
5.4.220.0020.02514.92
5.4.210.0060.02114.91
5.4.200.0060.02115.17
5.4.190.0070.02014.99
5.4.180.0010.02315.13
5.4.170.0020.02715.27
5.4.160.0120.01815.03
5.4.150.0050.02414.99
5.4.140.0070.02113.69
5.4.130.0050.03513.79
5.4.120.0060.02413.82
5.4.110.0050.04013.85
5.4.100.0030.03713.69
5.4.90.0030.02013.79
5.4.80.0000.02113.75
5.4.70.0040.02613.81
5.4.60.0020.03913.90
5.4.50.0020.02313.71
5.4.40.0070.03713.89
5.4.30.0050.03113.76
5.4.20.0070.01613.68
5.4.10.0000.03013.80
5.4.00.0050.02013.39
5.3.290.0050.02712.77
5.3.280.0000.02512.76
5.3.270.0050.02812.68
5.3.260.0080.02112.68
5.3.250.0070.02112.59
5.3.240.0020.02212.57
5.3.230.0050.01812.68
5.3.220.0030.03112.45
5.3.210.0040.02012.50
5.3.200.0070.02712.69
5.3.190.0030.02312.66
5.3.180.0000.02512.68
5.3.170.0040.01812.72
5.3.160.0000.03212.59
5.3.150.0020.03612.70
5.3.140.0050.02012.62
5.3.130.0070.03412.61
5.3.120.0040.04212.63
5.3.110.0030.02212.64
5.3.100.0070.03512.36
5.3.90.0040.02812.44
5.3.80.0050.03612.17
5.3.70.0050.03212.22
5.3.60.0020.02512.30
5.3.50.0110.03012.21
5.3.40.0050.03512.23
5.3.30.0030.03112.19
5.3.20.0050.04012.21
5.3.10.0010.03512.02
5.3.00.0030.02011.90
5.2.170.0030.02710.93
5.2.160.0000.05311.30
5.2.150.0070.03011.06
5.2.140.0070.05311.04
5.2.130.0000.03311.11
5.2.120.0030.06011.12
5.2.110.0030.02311.02
5.2.100.0030.02311.26
5.2.90.0000.06311.13
5.2.80.0030.02710.98
5.2.70.0000.04710.98
5.2.60.0030.03711.13
5.2.50.0000.03010.82
5.2.40.0000.04711.00
5.2.30.0070.02310.86
5.2.20.0030.06010.91
5.2.10.0030.05310.80
5.2.00.0000.07010.85
5.1.60.0030.0179.89
5.1.50.0000.02310.07
5.1.40.0030.0239.95
5.1.30.0000.03710.33
5.1.20.0000.03010.34
5.1.10.0100.0209.96
5.1.00.0000.02710.22
5.0.50.0000.0309.69
5.0.40.0070.0309.69
5.0.30.0000.0339.69
5.0.20.0030.0309.69
5.0.10.0030.0179.69
5.0.00.0030.0279.69
4.4.90.0030.0139.69
4.4.80.0030.0109.69
4.4.70.0000.0139.69
4.4.60.0030.0139.69
4.4.50.0000.0139.69
4.4.40.0000.0339.69
4.4.30.0000.0179.69
4.4.20.0030.0339.69
4.4.10.0000.0239.69
4.4.00.0000.0279.69
4.3.110.0000.0139.69
4.3.100.0000.0139.69
4.3.90.0000.0179.69
4.3.80.0000.0239.69
4.3.70.0000.0309.69
4.3.60.0030.0239.69
4.3.50.0000.0179.69
4.3.40.0000.0239.69
4.3.30.0000.0179.69
4.3.20.0000.0209.69
4.3.10.0030.0209.69
4.3.00.0000.0139.69

preferences:
42.4 ms | 401 KiB | 5 Q