3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "A very nice únÌcÕdë text. Something nice to think Something about if you're into Unicode."; $words = str_word_count($text, 1); // use this function if you only want ASCII $frequency = array_count_values($words); arsort($frequency); $myJSON = json_encode($frequency); print_r($myJSON);

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.0210.00716.50
8.3.50.0130.00617.87
8.3.40.0060.00918.54
8.3.30.0040.01118.42
8.3.20.0080.00021.90
8.3.10.0110.00720.96
8.3.00.0070.00323.35
8.2.180.0100.01416.50
8.2.170.0060.00922.96
8.2.160.0040.01122.25
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0030.00620.52
8.2.120.0040.00426.35
8.2.110.0040.00420.54
8.2.100.0090.00317.91
8.2.90.0000.00818.93
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0080.00017.80
8.2.50.0050.00218.10
8.2.40.0040.00420.61
8.2.30.0000.00819.13
8.2.20.0000.00917.94
8.2.10.0050.00317.93
8.2.00.0070.00018.00
8.1.280.0180.00025.92
8.1.270.0160.00322.20
8.1.260.0040.01426.35
8.1.250.0190.00028.09
8.1.240.0000.01022.65
8.1.230.0070.00417.70
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0050.00318.43
8.1.160.0040.00418.86
8.1.150.0000.00718.73
8.1.140.0040.00418.95
8.1.130.0030.00518.80
8.1.120.0040.00417.37
8.1.110.0050.00317.28
8.1.100.0030.00617.45
8.1.90.0000.00817.38
8.1.80.0000.00817.40
8.1.70.0080.00017.40
8.1.60.0030.00517.55
8.1.50.0050.00317.36
8.1.40.0080.00017.47
8.1.30.0000.00817.42
8.1.20.0060.00317.61
8.1.10.0040.00417.45
8.1.00.0040.00417.41
8.0.300.0030.00618.77
8.0.290.0000.00816.75
8.0.280.0030.00318.34
8.0.270.0070.00017.07
8.0.260.0000.00716.86
8.0.250.0030.00316.99
8.0.240.0000.00716.86
8.0.230.0000.00716.96
8.0.220.0040.00416.94
8.0.210.0030.00316.77
8.0.200.0040.00716.98
8.0.190.0000.00816.85
8.0.180.0040.00416.74
8.0.170.0000.00716.86
8.0.160.0040.00416.87
8.0.150.0070.00016.73
8.0.140.0060.00316.80
8.0.130.0000.00613.23
8.0.120.0040.00416.73
8.0.110.0000.00716.90
8.0.100.0040.00416.69
8.0.90.0000.00716.73
8.0.80.0130.00316.76
8.0.70.0040.00416.78
8.0.60.0040.00416.74
8.0.50.0080.00016.71
8.0.30.0100.01017.07
8.0.20.0100.01117.40
8.0.10.0040.00417.00
8.0.00.0100.00816.76
7.4.330.0020.00215.55
7.4.320.0060.00016.36
7.4.300.0070.00016.55
7.4.290.0030.00316.32
7.4.280.0040.00416.53
7.4.270.0000.00716.52
7.4.260.0070.00316.54
7.4.250.0030.00316.55
7.4.240.0080.00016.47
7.4.230.0070.00016.34
7.4.220.0030.00316.64
7.4.210.0090.00616.62
7.4.200.0000.00816.24
7.4.160.0090.00716.38
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0070.01516.61
7.4.120.0150.00716.45
7.4.110.0120.00616.45
7.4.100.0170.00416.44
7.4.90.0100.00616.30
7.4.80.0000.01619.39
7.4.70.0090.01216.49
7.4.60.0000.01516.34
7.4.50.0090.00616.25
7.4.40.0120.00616.49
7.4.30.0120.00616.37
7.4.00.0060.00914.92
7.3.330.0000.00512.98
7.3.320.0060.00012.98
7.3.310.0070.00016.07
7.3.300.0070.00016.10
7.3.290.0120.00616.14
7.3.280.0040.01016.16
7.3.270.0190.00317.40
7.3.260.0080.00916.10
7.3.250.0090.00916.34
7.3.240.0060.01216.24
7.3.230.0100.00616.24
7.3.210.0190.00716.36
7.3.200.0090.01216.51
7.3.190.0140.00916.18
7.3.180.0060.00916.02
7.3.170.0090.01216.32
7.3.160.0130.00616.39
7.3.120.0070.01114.35
7.3.110.0100.01014.73
7.3.100.0000.01914.73
7.3.90.0030.01014.37
7.3.80.0070.01114.80
7.3.70.0030.01014.75
7.3.60.0070.00414.65
7.3.50.0000.01214.44
7.3.40.0070.00714.44
7.3.30.0030.00714.63
7.3.20.0070.00416.41
7.3.10.0090.00616.53
7.3.00.0030.00916.08
7.2.330.0090.00616.23
7.2.320.0070.01016.38
7.2.310.0170.00016.34
7.2.300.0060.01316.56
7.2.290.0100.00716.47
7.2.250.0030.01614.66
7.2.240.0070.01014.87
7.2.230.0120.00315.01
7.2.220.0070.01015.09
7.2.210.0040.01114.71
7.2.200.0110.00714.90
7.2.190.0060.00914.88
7.2.180.0100.00314.78
7.2.170.0030.00714.83
7.2.160.0000.01415.01
7.2.150.0090.00616.73
7.2.140.0060.00616.73
7.2.130.0110.00016.86
7.2.120.0060.00616.58
7.2.110.0030.00716.75
7.2.100.0060.00616.92
7.2.90.0100.00316.91
7.2.80.0080.00816.80
7.2.70.0040.00916.88
7.2.60.0190.00516.77
7.2.50.0040.00716.75
7.2.40.0080.00616.84
7.2.30.0080.00416.74
7.2.20.0060.01016.95
7.2.10.0100.00316.78
7.2.00.0120.00318.23
7.1.330.0070.01015.73
7.1.320.0060.00915.42
7.1.310.0000.01015.72
7.1.300.0060.00315.75
7.1.290.0000.01015.60
7.1.280.0090.00315.64
7.1.270.0070.00715.88
7.1.260.0000.00915.41
7.1.250.0030.00515.77
7.1.240.0030.01015.50
7.1.230.0070.01015.73
7.1.220.0000.01415.77
7.1.210.0030.01015.40
7.1.200.0090.00315.83
7.1.190.0070.00415.70
7.1.180.0000.00815.87
7.1.170.0000.01315.55
7.1.160.0130.00315.76
7.1.150.0030.00915.50
7.1.140.0000.01515.73
7.1.130.0060.00815.82
7.1.120.0040.00917.18
7.1.110.0070.00616.95
7.1.100.0040.01117.05
7.1.90.0090.00417.03
7.1.80.0060.00916.87
7.1.70.0050.01016.28
7.1.60.0140.01225.36
7.1.50.0150.01125.07
7.1.40.0110.01024.88
7.1.30.0110.01225.12
7.1.20.0130.01024.93
7.1.10.0050.01116.02
7.1.00.0030.01216.09
7.0.330.0030.01015.35
7.0.320.0000.00815.39
7.0.310.0030.00915.22
7.0.300.0060.00915.18
7.0.290.0060.00615.45
7.0.280.0030.01015.32
7.0.270.0030.00515.31
7.0.260.0030.00715.32
7.0.250.0080.00515.07
7.0.240.0030.00615.51
7.0.230.0030.00615.48
7.0.220.0040.00415.56
7.0.210.0110.00015.49
7.0.200.0000.01415.11
7.0.190.0090.00015.54
7.0.180.0060.00315.22
7.0.170.0030.00715.34
7.0.160.0090.00015.43
7.0.150.0040.00715.38
7.0.140.0090.00315.16
7.0.130.0040.00715.06
7.0.120.0030.01015.09
7.0.110.0060.00815.35
7.0.100.0030.01015.30
7.0.90.0000.01215.52
7.0.80.0060.00915.35
7.0.70.0030.00715.22
7.0.60.0100.00315.38
7.0.50.0100.00015.49
7.0.40.0030.00513.46
7.0.30.0070.00713.41
7.0.20.0030.01013.21
7.0.10.0070.00713.41
7.0.00.0040.01013.45
5.6.400.0030.00913.88
5.6.390.0100.00313.72
5.6.380.0080.00414.02
5.6.370.0120.00314.49
5.6.360.0060.00914.24
5.6.350.0070.00714.46
5.6.340.0070.00713.95
5.6.330.0060.00614.49
5.6.320.0070.00713.84
5.6.310.0030.01314.01
5.6.300.0090.00314.16
5.6.290.0070.00714.02
5.6.280.0080.00414.24
5.6.270.0000.01014.09
5.6.260.0060.00614.08
5.6.250.0000.00914.12
5.6.240.0030.01014.28
5.6.230.0070.00414.04
5.6.220.0030.00714.48
5.6.210.0060.00613.88
5.6.200.0060.00614.22
5.6.190.0030.00614.00
5.6.180.0000.01414.25
5.6.170.0060.00914.12
5.6.160.0090.00014.14
5.6.150.0030.00513.93
5.6.140.0160.00014.39
5.6.130.0000.01114.18
5.6.120.0100.00314.06
5.6.110.0040.00814.17
5.6.100.0000.01014.33
5.6.90.0030.00914.11
5.6.80.0070.00714.21
5.6.70.0100.00613.96
5.6.60.0070.00713.86
5.6.50.0070.01014.11
5.6.40.0000.00814.13
5.6.30.0040.01214.17
5.6.20.0040.00814.14
5.6.10.0030.01014.06
5.6.00.0100.00314.14

preferences:
55.77 ms | 401 KiB | 5 Q