3v4l.org

run code in 300+ PHP versions simultaneously
<?php $articles = "Maybe it’s less true than it used to be that people are made of place--that the same elements that form coal and clay and bogs and ice form faces, voices and characters. I wrote my first collection of short stories, The Bostons, in homage to this book, hoping, as did Joyce’s young Stephen Dedalus, to encounter for the millionth time the reality of experience and to forge in the smithy of my soul the uncreated conscience of some island-dwellers I knew."; $keywords = "less true than, people are made, smithy of my soul, uncreated conscience, this is a test string"; $keywordsArray = explode(', ',$keywords); $pattern = '/'.implode('|',$keywordsArray).'/'; preg_match_all($pattern,$articles,$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.40.0120.00318.84
8.3.30.0100.00719.10
8.3.20.0040.00420.35
8.3.10.0040.00421.96
8.3.00.0050.00322.12
8.2.170.0040.01122.96
8.2.160.0070.01019.08
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0120.00619.73
8.2.110.0030.00622.14
8.2.100.0040.00818.03
8.2.90.0000.00817.88
8.2.80.0050.00319.09
8.2.70.0030.00617.75
8.2.60.0080.00017.63
8.2.50.0000.00920.36
8.2.40.0050.00317.97
8.2.30.0000.00818.16
8.2.20.0040.00417.69
8.2.10.0040.00417.95
8.2.00.0080.00017.82
8.1.270.0040.00423.99
8.1.260.0060.01326.35
8.1.250.0070.00028.09
8.1.240.0090.00323.91
8.1.230.0000.01120.89
8.1.220.0050.00318.84
8.1.210.0060.00318.77
8.1.200.0060.00317.48
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0050.00217.65
8.1.160.0040.00418.84
8.1.150.0000.00718.70
8.1.140.0040.00417.65
8.1.130.0000.00717.86
8.1.120.0070.00017.52
8.1.110.0050.00317.61
8.1.100.0030.00517.63
8.1.90.0000.00717.59
8.1.80.0000.00817.57
8.1.70.0000.00717.61
8.1.60.0060.00317.77
8.1.50.0040.00417.72
8.1.40.0000.00917.70
8.1.30.0050.00517.68
8.1.20.0000.00817.81
8.1.10.0000.00817.59
8.1.00.0000.00817.66
8.0.300.0030.00619.88
8.0.290.0080.00016.88
8.0.280.0000.00818.46
8.0.270.0070.00017.17
8.0.260.0030.00316.98
8.0.250.0030.00317.01
8.0.240.0000.00717.14
8.0.230.0030.00316.99
8.0.220.0040.00417.09
8.0.210.0030.00317.07
8.0.200.0000.00717.07
8.0.190.0030.00316.99
8.0.180.0040.00417.07
8.0.170.0050.00216.98
8.0.160.0060.00317.04
8.0.150.0000.00717.01
8.0.140.0000.00816.91
8.0.130.0050.00013.54
8.0.120.0040.00416.88
8.0.110.0000.00716.89
8.0.100.0000.00817.04
8.0.90.0040.00416.90
8.0.80.0110.00317.07
8.0.70.0000.00717.03
8.0.60.0080.00017.00
8.0.50.0040.00417.00
8.0.30.0070.01417.15
8.0.20.0100.00817.40
8.0.10.0040.00416.98
8.0.00.0130.00616.84
7.4.330.0000.00515.00
7.4.320.0000.00616.68
7.4.300.0030.00316.75
7.4.290.0000.00716.64
7.4.280.0080.00016.73
7.4.270.0040.00416.73
7.4.260.0040.00416.56
7.4.250.0000.00816.63
7.4.240.0040.00316.64
7.4.230.0040.00216.77
7.4.220.0070.01116.66
7.4.210.0090.00616.82
7.4.200.0000.00716.81
7.4.190.0070.00016.54
7.4.160.0160.00016.70
7.4.150.0100.00717.40
7.4.140.0160.00517.86
7.4.130.0050.01316.76
7.4.120.0090.01116.67
7.4.110.0100.00716.71
7.4.100.0040.01516.74
7.4.90.0060.01216.70
7.4.80.0120.00619.39
7.4.70.0040.01316.78
7.4.60.0000.01716.60
7.4.50.0050.00316.54
7.4.40.0030.01522.77
7.4.30.0120.00616.68
7.4.00.0130.00315.20
7.3.330.0000.00513.29
7.3.320.0030.00313.24
7.3.310.0070.00016.35
7.3.300.0000.00716.37
7.3.290.0080.00616.35
7.3.280.0070.00916.39
7.3.270.0150.00317.40
7.3.260.0190.00016.43
7.3.250.0080.00916.56
7.3.240.0030.01316.41
7.3.230.0040.01416.39
7.3.210.0080.00816.25
7.3.200.0120.00419.39
7.3.190.0140.00316.58
7.3.180.0070.01016.25
7.3.170.0090.00616.77
7.3.160.0060.01116.66
7.3.120.0000.01514.68
7.3.10.0130.00716.44
7.3.00.0130.00516.53
7.2.330.0130.00716.69
7.2.320.0050.01416.82
7.2.310.0100.00716.75
7.2.300.0130.00416.92
7.2.290.0170.00016.87
7.2.130.0120.00916.64
7.2.120.0100.00916.70
7.2.110.0100.01216.69
7.2.100.0160.00216.69
7.2.90.0120.00816.69
7.2.80.0110.00816.54
7.2.70.0100.00817.00
7.2.60.0050.01116.79
7.2.50.0100.01016.90
7.2.40.0090.01216.75
7.2.30.0100.00716.75
7.2.20.0100.00816.55
7.2.10.0080.00716.58
7.2.00.0060.01317.72
7.1.250.0120.00715.44
7.1.200.0090.00615.93
7.1.100.0070.00718.38
7.1.70.0070.00317.36
7.1.60.0090.00919.82
7.1.50.0000.01817.11
7.1.00.0070.04722.38
7.0.200.0000.00916.96
7.0.140.0030.07722.21
7.0.70.4400.04019.98
7.0.60.0100.08019.79
7.0.50.0070.05717.94
7.0.40.0000.09320.04
7.0.30.0170.04720.27
7.0.20.0370.07320.03
7.0.10.0200.06320.02
7.0.00.0070.04020.34
5.6.280.0070.07021.07
5.6.210.0070.05320.66
5.6.200.0070.03718.19
5.6.190.0030.08320.76
5.6.180.0270.05320.23
5.6.170.0430.07320.51
5.6.160.0100.07020.32
5.6.150.0100.07718.11
5.6.140.0030.09018.07
5.6.130.0070.07018.21
5.6.120.0070.05721.00
5.6.110.0030.06320.98
5.6.100.0070.03720.98
5.6.90.0170.06720.96
5.6.80.0130.03720.37
5.6.70.0300.06320.37
5.5.350.0100.07720.33
5.5.340.0030.04017.92
5.5.330.0100.04020.52
5.5.320.0070.08720.21
5.5.310.0270.04320.20
5.5.300.0100.04017.98
5.5.290.0070.07717.97
5.5.280.0030.04720.77
5.5.270.0130.07720.79
5.5.260.0130.05720.84
5.5.250.0130.07720.70
5.5.240.0000.08720.35
5.4.450.0100.06719.57
5.4.440.1070.05719.48
5.4.430.0070.06019.24
5.4.420.1000.05719.27
5.4.410.0900.05319.34
5.4.400.0870.07019.26
5.4.390.0730.05319.30
5.4.380.0200.05318.61
5.4.370.0070.04018.69
5.4.360.0070.03718.61
5.4.350.0070.03311.97
5.4.340.0050.03511.97
5.4.320.0060.03912.45
5.4.310.0090.04412.45
5.4.300.0060.04012.45
5.4.290.0060.03912.45
5.4.280.0100.03612.35
5.4.270.0060.03612.35
5.4.260.0130.05018.90
5.4.250.0070.05718.88
5.4.240.0100.07719.02
5.4.230.0030.05718.65
5.4.220.0130.07318.94
5.4.210.0070.05318.89
5.4.200.0100.07319.03
5.4.190.0070.06718.94
5.4.180.0130.07318.80
5.4.170.0130.05718.87
5.4.160.0030.07318.86
5.4.150.0030.05718.88
5.4.140.0030.07716.50
5.4.130.0030.05316.24
5.4.120.0130.06716.23
5.4.110.0100.05716.50
5.4.100.0070.05716.21
5.4.90.0030.07716.36
5.4.80.0100.04316.19
5.4.70.0170.05716.41
5.4.60.0070.05016.50
5.4.50.0000.06016.18
5.4.40.0030.06016.45
5.4.30.0070.07316.27
5.4.20.0030.05316.18
5.4.10.0070.05316.47
5.4.00.0030.05315.74
5.3.290.0070.04112.80
5.3.280.0070.05314.45
5.3.270.0130.07014.64
5.3.260.0100.05314.65
5.3.250.0130.07014.61
5.3.240.0070.05314.46
5.3.230.0070.06314.31
5.3.220.0030.07014.42
5.3.210.0100.05014.57
5.3.200.0070.05014.66
5.3.190.0100.04714.61
5.3.180.0070.06014.26
5.3.170.0070.07714.61
5.3.160.0030.06314.66
5.3.150.0030.05314.61
5.3.140.0070.05014.57
5.3.130.0130.07014.70
5.3.120.0070.05314.56
5.3.110.0070.05714.54
5.3.100.0100.07014.13
5.3.90.0100.05014.17
5.3.80.0100.04713.90
5.3.70.0170.06014.17
5.3.60.0070.05314.00
5.3.50.0300.04013.94
5.3.40.0130.04713.82
5.3.30.0100.07013.76
5.3.20.0070.06713.38
5.3.10.0030.05713.74
5.3.00.0030.05013.63
5.2.170.0000.05011.25
5.2.160.0070.06711.06
5.2.150.0070.04011.07
5.2.140.0100.05011.25
5.2.130.0030.04311.11
5.2.120.0070.04010.99
5.2.110.0030.04010.86
5.2.100.0030.04311.10
5.2.90.0070.04010.93
5.2.80.0030.04311.24
5.2.70.0070.04311.11
5.2.60.0100.03710.82
5.2.50.0000.04711.04
5.2.40.0070.04011.11
5.2.30.0070.05310.98
5.2.20.0030.04710.98
5.2.10.0070.05311.02
5.2.00.0030.05710.72
5.1.60.0070.0479.85
5.1.50.0070.04310.14
5.1.40.0030.05310.05
5.1.30.0030.05710.40
5.1.20.0070.03710.43
5.1.10.0070.03710.09
5.1.00.0030.0479.95
5.0.50.0100.0378.68
5.0.40.0100.0308.68
5.0.30.0100.0378.68
5.0.20.0070.0338.68
5.0.10.0100.0238.68
5.0.00.0030.0478.68
4.4.90.0030.0238.68
4.4.80.0030.0208.68
4.4.70.0100.0238.68
4.4.60.0000.0278.68
4.4.50.0000.0338.68
4.4.40.0000.0508.68
4.4.30.0030.0238.68
4.4.20.0100.0208.68
4.4.10.0000.0308.68
4.4.00.0170.0338.68
4.3.110.0000.0378.68
4.3.100.0000.0338.68
4.3.90.0030.0278.68
4.3.80.0000.0308.68
4.3.70.0030.0308.68
4.3.60.0070.0238.68
4.3.50.0000.0238.68
4.3.40.0000.0378.68
4.3.30.0000.0238.68
4.3.20.0000.0238.68
4.3.10.0030.0208.68
4.3.00.0030.0207.29

preferences:
50 ms | 400 KiB | 5 Q