3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Complete the crosswordPuzzle function below. function crosswordPuzzle($crossword, $words) { } $fptr = fopen(getenv("OUTPUT_PATH"), "w"); $stdin = fopen("php://stdin", "r"); $crossword = array(); for ($i = 0; $i < 10; $i++) { $crossword_item = ''; fscanf($stdin, "%[^\n]", $crossword_item); $crossword[] = $crossword_item; } $words = ''; fscanf($stdin, "%[^\n]", $words); $result = crosswordPuzzle($crossword, $words); fwrite($fptr, implode("\n", $result) . "\n"); fclose($stdin); fclose($fptr);

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.5.10.0140.00716.58
8.5.00.0150.00819.82
8.4.150.0020.00014.05
8.4.140.0110.01017.45
8.4.130.0100.00718.45
8.4.120.0150.00617.89
8.4.110.0090.01124.12
8.4.100.0080.00919.63
8.4.90.0050.00522.61
8.4.80.0040.00518.76
8.4.70.0050.00418.77
8.4.60.0130.00818.66
8.4.50.0100.01018.78
8.4.40.0140.00719.57
8.4.30.0090.01217.52
8.4.20.0080.01119.28
8.4.10.0090.00017.64
8.3.280.0110.00918.45
8.3.270.0130.00716.78
8.3.260.0140.00516.72
8.3.250.0100.01016.64
8.3.240.0120.00816.53
8.3.230.0120.00716.72
8.3.220.0040.00318.63
8.3.210.0060.00316.51
8.3.200.0060.00216.50
8.3.190.0050.00417.17
8.3.180.0090.01018.57
8.3.170.0120.00618.26
8.3.160.0140.00317.25
8.3.150.0100.01018.84
8.3.140.0060.00319.11
8.3.130.0030.00618.16
8.3.120.0040.00418.96
8.3.110.0040.00416.65
8.3.100.0070.00724.06
8.3.90.0100.01026.77
8.3.80.0040.00417.97
8.3.70.0070.01118.43
8.3.60.0090.00618.55
8.3.50.0100.00518.11
8.3.40.0060.00918.67
8.3.30.0070.00718.76
8.3.20.0050.00319.21
8.3.10.0070.00021.73
8.3.00.0040.00423.51
8.2.290.0120.00416.67
8.2.280.0120.00918.42
8.2.270.0060.01518.45
8.2.260.0080.00016.66
8.2.250.0040.00416.73
8.2.240.0060.01016.89
8.2.230.0050.00320.94
8.2.220.0100.00037.54
8.2.210.0100.01026.77
8.2.200.0000.01018.29
8.2.190.0000.01516.58
8.2.180.0150.00316.88
8.2.170.0090.00622.96
8.2.160.0060.00919.16
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0050.00222.25
8.2.120.0000.00726.35
8.2.110.0060.00322.14
8.2.100.0090.00317.78
8.2.90.0050.00319.22
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0060.00318.04
8.2.30.0040.00717.99
8.2.20.0040.00417.87
8.2.10.0040.00417.91
8.2.00.0060.00320.22
8.1.330.0070.00416.33
8.1.320.0120.00717.84
8.1.310.0080.00016.84
8.1.300.0030.00618.04
8.1.290.0040.00730.84
8.1.280.0150.00025.92
8.1.270.0000.00823.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.97
8.1.230.0040.00722.11
8.1.220.0070.00417.74
8.1.210.0070.00318.77
8.1.200.0070.00317.22
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0050.00318.56
8.1.160.0040.00418.70
8.1.150.0040.00418.75
8.1.140.0070.00017.61
8.1.130.0040.00418.95
8.1.120.0030.00617.23
8.1.110.0040.00417.31
8.1.100.0000.00717.33
8.1.90.0000.00817.21
8.1.80.0090.00317.29
8.1.70.0020.00817.30
8.1.60.0040.00417.45
8.1.50.0050.00917.41
8.1.40.0080.00417.42
8.1.30.0060.00617.55
8.1.20.0090.00417.52
8.1.10.0090.00417.44
8.1.00.0060.00617.42
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.31
8.0.270.0030.00317.25
8.0.260.0090.00017.16
8.0.250.0000.00816.90
8.0.240.0040.00217.00
8.0.230.0000.00816.86
8.0.220.0070.00017.02
8.0.210.0070.00416.92
8.0.200.0080.00516.92
8.0.190.0040.00616.91
8.0.180.0100.00116.93
8.0.170.0070.00617.00
8.0.160.0100.00216.89
8.0.150.0090.00216.85
8.0.140.0080.00416.89
8.0.130.0050.00515.08
8.0.120.0080.00316.91
8.0.110.0060.00416.92
8.0.100.0080.00216.93
8.0.90.0080.00316.91
8.0.80.0120.00416.93
8.0.70.0060.00616.76
8.0.60.0090.00316.88
8.0.50.0060.00516.88
8.0.30.0080.01216.94
8.0.20.0110.00717.17
8.0.10.0090.00916.95
8.0.00.0130.00616.80
7.4.330.0030.00315.55
7.4.320.0090.00016.50
7.4.300.0070.00616.61
7.4.290.0090.00416.53
7.4.280.0030.00916.54
7.4.270.0070.00616.42
7.4.260.0060.00616.46
7.4.250.0090.00316.51
7.4.240.0090.00316.52
7.4.230.0110.00216.43
7.4.220.0090.00316.45
7.4.210.0080.00916.56
7.4.200.0090.00316.43
7.4.190.0120.00416.55
7.4.180.0150.00016.49
7.4.160.0070.00816.50
7.4.150.0130.00516.61
7.4.140.0090.01117.43
7.4.130.0060.01316.47
7.4.120.0090.00816.49
7.4.110.0130.00316.36
7.4.100.0140.00116.55
7.4.90.0100.00916.47
7.4.80.0100.00617.47
7.4.70.0050.01016.51
7.4.60.0060.01116.47
7.4.50.0080.00716.37
7.4.40.0110.00416.50
7.4.30.0080.00416.35
7.4.20.0080.00416.43
7.4.10.0090.00516.34
7.4.00.0080.00715.95
7.3.330.0090.00114.83
7.3.320.0070.00314.86
7.3.310.0080.00216.43
7.3.300.0070.00316.42
7.3.290.0110.00016.44
7.3.280.0120.00416.35
7.3.270.0130.00416.44
7.3.260.0070.01016.47
7.3.250.0120.00616.40
7.3.240.0090.00916.46
7.3.230.0090.00816.36
7.3.220.0120.00616.32
7.3.210.0110.00616.36
7.3.200.0080.01016.45
7.3.190.0090.00916.37
7.3.180.0080.00716.29
7.3.170.0070.00816.39
7.3.160.0100.00616.33
7.3.150.0100.00416.27
7.3.140.0080.00816.28
7.3.130.0040.01016.41
7.3.120.0080.00715.73
7.3.110.0070.00915.81
7.3.100.0100.00815.72
7.3.90.0090.00615.95
7.3.80.0050.01215.93
7.3.70.0110.00515.87
7.3.60.0050.01115.82
7.3.50.0080.00815.84
7.3.40.0050.01115.87
7.3.30.0060.01015.98
7.3.20.0050.01017.20
7.3.10.0070.00617.06
7.3.00.0120.00617.08
7.2.340.0100.01116.52
7.2.330.0090.01216.49
7.2.320.0100.00916.54
7.2.310.0150.00416.56
7.2.300.0120.00816.47
7.2.290.0090.01016.55
7.2.280.0130.00716.49
7.2.270.0120.00516.45
7.2.260.0070.01116.38
7.2.250.0120.00715.96
7.2.240.0070.01215.90
7.2.230.0080.00816.06
7.2.220.0090.00815.98
7.2.210.0100.00715.91
7.2.200.0110.00915.93
7.2.190.0100.00715.94
7.2.180.0080.01116.03
7.2.170.0070.00816.04
7.2.160.0060.01016.09
7.2.150.0090.00717.18
7.2.140.0050.01117.29
7.2.130.0090.00617.40
7.2.120.0120.00517.25
7.2.110.0200.00717.34
7.2.100.0110.00517.40
7.2.90.0080.00817.27
7.2.80.0100.00717.31
7.2.70.0100.00917.34
7.2.60.0110.00917.35
7.2.50.0080.00917.29
7.2.40.0070.01017.37
7.2.30.0100.00817.35
7.2.20.0080.00917.34
7.2.10.0110.00817.20
7.2.00.0080.00917.37
7.1.330.0140.00516.30
7.1.320.0120.00916.30
7.1.310.0100.00916.29
7.1.300.0130.00516.25
7.1.290.0100.01016.19
7.1.280.0050.00816.30
7.1.270.0130.00216.24
7.1.260.0100.00616.26
7.1.250.0110.00416.19
7.1.240.0120.00416.26
7.1.230.0100.00716.22
7.1.220.0140.00316.20
7.1.210.0130.00416.24
7.1.200.0160.00316.25
7.1.190.0100.00716.24
7.1.180.0140.00416.14
7.1.170.0190.00616.23
7.1.160.0080.00816.20
7.1.150.0120.00516.25
7.1.140.0080.00716.29
7.1.130.0080.00816.28
7.1.120.0120.00516.18
7.1.110.0100.00516.25
7.1.100.0140.00516.09
7.1.90.0160.00116.13
7.1.80.0070.01316.20
7.1.70.0110.00716.13
7.1.60.0130.00516.22
7.1.50.0090.00716.22
7.1.40.0100.00816.26
7.1.30.0110.00816.37
7.1.20.0120.00816.30
7.1.10.0130.00316.26
7.1.00.0110.00816.19
7.0.330.0080.00815.94
7.0.320.0150.00515.85
7.0.310.0140.00615.82
7.0.300.0100.00715.85
7.0.290.0090.00815.90
7.0.280.0120.00615.85
7.0.270.0080.00715.75
7.0.260.0120.00415.74
7.0.250.0150.00215.86
7.0.240.0090.00716.09
7.0.230.0100.00915.97
7.0.220.0100.00915.97
7.0.210.0110.00816.03
7.0.200.0060.01215.92
7.0.190.0120.00515.87
7.0.180.0160.00615.97
7.0.170.0120.00916.00
7.0.160.0190.00615.96
7.0.150.0130.00415.92
7.0.140.0130.00515.90
7.0.130.0100.00815.86
7.0.120.0100.00716.06
7.0.110.0110.00615.92
7.0.100.0140.00416.01
7.0.90.0120.00515.89
7.0.80.0140.00115.83
7.0.70.0100.00715.95
7.0.60.0150.00515.82
7.0.50.0110.00615.92
7.0.40.0130.00715.30
7.0.30.0110.00715.35
7.0.20.0100.01015.23
7.0.10.0090.00515.27
7.0.00.0110.00415.17
5.6.400.0050.01415.24
5.6.390.0140.00615.42
5.6.380.0090.01015.47
5.6.370.0080.01115.19
5.6.360.0090.01015.38
5.6.350.0100.01015.42
5.6.340.0120.00715.43
5.6.330.0130.00715.41
5.6.320.0110.00715.58
5.6.310.0120.00615.35
5.6.300.0100.00815.30
5.6.290.0110.00615.31
5.6.280.0110.00815.39
5.6.270.0110.00715.25
5.6.260.0100.00715.50
5.6.250.0140.00315.29
5.6.240.0090.00715.46
5.6.230.0100.00915.54
5.6.220.0090.00915.46
5.6.210.0090.00815.50
5.6.200.0100.00815.51
5.6.190.0100.00815.48
5.6.180.0100.00715.62
5.6.170.0120.00515.59
5.6.160.0110.00615.46
5.6.150.0100.01015.47
5.6.140.0100.00815.48
5.6.130.0100.01015.51
5.6.120.0130.00615.49
5.6.110.0100.00715.47
5.6.100.0150.00715.36
5.6.90.0130.00615.44
5.6.80.0100.00615.28
5.6.70.0120.00515.48
5.6.60.0090.00915.32
5.6.50.0090.01015.20
5.6.40.0070.00915.29
5.6.30.0090.00715.42
5.6.20.0100.00915.37
5.6.10.0100.00715.40
5.6.00.0120.00415.40

preferences:
17.71 ms | 403 KiB | 5 Q