3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = "This is a test string, which is used for demonstrating the tokenization using PHP. PHP is a very (strong) scripting-language"; $words = array_unique(str_word_count(preg_replace('/-/', ' ', $content), 1)); print "<pre>"; print_r($words); print "</pre>"; ?>

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.70.0110.01118.68
8.3.60.0110.00718.31
8.3.50.0130.00721.18
8.3.40.0070.01118.82
8.3.30.0120.00318.83
8.3.20.0040.00420.12
8.3.10.0040.00423.53
8.3.00.0000.00819.14
8.2.180.0180.00318.43
8.2.170.0140.00722.96
8.2.160.0100.00320.43
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.04
8.2.110.0060.00321.96
8.2.100.0060.00618.03
8.2.90.0040.00417.97
8.2.80.0030.00517.97
8.2.70.0080.00017.63
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0040.00419.82
8.2.30.0000.00719.44
8.2.20.0030.00517.77
8.2.10.0040.00417.98
8.2.00.0000.00718.07
8.1.280.0190.00325.92
8.1.270.0110.00320.14
8.1.260.0100.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00620.69
8.1.230.0100.00320.97
8.1.220.0070.00017.79
8.1.210.0040.00418.84
8.1.200.0090.00017.23
8.1.190.0050.00317.18
8.1.180.0080.00019.13
8.1.170.0090.00018.63
8.1.160.0000.00718.89
8.1.150.0000.00718.72
8.1.140.0080.00017.59
8.1.130.0000.00717.90
8.1.120.0050.00317.44
8.1.110.0000.00717.44
8.1.100.0000.00717.51
8.1.90.0040.00417.55
8.1.80.0000.00717.53
8.1.70.0030.00317.54
8.1.60.0040.00417.65
8.1.50.0000.00917.55
8.1.40.0050.00317.63
8.1.30.0000.00817.63
8.1.20.0070.00017.56
8.1.10.0100.00017.56
8.1.00.0030.00617.52
8.0.300.0000.00719.96
8.0.290.0080.00017.18
8.0.280.0030.00318.33
8.0.270.0000.00717.14
8.0.260.0070.00017.21
8.0.250.0030.00316.91
8.0.240.0000.00917.00
8.0.230.0040.00417.05
8.0.220.0000.00816.84
8.0.210.0030.00416.86
8.0.200.0030.00316.93
8.0.190.0080.00017.02
8.0.180.0030.00617.04
8.0.170.0040.00417.01
8.0.160.0000.00717.01
8.0.150.0070.00016.80
8.0.140.0040.00416.82
8.0.130.0030.00313.38
8.0.120.0060.00316.96
8.0.110.0080.00016.96
8.0.100.0040.00416.85
8.0.90.0000.00716.77
8.0.80.0000.01716.93
8.0.70.0080.00016.98
8.0.60.0020.00516.85
8.0.50.0000.00817.07
8.0.30.0090.01117.20
8.0.20.0080.01017.47
8.0.10.0000.00716.99
8.0.00.0090.01016.90
7.4.330.0000.00515.09
7.4.320.0030.00316.74
7.4.300.0000.00716.55
7.4.290.0000.00716.66
7.4.280.0040.00416.67
7.4.270.0030.00316.71
7.4.260.0030.00516.60
7.4.250.0030.00316.62
7.4.240.0030.00416.65
7.4.230.0000.00616.84
7.4.220.0160.00616.63
7.4.210.0080.00616.57
7.4.200.0000.00716.77
7.4.160.0100.01016.71
7.4.150.0100.00717.40
7.4.140.0100.00917.86
7.4.130.0160.00816.46
7.4.120.0100.00716.59
7.4.110.0130.00416.59
7.4.100.0150.00916.48
7.4.90.0090.00916.72
7.4.80.0110.00719.39
7.4.70.0090.00616.54
7.4.60.0040.01216.52
7.4.50.0020.00216.42
7.4.40.0090.00916.60
7.4.30.0070.01016.58
7.4.00.0030.01015.13
7.3.330.0080.00013.25
7.3.320.0050.00013.06
7.3.310.0050.00216.21
7.3.300.0000.00716.27
7.3.290.0090.00416.30
7.3.280.0090.01116.26
7.3.270.0130.00417.40
7.3.260.0130.00316.41
7.3.250.0070.01416.56
7.3.240.0110.00716.38
7.3.230.0120.00616.42
7.3.210.0120.00416.30
7.3.200.0110.01519.39
7.3.190.0050.01016.62
7.3.180.0060.00916.34
7.3.170.0090.00916.39
7.3.160.0130.00316.50
7.2.330.0030.01516.66
7.2.320.0100.00716.56
7.2.310.0110.00916.48
7.2.300.0080.00816.69
7.2.290.0040.01416.81
7.2.60.0070.01016.93
7.2.00.0040.00819.35
7.1.100.0080.00418.15
7.1.70.0030.00717.45
7.1.60.0060.01619.48
7.1.50.0040.01817.08
7.1.00.0070.07322.28
7.0.200.0070.00016.96
7.0.60.0030.04020.08
7.0.50.0070.07017.88
7.0.40.0070.04020.17
7.0.30.0270.04320.23
7.0.20.0370.04020.35
7.0.10.0100.07020.07
7.0.00.0000.08320.22
5.6.280.0030.07021.11
5.6.210.0170.07020.54
5.6.200.0000.04718.29
5.6.190.0030.04720.67
5.6.180.0300.04020.51
5.6.170.0300.04720.51
5.6.160.0070.08020.61
5.6.150.0030.08718.20
5.6.140.0100.05318.18
5.6.130.0070.05018.09
5.6.120.0100.06020.98
5.6.110.0030.07721.05
5.6.100.0030.04321.09
5.6.90.0100.08021.02
5.6.80.0170.06320.36
5.5.350.0200.07020.40
5.5.340.0070.08017.98
5.5.330.0000.06720.44
5.5.320.0400.08020.35
5.5.310.0370.05720.27
5.5.300.0070.08017.95
5.5.290.0100.08017.95
5.5.280.0130.07020.87
5.5.270.0070.07020.77
5.5.260.0270.06320.96
5.5.250.0070.03720.68
5.5.240.0070.05720.06
5.4.450.0230.05019.47
5.4.440.0670.05319.44
5.4.430.0170.07019.52
5.4.420.0030.06019.50
5.4.410.0100.05019.32
5.4.400.0100.05319.21
5.4.390.0130.05019.05
5.4.380.0100.05319.09
5.4.370.0030.05719.16
5.4.360.0100.05019.16
5.4.350.0070.05719.08
5.4.340.0130.04719.02
5.4.320.0170.04719.08
5.4.310.0070.05319.08
5.4.300.0170.05319.12
5.4.290.0200.04019.02
5.4.280.0100.05718.97
5.4.270.0070.05719.03
5.4.260.0170.04319.25
5.4.250.0100.05319.21
5.4.240.0170.05019.24
5.4.230.0000.06019.01
5.4.220.0130.05319.14
5.4.210.0130.04719.24
5.4.200.0130.04717.05
5.4.190.0200.06019.14
5.4.180.0030.06719.09
5.4.170.0100.05319.05
5.4.160.0100.05319.13
5.4.150.0100.05319.01
5.4.140.0130.05016.67
5.4.130.0000.05716.25
5.4.120.0130.04716.46
5.4.110.0100.05016.47
5.4.100.0130.05316.41
5.4.90.0070.05316.57
5.4.80.0100.05016.61
5.4.70.0100.05016.68
5.4.60.0100.04716.28
5.4.50.0100.04716.59
5.4.40.0130.05316.51
5.4.30.0100.05716.21
5.4.20.0100.05316.51
5.4.10.0100.04716.43
5.4.00.0030.05715.73
5.3.290.0070.05714.77
5.3.280.0170.04314.75
5.3.270.0130.05014.76
5.3.260.0030.06014.74
5.3.250.0130.06714.53
5.3.240.0130.05014.65
5.3.230.0100.05014.44
5.3.220.0130.05314.71
5.3.210.0100.06014.41
5.3.200.0030.06014.72
5.3.190.0100.05314.48
5.3.180.0030.05714.46
5.3.170.0030.05714.70
5.3.160.0130.05014.61
5.3.150.0130.04714.48
5.3.140.0100.04714.46
5.3.130.0130.05314.39
5.3.120.0170.05314.70
5.3.110.0030.06014.55
5.3.100.0070.05314.07
5.3.90.0130.04713.94
5.3.80.0100.04714.02
5.3.70.0100.05013.87
5.3.60.0070.05314.00
5.3.50.0200.04014.01
5.3.40.0130.04713.84
5.3.30.0200.03713.96
5.3.20.0100.04713.59
5.3.10.0130.04313.76
5.3.00.0200.04013.74
5.2.170.0030.04711.09
5.2.160.0130.03311.11
5.2.150.0070.04011.09
5.2.140.0130.03711.13
5.2.130.0100.03711.06
5.2.120.0100.03711.02
5.2.110.0170.03011.10
5.2.100.0070.04011.17
5.2.90.0130.03311.00
5.2.80.0100.04011.00
5.2.70.0030.06311.20
5.2.60.0030.04311.10
5.2.50.0000.04710.91
5.2.40.0070.04011.05
5.2.30.0070.04010.89
5.2.20.0100.03710.86
5.2.10.0070.03710.77
5.2.00.0070.04010.86
5.1.60.0070.03310.08
5.1.50.0070.03310.08
5.1.40.0070.0379.96
5.1.30.0100.03310.31
5.1.20.0070.03710.28
5.1.10.0030.0379.96
5.1.00.0030.03710.14
5.0.50.0000.0338.59
5.0.40.0030.0308.25
5.0.30.0030.0438.26
5.0.20.0070.0308.11
5.0.10.0030.0308.09
5.0.00.0130.0378.21
4.4.90.0000.0275.94
4.4.80.0030.0235.88
4.4.70.0070.0205.82
4.4.60.0030.0235.75
4.4.50.0070.0175.89
4.4.40.0070.0305.77
4.4.30.0070.0175.89
4.4.20.0030.0205.80
4.4.10.0000.0275.80
4.4.00.0030.0335.80
4.3.110.0000.0235.75
4.3.100.0030.0205.68
4.3.90.0030.0205.76
4.3.80.0030.0375.77
4.3.70.0000.0235.64
4.3.60.0030.0305.79
4.3.50.0000.0335.78
4.3.40.0100.0375.76
4.3.30.0130.0174.60
4.3.20.0030.0234.51
4.3.10.0000.0234.36
4.3.00.0030.0236.82

preferences:
57.66 ms | 401 KiB | 5 Q