3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam dictum scelerisque sem a mollis. Nulla facilisi. Maecenas ut tempor nunc. Morbi leo nulla, rutrum in libero id, eleifend tempus velit. Maecenas elementum, erat lobortis dignissim accumsan, odio leo suscipit neque, eu ornare odio ligula a augue."; counter("Lorem", $words); function counter($find,$words) { echo "Total words: " . str_word_count($words) . "\n"; echo "Total letters: " . strlen($words) . "\n"; $vec = explode(" ", $words); if (in_array($find, $vec)) echo $find . " find in position " . (array_search($find, $vec) + 1); else echo $find . " not founded"; return; } ?>

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.0100.01018.27
8.3.50.0030.01222.03
8.3.40.0090.00618.79
8.3.30.0070.00719.09
8.3.20.0040.00420.16
8.3.10.0030.00621.90
8.3.00.0000.00817.80
8.2.180.0100.00716.32
8.2.170.0140.00318.96
8.2.160.0100.00322.96
8.2.150.0040.01524.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0060.00318.72
8.2.110.0060.00320.58
8.2.100.0060.00617.72
8.2.90.0040.00419.13
8.2.80.0050.00317.97
8.2.70.0100.00017.25
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0080.00018.20
8.2.30.0000.00718.07
8.2.20.0000.00717.58
8.2.10.0000.00718.05
8.2.00.0050.00317.69
8.1.280.0090.00625.92
8.1.270.0040.00423.83
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0070.00322.54
8.1.230.0070.00421.04
8.1.220.0080.00018.77
8.1.210.0050.00318.91
8.1.200.0060.00617.35
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0050.00222.10
8.1.150.0000.00818.91
8.1.140.0040.00417.45
8.1.130.0000.00717.75
8.1.120.0040.00417.51
8.1.110.0030.00517.46
8.1.100.0050.00217.44
8.1.90.0000.00717.45
8.1.80.0000.00717.51
8.1.70.0040.00417.48
8.1.60.0060.00317.47
8.1.50.0050.00317.52
8.1.40.0040.00417.43
8.1.30.0000.00817.64
8.1.20.0000.00917.66
8.1.10.0030.00517.44
8.1.00.0000.00717.50
8.0.300.0060.00320.02
8.0.290.0040.00416.75
8.0.280.0000.00718.48
8.0.270.0040.00417.21
8.0.260.0000.00717.19
8.0.250.0000.00716.90
8.0.240.0030.00317.02
8.0.230.0000.00716.96
8.0.220.0030.00516.79
8.0.210.0030.00716.86
8.0.200.0000.00716.85
8.0.190.0060.00316.96
8.0.180.0080.00016.97
8.0.170.0040.00416.92
8.0.160.0000.00816.95
8.0.150.0070.00016.86
8.0.140.0040.00416.94
8.0.130.0060.00013.27
8.0.120.0000.00816.82
8.0.110.0050.00316.97
8.0.100.0000.00716.97
8.0.90.0000.00716.80
8.0.80.0120.00316.92
8.0.70.0000.00716.71
8.0.60.0070.00016.85
8.0.50.0000.00716.77
8.0.30.0120.01017.10
8.0.20.0060.01317.40
8.0.10.0040.00417.02
8.0.00.0150.00216.63
7.4.330.0050.00015.03
7.4.320.0000.00616.46
7.4.300.0030.00316.52
7.4.290.0000.00816.52
7.4.280.0050.00316.41
7.4.270.0000.00716.42
7.4.260.0000.00716.58
7.4.250.0000.00716.48
7.4.240.0030.00316.55
7.4.230.0030.00316.60
7.4.220.0100.01716.48
7.4.210.0120.00916.56
7.4.200.0050.00216.68
7.4.160.0070.01016.44
7.4.150.0070.01017.40
7.4.140.0120.00417.86
7.4.130.0080.00916.57
7.4.120.0070.01016.56
7.4.110.0110.00716.73
7.4.100.0030.01516.36
7.4.90.0090.00916.52
7.4.80.0090.00919.39
7.4.70.0130.00316.40
7.4.60.0100.01316.76
7.4.50.0000.00716.36
7.4.40.0070.01016.58
7.4.30.0040.01216.50
7.4.10.0070.01315.07
7.4.00.0050.01215.17
7.3.330.0020.00213.37
7.3.320.0000.00513.38
7.3.310.0080.00016.22
7.3.300.0080.00016.39
7.3.290.0060.00816.35
7.3.280.0110.00416.35
7.3.270.0070.01117.40
7.3.260.0090.01316.51
7.3.250.0120.01016.39
7.3.240.0090.00816.63
7.3.230.0080.00816.40
7.3.210.0130.00416.46
7.3.200.0110.01119.39
7.3.190.0100.00716.52
7.3.180.0070.01416.37
7.3.170.0060.01116.56
7.3.160.0130.00816.32
7.3.130.0000.01814.80
7.3.120.0030.01314.83
7.3.110.0100.01014.81
7.3.100.0070.00414.89
7.3.90.0090.00615.17
7.3.80.0070.00314.82
7.3.70.0080.00314.98
7.3.60.0000.01114.55
7.3.50.0090.00614.95
7.3.40.0030.01214.94
7.3.30.0070.00714.81
7.3.20.0050.00516.71
7.3.10.0090.00916.55
7.3.00.0110.00416.51
7.2.330.0140.00716.86
7.2.320.0070.01016.39
7.2.310.0060.01616.50
7.2.300.0040.01216.73
7.2.290.0110.01116.84
7.2.260.0110.00714.72
7.2.250.0000.02014.75
7.2.240.0040.01115.05
7.2.230.0070.00614.91
7.2.220.0000.00915.12
7.2.210.0030.01314.61
7.2.200.0000.01015.07
7.2.190.0040.00714.71
7.2.180.0090.00614.79
7.2.170.0080.00414.90
7.2.160.0060.00915.12
7.2.150.0000.01216.79
7.2.140.0040.00816.76
7.2.130.0040.00716.65
7.2.120.0130.00516.69
7.2.110.0070.00916.72
7.2.100.0100.00716.94
7.2.90.0130.00516.65
7.2.80.0080.01116.64
7.2.70.0130.00616.99
7.2.60.0060.01116.82
7.2.50.0110.00416.71
7.2.40.0100.00716.85
7.2.30.0100.00317.06
7.2.20.0070.00816.59
7.2.10.0120.00516.91
7.2.00.0070.00617.92
7.1.330.0040.00815.71
7.1.320.0030.01015.82
7.1.310.0000.01315.61
7.1.300.0070.00715.72
7.1.290.0070.00715.61
7.1.280.0090.00615.70
7.1.270.0110.00415.72
7.1.260.0070.00315.81
7.1.250.0070.00915.35
7.1.240.0090.00615.78
7.1.230.0070.00415.79
7.1.220.0070.01015.80
7.1.210.0050.00515.59
7.1.200.0100.00315.78
7.1.190.0070.01015.76
7.1.180.0040.01015.40
7.1.170.0060.00315.74
7.1.160.0070.00415.67
7.1.150.0060.00915.53
7.1.140.0060.00315.57
7.1.130.0040.00815.66
7.1.120.0060.00915.70
7.1.110.0040.00715.97
7.1.100.0070.00516.93
7.1.90.0060.00615.84
7.1.80.0040.00715.78
7.1.70.0080.00616.42
7.1.60.0100.00917.50
7.1.50.0030.01316.37
7.1.40.0060.00915.45
7.1.30.0070.00715.58
7.1.20.0080.00415.71
7.1.10.0000.01615.71
7.1.00.0050.04019.06
7.0.330.0040.00815.04
7.0.320.0030.00715.32
7.0.310.0070.01015.31
7.0.300.0000.00915.38
7.0.290.0040.00815.56
7.0.280.0070.00715.28
7.0.270.0000.01215.27
7.0.260.0060.00915.58
7.0.250.0060.00615.46
7.0.240.0060.00615.55
7.0.230.0100.00315.37
7.0.220.0000.00915.54
7.0.210.0060.00615.24
7.0.200.0050.00716.11
7.0.190.0030.01315.52
7.0.180.0000.01115.57
7.0.170.0000.01115.25
7.0.160.0030.01015.58
7.0.150.0000.00915.51
7.0.140.0100.03518.74
7.0.130.0000.00915.45
7.0.120.0040.00815.39
7.0.110.0040.01015.55
7.0.100.0090.00015.19
7.0.90.0070.01015.54
7.0.80.0000.01315.39
7.0.70.0000.01515.51
7.0.60.0050.04717.63
7.0.50.0050.04716.62
7.0.40.0050.03016.79
7.0.30.0290.03816.83
7.0.20.0170.04216.72
7.0.10.0070.03016.80
7.0.00.0130.04316.74
5.6.400.0000.00914.18
5.6.390.0040.00914.69
5.6.380.0040.01114.38
5.6.370.0030.00713.94
5.6.360.0040.00814.30
5.6.350.0060.00614.46
5.6.340.0030.01014.11
5.6.330.0070.01014.46
5.6.320.0000.01414.57
5.6.310.0030.01014.25
5.6.300.0070.00714.57
5.6.290.0040.00414.53
5.6.280.0000.04317.66
5.6.270.0000.01514.44
5.6.260.0000.00914.33
5.6.250.0040.01114.26
5.6.240.0000.01314.52
5.6.230.0000.01314.40
5.6.220.0030.01014.48
5.6.210.0100.04117.36
5.6.200.0050.04816.23
5.6.190.0020.05217.46
5.6.180.0150.03617.45
5.6.170.0170.03317.42
5.6.160.0050.04817.28
5.6.150.0090.02016.26
5.6.140.0050.02516.12
5.6.130.0020.02716.36
5.6.120.0130.04117.61
5.6.110.0060.04617.64
5.6.100.0080.03817.60
5.6.90.0130.04017.68
5.6.80.0050.02217.46
5.6.70.0000.00814.07
5.6.60.0060.00314.32
5.6.50.0070.00314.13
5.6.40.0040.00414.45
5.6.30.0070.00414.42
5.6.20.0030.01014.52
5.6.10.0120.00314.27
5.6.00.0110.00414.13
5.5.380.0000.01614.01
5.5.370.0070.00714.47
5.5.360.0040.00714.41
5.5.350.0080.04317.42
5.5.340.0070.02815.96
5.5.330.0080.04517.10
5.5.320.0150.05017.02
5.5.310.0230.03817.30
5.5.300.0050.04215.93
5.5.290.0040.02716.00
5.5.280.0080.04317.42
5.5.270.0030.05017.21
5.5.260.0050.04717.43
5.5.250.0130.02717.35
5.5.240.0130.04016.98
5.5.230.0000.00814.02
5.5.220.0080.00514.18
5.5.210.0000.01314.46
5.5.200.0050.00513.98
5.5.190.0000.01413.66
5.5.180.0000.00814.18
5.5.170.0050.00514.42
5.5.160.0030.01313.81
5.5.150.0120.00414.09
5.5.140.0040.01113.96
5.5.130.0120.00314.05
5.5.120.0030.01214.05
5.5.110.0100.00714.38
5.5.100.0110.00414.32
5.5.90.0030.01313.79
5.5.80.0040.00413.90
5.5.70.0030.00514.27
5.5.60.0070.00414.04
5.5.50.0090.00614.35
5.5.40.0060.00313.83
5.5.30.0000.01014.21
5.5.20.0000.01514.15
5.5.10.0060.00613.86
5.5.00.0030.00713.92
5.4.450.0070.03015.32
5.4.440.0150.03915.23
5.4.430.0120.02315.31
5.4.420.0180.03315.39
5.4.410.0170.04015.18
5.4.400.0130.03814.93
5.4.390.0100.02514.99
5.4.380.0120.02515.06
5.4.370.0140.02414.96
5.4.360.0170.04214.99
5.4.350.0150.02214.77
5.4.340.0130.03715.06
5.4.330.0000.00911.28
5.4.320.0130.03514.90
5.4.310.0130.02314.88
5.4.300.0070.03014.97
5.4.290.0120.01915.01
5.4.280.0140.02315.22
5.4.270.0100.04414.97
5.4.260.0120.03715.18
5.4.250.0110.02614.84
5.4.240.0080.02614.94
5.4.230.0080.04014.98
5.4.220.0100.03214.93
5.4.210.0110.03315.03
5.4.200.0130.02315.14
5.4.190.0110.03914.98
5.4.180.0150.03715.10
5.4.170.0130.03515.10
5.4.160.0100.02514.91
5.4.150.0190.03415.02
5.4.140.0180.01913.47
5.4.130.0080.02413.65
5.4.120.0110.03813.53
5.4.110.0130.02513.68
5.4.100.0080.02513.46
5.4.90.0080.02313.62
5.4.80.0120.03313.64
5.4.70.0100.02213.63
5.4.60.0160.01513.54
5.4.50.0130.02313.63
5.4.40.0050.02513.63
5.4.30.0050.04013.71
5.4.20.0020.02313.69
5.4.10.0080.03713.43
5.4.00.1360.02013.42
5.3.290.1540.02212.61
5.3.280.1550.02112.59
5.3.270.1420.02012.53
5.3.260.1430.02012.58
5.3.250.1390.02212.61
5.3.240.1400.02212.45
5.3.230.1430.01812.68
5.3.220.1830.01912.46
5.3.210.1380.02312.58
5.3.200.1420.02112.48
5.3.190.1420.01912.40
5.3.180.1430.01812.57
5.3.170.1380.02212.58
5.3.160.1490.02212.62
5.3.150.1370.02212.60
5.3.140.1400.02012.46
5.3.130.1430.01812.63
5.3.120.1480.02312.53
5.3.110.1510.02112.62
5.3.100.1280.01812.30
5.3.90.1420.02012.35
5.3.80.1560.01812.16
5.3.70.1390.02212.20
5.3.60.1280.02512.25
5.3.50.1480.01812.25
5.3.40.1230.02712.36
5.3.30.1530.02812.35
5.3.20.1350.01612.08
5.3.10.1410.01911.98
5.3.00.1420.02212.01
5.2.170.2130.03011.20
5.2.160.2270.03311.30
5.2.150.2470.03311.22
5.2.140.2330.03011.15
5.2.130.2400.03011.11
5.2.120.2330.02711.02
5.2.110.2170.03011.03
5.2.100.2430.02311.02
5.2.90.2170.03011.03
5.2.80.2400.04011.05
5.2.70.1770.02711.18
5.2.60.0030.06011.20
5.2.50.0070.02711.14
5.2.40.0030.06010.92
5.2.30.1470.02710.93
5.2.20.1930.02310.87
5.2.10.1700.02311.00
5.2.00.1870.03010.77
5.1.60.1800.0309.90
5.1.50.2000.02710.15
5.1.40.1930.03310.13
5.1.30.1800.02710.26
5.1.20.1970.02710.27
5.1.10.1770.02310.05
5.1.00.1900.02710.05
5.0.50.1000.0238.77
5.0.40.0600.0208.32
5.0.30.1030.0438.16
5.0.20.1100.0278.22
5.0.10.0870.0208.29
5.0.00.0830.0308.14
4.4.90.0900.0107.93
4.4.80.1030.0137.93
4.4.70.1130.0237.93
4.4.60.1030.0177.93
4.4.50.1000.0207.93
4.4.40.0930.0237.93
4.4.30.0870.0137.93
4.4.20.1100.0177.93
4.4.10.0930.0137.93
4.4.00.0930.0237.93
4.3.110.0900.0177.93
4.3.100.0900.0177.93
4.3.90.0900.0177.93
4.3.80.0930.0277.93
4.3.70.0930.0137.93
4.3.60.1100.0137.93
4.3.50.0930.0107.93
4.3.40.1070.0307.93
4.3.30.0270.0177.93
4.3.20.0430.0177.93
4.3.10.0470.0137.93
4.3.00.0270.0177.93

preferences:
40.57 ms | 401 KiB | 5 Q