3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p =<<<EOT That interviews should involve simple code is now common wisdom in programming circles. The story is that a high percentage of programmers, even people with impressive resumes, “just can’t code.” Asked to do the simplest things—problems a good coders could solve as fast they could write—some spend ten or twenty minutes before they get an answer, or fail entirely. (See discussion by Jeff Attwood and Joel Spolsky.) I don’t go as far as others here. I think a lot of “slow coders” are probably excellent employees, making up for it in other areas. Some projects don’t need speed. Some people just need to spend more time programming; everyone was a slow programmer some time. But I know from experience that slow coders don’t work at LibraryThing. They don’t fit the LibraryThing development culture. EOT; $pattern = '[\w\d]+'; $words = array(); preg_match_all('/'.$pattern.'/', $p, $words); $result = array(); foreach ($words as $word) { $len = mb_strlen($word); $result[$len]++; }

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.0170.00318.68
8.3.50.0090.01121.33
8.3.40.0080.00618.88
8.3.30.0140.00019.13
8.3.20.0070.00720.39
8.3.10.0070.00722.14
8.3.00.0050.00222.29
8.2.180.0090.00617.25
8.2.170.0140.00322.96
8.2.160.0030.01019.21
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0130.00726.16
8.2.120.0040.00419.61
8.2.110.0060.00321.12
8.2.100.0100.00019.45
8.2.90.0060.00319.01
8.2.80.0000.00819.39
8.2.70.0050.00317.88
8.2.60.0000.00818.05
8.2.50.0080.00018.07
8.2.40.0030.00618.16
8.2.30.0000.00717.96
8.2.20.0040.00417.89
8.2.10.0050.00217.96
8.2.00.0070.00418.07
8.1.280.0060.01225.92
8.1.270.0130.00622.19
8.1.260.0090.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00621.87
8.1.230.0000.01119.23
8.1.220.0060.00317.77
8.1.210.0040.00418.77
8.1.200.0030.00717.47
8.1.190.0080.00017.51
8.1.180.0060.00320.58
8.1.170.0060.00318.59
8.1.160.0000.00722.09
8.1.150.0070.00018.85
8.1.140.0000.00717.66
8.1.130.0070.00017.91
8.1.120.0070.00017.60
8.1.110.0000.00817.60
8.1.100.0080.00017.57
8.1.90.0040.00417.53
8.1.80.0030.00317.54
8.1.70.0000.00717.54
8.1.60.0060.00317.63
8.1.50.0060.00317.59
8.1.40.0040.00417.53
8.1.30.0020.00517.71
8.1.20.0040.00417.71
8.1.10.0000.00717.64
8.1.00.0040.00417.69
8.0.300.0030.00518.77
8.0.290.0070.00017.05
8.0.280.0000.00718.35
8.0.270.0070.00017.22
8.0.260.0060.00017.04
8.0.250.0030.00617.23
8.0.240.0000.00817.16
8.0.230.0030.00317.05
8.0.220.0000.00717.03
8.0.210.0000.00717.02
8.0.200.0030.00317.04
8.0.190.0040.00417.10
8.0.180.0000.00717.02
8.0.170.0040.00417.04
8.0.160.0030.00517.12
8.0.150.0040.00417.06
8.0.140.0070.00017.05
8.0.130.0060.00013.48
8.0.120.0040.00417.11
8.0.110.0030.00517.14
8.0.100.0030.00617.23
8.0.90.0040.00417.01
8.0.80.0160.00317.06
8.0.70.0040.00417.15
8.0.60.0000.00817.11
8.0.50.0000.00816.98
8.0.30.0080.00417.30
8.0.20.0100.01217.40
8.0.10.0070.00017.12
8.0.00.0120.00916.98
7.4.330.0000.00515.00
7.4.320.0000.00616.63
7.4.300.0000.00616.74
7.4.290.0040.00416.70
7.4.280.0000.00716.70
7.4.270.0030.00316.82
7.4.260.0040.00716.71
7.4.250.0050.00216.59
7.4.240.0060.00216.78
7.4.230.0070.00016.90
7.4.220.0150.00416.76
7.4.210.0080.00616.83
7.4.200.0030.00316.72
7.4.190.0030.00316.78
7.4.160.0140.00416.72
7.4.150.0090.00917.40
7.4.140.0150.00717.86
7.4.130.0100.00716.81
7.4.120.0090.00916.85
7.4.110.0110.00616.54
7.4.100.0160.00616.82
7.4.90.0140.00316.75
7.4.80.0030.01419.39
7.4.70.0140.00416.57
7.4.60.0000.01516.71
7.4.50.0050.00316.68
7.4.40.0120.00322.77
7.4.30.0160.00316.76
7.4.00.0080.00615.19
7.3.330.0000.00613.34
7.3.320.0030.00313.53
7.3.310.0070.00016.62
7.3.300.0030.00316.57
7.3.290.0090.00616.52
7.3.280.0060.00916.59
7.3.270.0030.01417.40
7.3.260.0120.00616.69
7.3.250.0120.00516.66
7.3.240.0090.00916.54
7.3.230.0090.00916.82
7.3.210.0090.00916.73
7.3.200.0070.01019.39
7.3.190.0140.00316.59
7.3.180.0110.00616.89
7.3.170.0100.00716.51
7.3.160.0070.01016.48
7.3.120.0070.01015.27
7.3.110.0090.00914.93
7.3.100.0040.01415.02
7.3.90.0040.00714.92
7.3.80.0040.01215.18
7.3.70.0090.00615.00
7.3.60.0070.00414.91
7.3.50.0030.01215.06
7.3.40.0080.00814.84
7.3.30.0000.01615.16
7.3.20.0070.01016.65
7.3.10.0050.00516.88
7.3.00.0070.01016.74
7.2.330.0040.01316.93
7.2.320.0120.00816.83
7.2.310.0100.00716.86
7.2.300.0140.00316.88
7.2.290.0160.00916.95
7.2.240.0070.00715.40
7.2.230.0030.01015.11
7.2.220.0140.00315.26
7.2.210.0030.01415.14
7.2.200.0060.00915.36
7.2.190.0090.00615.27
7.2.180.0090.00615.37
7.2.170.0130.00315.17
7.2.160.0080.00815.17
7.2.150.0070.01016.99
7.2.140.0070.01016.83
7.2.130.0030.00617.21
7.2.120.0000.00816.94
7.2.110.0100.00616.94
7.2.100.0100.00516.97
7.2.90.0050.00816.66
7.2.80.0090.00816.78
7.2.70.0050.01016.97
7.2.60.0070.00817.18
7.2.50.0050.00817.27
7.2.40.0070.01217.20
7.2.30.0090.00817.17
7.2.20.0050.01117.12
7.2.10.0070.01017.05
7.2.00.0110.00917.99
7.1.330.0100.00316.07
7.1.320.0040.01115.83
7.1.310.0070.00315.99
7.1.300.0030.00715.76
7.1.290.0000.01116.22
7.1.280.0000.01015.89
7.1.270.0000.01015.96
7.1.260.0070.00716.05
7.1.250.0030.01015.91
7.1.230.0040.01116.02
7.1.220.0110.00416.01
7.1.210.0100.00615.86
7.1.200.0040.00915.76
7.1.190.0130.00315.77
7.1.180.0210.00016.07
7.1.170.0200.00016.11
7.1.160.0120.00815.80
7.1.150.0130.00715.60
7.1.140.0120.00615.91
7.1.130.0150.00416.09
7.1.120.0130.00715.91
7.1.110.0130.00715.89
7.1.100.0080.00617.05
7.1.90.0080.01515.53
7.1.80.0080.00815.57
7.1.70.0090.00616.47
7.1.60.0170.00817.82
7.1.50.0150.00916.41
7.1.40.1030.00633.76
7.1.30.0170.00315.86
7.1.20.0160.00315.98
7.1.10.0040.01615.62
7.1.00.0070.02219.13
7.0.310.0090.00615.55
7.0.300.0090.00315.53
7.0.290.0000.01415.53
7.0.280.0000.01315.50
7.0.270.0030.00915.79
7.0.260.0060.01015.64
7.0.250.0000.01315.65
7.0.240.0110.01115.66
7.0.230.0050.01015.54
7.0.220.0170.00715.33
7.0.210.0170.00715.47
7.0.200.0120.00516.08
7.0.190.0140.00615.29
7.0.180.0090.01315.28
7.0.170.0110.00415.50
7.0.160.0080.00815.58
7.0.150.0140.01415.36
7.0.140.0060.04318.77
7.0.130.0180.00415.55
7.0.120.0130.00715.47
7.0.110.0130.00615.36
7.0.100.0110.00815.50
7.0.90.0070.01115.49
7.0.80.0120.00615.72
7.0.70.0100.01315.36
7.0.60.0150.04017.80
7.0.50.0100.03916.74
7.0.40.0050.03416.93
7.0.30.0180.02316.88
7.0.20.0150.03816.74
7.0.10.0140.03017.01
7.0.00.0050.02716.77
5.6.380.0100.00614.26
5.6.370.0060.00914.40
5.6.360.0070.00714.39
5.6.350.0030.01314.74
5.6.340.0000.01514.72
5.6.330.0110.00414.66
5.6.320.0080.00814.58
5.6.310.0120.00614.66
5.6.300.0130.00614.47
5.6.290.0070.00714.45
5.6.280.0090.03917.87
5.6.270.0070.00714.66
5.6.260.0110.00714.85
5.6.250.0070.00714.14
5.6.240.0110.00814.66
5.6.230.0060.00314.40
5.6.220.0080.00414.51
5.6.210.0090.04217.51
5.6.200.0110.03516.41
5.6.190.0050.05017.46
5.6.180.2030.02517.55
5.6.170.0150.02017.39
5.6.160.0070.04817.57
5.6.150.0120.03216.05
5.6.140.0100.04216.39
5.6.130.0120.03916.33
5.6.120.0140.03717.84
5.6.110.0130.03717.74
5.6.100.0080.04317.68
5.6.90.0100.04417.83
5.6.80.0110.04017.46
5.6.70.0170.03517.35
5.6.60.0030.01214.48
5.6.50.0040.01214.16
5.6.40.0070.00414.16
5.6.30.0070.00714.39
5.6.20.0030.01014.24
5.6.10.0000.01114.57
5.6.00.0000.00914.25
5.5.380.0030.00711.25
5.5.370.0050.00311.27
5.5.360.0040.00811.42
5.5.350.0110.01815.65
5.5.340.0050.02514.55
5.5.330.0040.04615.71
5.5.320.0180.02615.74
5.5.310.0120.02615.69
5.5.300.0070.04114.80
5.5.290.0050.04114.68
5.5.280.0100.02016.06
5.5.270.0150.03715.94
5.5.260.0050.02516.06
5.5.250.0060.02315.90
5.5.240.0030.03015.69
5.5.230.0090.00411.12
5.5.220.0050.00511.20
5.5.210.0030.00611.16
5.5.200.0040.00811.14
5.5.190.0030.00611.05
5.5.180.0030.00310.88
5.5.170.0080.00314.06
5.5.160.0040.00411.09
5.5.150.0030.00711.18
5.5.140.0070.00010.82
5.5.130.0000.00711.11
5.5.120.0050.00210.80
5.5.110.0000.00710.55
5.5.100.0100.00010.66
5.5.90.0060.00410.94
5.5.80.0070.00410.61
5.5.70.0080.00411.04
5.5.60.0040.00711.24
5.5.50.0000.00811.09
5.5.40.0060.00610.86
5.5.30.0110.00011.03
5.5.20.0040.00710.99
5.5.10.0000.01010.93
5.5.00.0070.00410.88
5.4.450.0320.03315.02
5.4.440.0400.03115.36
5.4.430.0360.02915.20
5.4.420.0320.03115.39
5.4.410.0060.03015.31
5.4.400.0250.03514.80
5.4.390.0170.03514.89
5.4.380.0170.02814.70
5.4.370.0110.02814.76
5.4.360.0080.03014.69
5.4.350.0070.03414.77
5.4.340.0070.03014.80
5.4.330.0070.00010.91
5.4.320.0020.02511.74
5.4.310.0040.02811.59
5.4.300.0080.01811.76
5.4.290.0040.02211.55
5.4.280.0050.02011.62
5.4.270.0080.02311.58
5.4.260.0050.03614.77
5.4.250.0030.03914.88
5.4.240.0130.03214.72
5.4.230.0080.02514.80
5.4.220.0080.03314.69
5.4.210.0030.04114.83
5.4.200.0140.03214.85
5.4.190.0080.03414.83
5.4.180.0060.03614.68
5.4.170.0100.03614.94
5.4.160.0080.03614.96
5.4.150.0050.03314.90
5.4.140.0040.03413.69
5.4.130.0030.03813.50
5.4.120.0070.03313.45
5.4.110.0020.03013.80
5.4.100.0040.03513.66
5.4.90.0050.03413.74
5.4.80.0070.03413.60
5.4.70.0040.03113.65
5.4.60.0070.03513.54
5.4.50.0050.04013.69
5.4.40.0050.03613.55
5.4.30.0050.02913.63
5.4.20.0090.03513.79
5.4.10.0110.03313.56
5.4.00.0110.03213.14
5.3.290.0060.02211.63
5.3.280.0020.03712.55
5.3.270.0080.03512.56
5.3.260.0050.03912.61
5.3.250.0040.03712.62
5.3.240.0040.04012.55
5.3.230.0060.02912.54
5.3.220.0070.03812.48
5.3.210.0080.02612.59
5.3.200.0060.04012.49
5.3.190.0050.03512.71
5.3.180.0040.02812.61
5.3.170.0080.03312.51
5.3.160.0060.03712.50
5.3.150.0030.03812.54
5.3.140.0070.02912.53
5.3.130.0040.03612.57
5.3.120.0060.03512.44
5.3.110.0040.03712.62
5.3.100.0020.03612.22
5.3.90.0050.03612.33
5.3.80.0040.03912.23
5.3.70.0050.02912.22
5.3.60.0070.03312.24
5.3.50.0070.03512.21
5.3.40.0040.03412.12
5.3.30.0060.03412.20
5.3.20.0070.03012.02
5.3.10.0090.03012.01
5.3.00.0020.03111.97
5.2.170.0050.02510.31
5.2.160.0070.02710.24
5.2.150.0080.02710.36
5.2.140.0080.02310.35
5.2.130.0030.02510.29
5.2.120.0040.02510.25
5.2.110.0080.02510.33
5.2.100.0030.02710.43
5.2.90.0070.02310.33
5.2.80.0090.02410.29
5.2.70.0070.02110.18
5.2.60.0050.02710.15
5.2.50.0040.02910.16
5.2.40.0000.02610.30
5.2.30.0020.03510.09
5.2.20.0060.02810.18
5.2.10.0080.02310.09
5.2.00.0030.0229.94
5.1.60.0040.0279.43
5.1.50.0030.0189.31
5.1.40.0080.0239.33
5.1.30.0050.0279.62
5.1.20.0050.0209.53
5.1.10.0070.0229.29
5.1.00.0080.0249.50
5.0.50.0020.0188.52
5.0.40.0060.0138.46
5.0.30.0050.0288.49
5.0.20.0030.0188.41
5.0.10.0060.0218.42
5.0.00.0020.0258.41
4.4.90.0020.0137.89
4.4.80.0050.0137.89
4.4.70.0020.0167.89
4.4.60.0030.0167.89
4.4.50.0030.0137.89
4.4.40.0020.0217.89
4.4.30.0000.0177.89
4.4.20.0060.0137.89
4.4.10.0030.0177.89
4.4.00.0020.0197.89
4.3.110.0000.0187.89
4.3.100.0020.0177.89
4.3.90.0040.0127.97
4.3.80.0040.0187.97
4.3.70.0040.0157.97
4.3.60.0010.0197.97
4.3.50.0020.0187.97
4.3.40.0020.0227.97
4.3.30.0030.0137.97
4.3.20.0000.0187.97
4.3.10.0030.0157.97
4.3.00.0070.0137.88

preferences:
38.76 ms | 401 KiB | 5 Q